• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/orgpolicy/v2/orgpolicy.proto
18 
19 package com.google.cloud.orgpolicy.v2;
20 
21 public interface PolicyOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.orgpolicy.v2.Policy)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Immutable. The resource name of the Policy. Must be one of the following
31    * forms, where constraint_name is the name of the constraint which this
32    * Policy configures:
33    * * `projects/{project_number}/policies/{constraint_name}`
34    * * `folders/{folder_id}/policies/{constraint_name}`
35    * * `organizations/{organization_id}/policies/{constraint_name}`
36    * For example, "projects/123/policies/compute.disableSerialPortAccess".
37    * Note: `projects/{project_id}/policies/{constraint_name}` is also an
38    * acceptable name for API requests, but responses will return the name using
39    * the equivalent project number.
40    * </pre>
41    *
42    * <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
43    *
44    * @return The name.
45    */
getName()46   java.lang.String getName();
47   /**
48    *
49    *
50    * <pre>
51    * Immutable. The resource name of the Policy. Must be one of the following
52    * forms, where constraint_name is the name of the constraint which this
53    * Policy configures:
54    * * `projects/{project_number}/policies/{constraint_name}`
55    * * `folders/{folder_id}/policies/{constraint_name}`
56    * * `organizations/{organization_id}/policies/{constraint_name}`
57    * For example, "projects/123/policies/compute.disableSerialPortAccess".
58    * Note: `projects/{project_id}/policies/{constraint_name}` is also an
59    * acceptable name for API requests, but responses will return the name using
60    * the equivalent project number.
61    * </pre>
62    *
63    * <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
64    *
65    * @return The bytes for name.
66    */
getNameBytes()67   com.google.protobuf.ByteString getNameBytes();
68 
69   /**
70    *
71    *
72    * <pre>
73    * Basic information about the Organization Policy.
74    * </pre>
75    *
76    * <code>.google.cloud.orgpolicy.v2.PolicySpec spec = 2;</code>
77    *
78    * @return Whether the spec field is set.
79    */
hasSpec()80   boolean hasSpec();
81   /**
82    *
83    *
84    * <pre>
85    * Basic information about the Organization Policy.
86    * </pre>
87    *
88    * <code>.google.cloud.orgpolicy.v2.PolicySpec spec = 2;</code>
89    *
90    * @return The spec.
91    */
getSpec()92   com.google.cloud.orgpolicy.v2.PolicySpec getSpec();
93   /**
94    *
95    *
96    * <pre>
97    * Basic information about the Organization Policy.
98    * </pre>
99    *
100    * <code>.google.cloud.orgpolicy.v2.PolicySpec spec = 2;</code>
101    */
getSpecOrBuilder()102   com.google.cloud.orgpolicy.v2.PolicySpecOrBuilder getSpecOrBuilder();
103 
104   /**
105    *
106    *
107    * <pre>
108    * Deprecated.
109    * </pre>
110    *
111    * <code>.google.cloud.orgpolicy.v2.AlternatePolicySpec alternate = 3 [deprecated = true];</code>
112    *
113    * @deprecated google.cloud.orgpolicy.v2.Policy.alternate is deprecated. See
114    *     google/cloud/orgpolicy/v2/orgpolicy.proto;l=204
115    * @return Whether the alternate field is set.
116    */
117   @java.lang.Deprecated
hasAlternate()118   boolean hasAlternate();
119   /**
120    *
121    *
122    * <pre>
123    * Deprecated.
124    * </pre>
125    *
126    * <code>.google.cloud.orgpolicy.v2.AlternatePolicySpec alternate = 3 [deprecated = true];</code>
127    *
128    * @deprecated google.cloud.orgpolicy.v2.Policy.alternate is deprecated. See
129    *     google/cloud/orgpolicy/v2/orgpolicy.proto;l=204
130    * @return The alternate.
131    */
132   @java.lang.Deprecated
getAlternate()133   com.google.cloud.orgpolicy.v2.AlternatePolicySpec getAlternate();
134   /**
135    *
136    *
137    * <pre>
138    * Deprecated.
139    * </pre>
140    *
141    * <code>.google.cloud.orgpolicy.v2.AlternatePolicySpec alternate = 3 [deprecated = true];</code>
142    */
143   @java.lang.Deprecated
getAlternateOrBuilder()144   com.google.cloud.orgpolicy.v2.AlternatePolicySpecOrBuilder getAlternateOrBuilder();
145 
146   /**
147    *
148    *
149    * <pre>
150    * dry-run policy.
151    * Audit-only policy, can be used to monitor how the policy would have
152    * impacted the existing and future resources if it's enforced.
153    * </pre>
154    *
155    * <code>.google.cloud.orgpolicy.v2.PolicySpec dry_run_spec = 4;</code>
156    *
157    * @return Whether the dryRunSpec field is set.
158    */
hasDryRunSpec()159   boolean hasDryRunSpec();
160   /**
161    *
162    *
163    * <pre>
164    * dry-run policy.
165    * Audit-only policy, can be used to monitor how the policy would have
166    * impacted the existing and future resources if it's enforced.
167    * </pre>
168    *
169    * <code>.google.cloud.orgpolicy.v2.PolicySpec dry_run_spec = 4;</code>
170    *
171    * @return The dryRunSpec.
172    */
getDryRunSpec()173   com.google.cloud.orgpolicy.v2.PolicySpec getDryRunSpec();
174   /**
175    *
176    *
177    * <pre>
178    * dry-run policy.
179    * Audit-only policy, can be used to monitor how the policy would have
180    * impacted the existing and future resources if it's enforced.
181    * </pre>
182    *
183    * <code>.google.cloud.orgpolicy.v2.PolicySpec dry_run_spec = 4;</code>
184    */
getDryRunSpecOrBuilder()185   com.google.cloud.orgpolicy.v2.PolicySpecOrBuilder getDryRunSpecOrBuilder();
186 }
187