• 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/compute/v1/compute.proto
18 
19 package com.google.cloud.compute.v1;
20 
21 public interface PolicyOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.Policy)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Specifies cloud audit logging configuration for this policy.
31    * </pre>
32    *
33    * <code>repeated .google.cloud.compute.v1.AuditConfig audit_configs = 328080653;</code>
34    */
getAuditConfigsList()35   java.util.List<com.google.cloud.compute.v1.AuditConfig> getAuditConfigsList();
36   /**
37    *
38    *
39    * <pre>
40    * Specifies cloud audit logging configuration for this policy.
41    * </pre>
42    *
43    * <code>repeated .google.cloud.compute.v1.AuditConfig audit_configs = 328080653;</code>
44    */
getAuditConfigs(int index)45   com.google.cloud.compute.v1.AuditConfig getAuditConfigs(int index);
46   /**
47    *
48    *
49    * <pre>
50    * Specifies cloud audit logging configuration for this policy.
51    * </pre>
52    *
53    * <code>repeated .google.cloud.compute.v1.AuditConfig audit_configs = 328080653;</code>
54    */
getAuditConfigsCount()55   int getAuditConfigsCount();
56   /**
57    *
58    *
59    * <pre>
60    * Specifies cloud audit logging configuration for this policy.
61    * </pre>
62    *
63    * <code>repeated .google.cloud.compute.v1.AuditConfig audit_configs = 328080653;</code>
64    */
65   java.util.List<? extends com.google.cloud.compute.v1.AuditConfigOrBuilder>
getAuditConfigsOrBuilderList()66       getAuditConfigsOrBuilderList();
67   /**
68    *
69    *
70    * <pre>
71    * Specifies cloud audit logging configuration for this policy.
72    * </pre>
73    *
74    * <code>repeated .google.cloud.compute.v1.AuditConfig audit_configs = 328080653;</code>
75    */
getAuditConfigsOrBuilder(int index)76   com.google.cloud.compute.v1.AuditConfigOrBuilder getAuditConfigsOrBuilder(int index);
77 
78   /**
79    *
80    *
81    * <pre>
82    * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice&#64;example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
83    * </pre>
84    *
85    * <code>repeated .google.cloud.compute.v1.Binding bindings = 403251854;</code>
86    */
getBindingsList()87   java.util.List<com.google.cloud.compute.v1.Binding> getBindingsList();
88   /**
89    *
90    *
91    * <pre>
92    * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice&#64;example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
93    * </pre>
94    *
95    * <code>repeated .google.cloud.compute.v1.Binding bindings = 403251854;</code>
96    */
getBindings(int index)97   com.google.cloud.compute.v1.Binding getBindings(int index);
98   /**
99    *
100    *
101    * <pre>
102    * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice&#64;example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
103    * </pre>
104    *
105    * <code>repeated .google.cloud.compute.v1.Binding bindings = 403251854;</code>
106    */
getBindingsCount()107   int getBindingsCount();
108   /**
109    *
110    *
111    * <pre>
112    * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice&#64;example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
113    * </pre>
114    *
115    * <code>repeated .google.cloud.compute.v1.Binding bindings = 403251854;</code>
116    */
getBindingsOrBuilderList()117   java.util.List<? extends com.google.cloud.compute.v1.BindingOrBuilder> getBindingsOrBuilderList();
118   /**
119    *
120    *
121    * <pre>
122    * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice&#64;example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
123    * </pre>
124    *
125    * <code>repeated .google.cloud.compute.v1.Binding bindings = 403251854;</code>
126    */
getBindingsOrBuilder(int index)127   com.google.cloud.compute.v1.BindingOrBuilder getBindingsOrBuilder(int index);
128 
129   /**
130    *
131    *
132    * <pre>
133    * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
134    * </pre>
135    *
136    * <code>optional string etag = 3123477;</code>
137    *
138    * @return Whether the etag field is set.
139    */
hasEtag()140   boolean hasEtag();
141   /**
142    *
143    *
144    * <pre>
145    * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
146    * </pre>
147    *
148    * <code>optional string etag = 3123477;</code>
149    *
150    * @return The etag.
151    */
getEtag()152   java.lang.String getEtag();
153   /**
154    *
155    *
156    * <pre>
157    * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
158    * </pre>
159    *
160    * <code>optional string etag = 3123477;</code>
161    *
162    * @return The bytes for etag.
163    */
getEtagBytes()164   com.google.protobuf.ByteString getEtagBytes();
165 
166   /**
167    * <code>optional bool iam_owned = 450566203;</code>
168    *
169    * @return Whether the iamOwned field is set.
170    */
hasIamOwned()171   boolean hasIamOwned();
172   /**
173    * <code>optional bool iam_owned = 450566203;</code>
174    *
175    * @return The iamOwned.
176    */
getIamOwned()177   boolean getIamOwned();
178 
179   /**
180    *
181    *
182    * <pre>
183    * This is deprecated and has no effect. Do not use.
184    * </pre>
185    *
186    * <code>repeated .google.cloud.compute.v1.Rule rules = 108873975;</code>
187    */
getRulesList()188   java.util.List<com.google.cloud.compute.v1.Rule> getRulesList();
189   /**
190    *
191    *
192    * <pre>
193    * This is deprecated and has no effect. Do not use.
194    * </pre>
195    *
196    * <code>repeated .google.cloud.compute.v1.Rule rules = 108873975;</code>
197    */
getRules(int index)198   com.google.cloud.compute.v1.Rule getRules(int index);
199   /**
200    *
201    *
202    * <pre>
203    * This is deprecated and has no effect. Do not use.
204    * </pre>
205    *
206    * <code>repeated .google.cloud.compute.v1.Rule rules = 108873975;</code>
207    */
getRulesCount()208   int getRulesCount();
209   /**
210    *
211    *
212    * <pre>
213    * This is deprecated and has no effect. Do not use.
214    * </pre>
215    *
216    * <code>repeated .google.cloud.compute.v1.Rule rules = 108873975;</code>
217    */
getRulesOrBuilderList()218   java.util.List<? extends com.google.cloud.compute.v1.RuleOrBuilder> getRulesOrBuilderList();
219   /**
220    *
221    *
222    * <pre>
223    * This is deprecated and has no effect. Do not use.
224    * </pre>
225    *
226    * <code>repeated .google.cloud.compute.v1.Rule rules = 108873975;</code>
227    */
getRulesOrBuilder(int index)228   com.google.cloud.compute.v1.RuleOrBuilder getRulesOrBuilder(int index);
229 
230   /**
231    *
232    *
233    * <pre>
234    * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
235    * </pre>
236    *
237    * <code>optional int32 version = 351608024;</code>
238    *
239    * @return Whether the version field is set.
240    */
hasVersion()241   boolean hasVersion();
242   /**
243    *
244    *
245    * <pre>
246    * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
247    * </pre>
248    *
249    * <code>optional int32 version = 351608024;</code>
250    *
251    * @return The version.
252    */
getVersion()253   int getVersion();
254 }
255