blob: 436d1a36df31bb9b4d1520323eb61355297a85ab [file] [log] [blame]
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="apigateway_v1beta.html">API Gateway API</a> . <a href="apigateway_v1beta.projects.html">projects</a> . <a href="apigateway_v1beta.projects.locations.html">locations</a> . <a href="apigateway_v1beta.projects.locations.apis.html">apis</a> . <a href="apigateway_v1beta.projects.locations.apis.configs.html">configs</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81 <code><a href="#create">create(parent, body=None, apiConfigId=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Creates a new ApiConfig in a given project and location.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Deletes a single ApiConfig.</p>
86<p class="toc_element">
87 <code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Gets details of a single ApiConfig.</p>
89<p class="toc_element">
90 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.</p>
92<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080093 <code><a href="#list">list(parent, orderBy=None, pageToken=None, filter=None, pageSize=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Lists ApiConfigs in a given project and location.</p>
95<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
99 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Updates the parameters of a single ApiConfig.</p>
101<p class="toc_element">
102 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.</p>
104<p class="toc_element">
105 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
106<p class="firstline">Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.</p>
107<h3>Method Details</h3>
108<div class="method">
109 <code class="details" id="close">close()</code>
110 <pre>Close httplib2 connections.</pre>
111</div>
112
113<div class="method">
114 <code class="details" id="create">create(parent, body=None, apiConfigId=None, x__xgafv=None)</code>
115 <pre>Creates a new ApiConfig in a given project and location.
116
117Args:
118 parent: string, Required. Parent resource of the API Config, of the form: `projects/*/locations/global/apis/*` (required)
119 body: object, The request body.
120 The object takes the form of:
121
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700122{ # An API Configuration is a combination of settings for both the Managed Service and Gateways serving this API Config.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800123 &quot;labels&quot;: { # Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
124 &quot;a_key&quot;: &quot;A String&quot;,
125 },
126 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name.
127 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Updated time.
128 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the API Config. Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
129 &quot;grpcServices&quot;: [ # Optional. gRPC service definition files. If specified, openapi_documents must not be included.
130 { # A gRPC service definition.
131 &quot;fileDescriptorSet&quot;: { # A lightweight description of a file. # Input only. File descriptor set, generated by protoc. To generate, use protoc with imports and source info included. For an example test.proto file, the following command would put the value in a new file named out.pb. $ protoc --include_imports --include_source_info test.proto -o out.pb
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800132 &quot;contents&quot;: &quot;A String&quot;, # The bytes that constitute the file.
133 &quot;path&quot;: &quot;A String&quot;, # The file path (full or relative path). This is typically the path of the file when it is uploaded.
134 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800135 &quot;source&quot;: [ # Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to &#x27;protoc&#x27; command used to generate file_descriptor_set.
136 { # A lightweight description of a file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800137 &quot;contents&quot;: &quot;A String&quot;, # The bytes that constitute the file.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800138 &quot;path&quot;: &quot;A String&quot;, # The file path (full or relative path). This is typically the path of the file when it is uploaded.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700139 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800140 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800141 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800142 ],
143 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the API Config.
144 &quot;managedServiceConfigs&quot;: [ # Optional. Service Configuration files. At least one must be included when using gRPC service definitions. See https: //cloud.google.com/endpoints/docs/grpc/g // rpc-service-config#service_configuration_overview for the expected file contents. If multiple files are specified, the files are merged with the following rules: * All singular scalar fields are merged using &quot;last one wins&quot; semantics in the order of the files uploaded. * Repeated fields are concatenated. * Singular embedded messages are merged using these rules for nested fields.
145 { # A lightweight description of a file.
146 &quot;contents&quot;: &quot;A String&quot;, # The bytes that constitute the file.
147 &quot;path&quot;: &quot;A String&quot;, # The file path (full or relative path). This is typically the path of the file when it is uploaded.
148 },
149 ],
150 &quot;gatewayConfig&quot;: { # Configuration settings for Gateways. # Immutable. Gateway specific configuration. If not specified, backend authentication will be set to use OIDC authentication using the default compute service account.
151 &quot;backendConfig&quot;: { # Configuration for a backend. # Required. Backend settings that are applied to all backends of the Gateway.
152 &quot;googleServiceAccount&quot;: &quot;A String&quot;, # Google Cloud IAM service account used to sign OIDC tokens for backends that have authentication configured (https: //cloud.google.com/service-infrastructur // e/docs/service-management/reference/rest/v1/services.configs#backend). This may either be the Service Account&#x27;s email (i.e. &quot;{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com&quot;) or its full resource name (i.e. &quot;projects/{PROJECT}/accounts/{UNIQUE_ID}&quot;). This is most often used when the backend is a GCP resource such as a Cloud Run Service or an IAP-secured service. Note that this token is always sent as an authorization header bearer token. The audience of the OIDC token is configured in the associated Service Config in the BackendRule option (https: //github.com/googleapis/googleapis/blob/ // master/google/api/backend.proto#L125).
153 },
154 },
155 &quot;serviceConfigId&quot;: &quot;A String&quot;, # Output only. The ID of the associated Service Config ( https://cloud.google.com/service-infrastructure/docs/glossary#config).
156 &quot;openapiDocuments&quot;: [ # Optional. OpenAPI specification documents. If specified, grpc_services and managed_service_config must not be included.
157 { # An OpenAPI Specification Document describing an API.
158 &quot;document&quot;: { # A lightweight description of a file. # The OpenAPI Specification document file.
159 &quot;contents&quot;: &quot;A String&quot;, # The bytes that constitute the file.
160 &quot;path&quot;: &quot;A String&quot;, # The file path (full or relative path). This is typically the path of the file when it is uploaded.
161 },
162 },
163 ],
164 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
165}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700166
167 apiConfigId: string, Required. Identifier to assign to the API Config. Must be unique within scope of the parent resource.
168 x__xgafv: string, V1 error format.
169 Allowed values
170 1 - v1 error format
171 2 - v2 error format
172
173Returns:
174 An object of the form:
175
176 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800177 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
178 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800179 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
180 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
181 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800182 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
183 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
184 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700185 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700186 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
187 {
188 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
189 },
190 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800191 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
192 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800193 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700194 }</pre>
195</div>
196
197<div class="method">
198 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
199 <pre>Deletes a single ApiConfig.
200
201Args:
202 name: string, Required. Resource name of the form: `projects/*/locations/global/apis/*/configs/*` (required)
203 x__xgafv: string, V1 error format.
204 Allowed values
205 1 - v1 error format
206 2 - v2 error format
207
208Returns:
209 An object of the form:
210
211 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800212 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
213 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800214 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
215 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
216 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800217 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
218 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
219 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700220 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700221 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
222 {
223 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
224 },
225 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800226 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
227 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800228 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700229 }</pre>
230</div>
231
232<div class="method">
233 <code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
234 <pre>Gets details of a single ApiConfig.
235
236Args:
237 name: string, Required. Resource name of the form: `projects/*/locations/global/apis/*/configs/*` (required)
238 view: string, Specifies which fields of the API Config are returned in the response. Defaults to `BASIC` view.
239 Allowed values
240 CONFIG_VIEW_UNSPECIFIED -
241 BASIC - Do not include configuration source files.
242 FULL - Include configuration source files.
243 x__xgafv: string, V1 error format.
244 Allowed values
245 1 - v1 error format
246 2 - v2 error format
247
248Returns:
249 An object of the form:
250
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700251 { # An API Configuration is a combination of settings for both the Managed Service and Gateways serving this API Config.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800252 &quot;labels&quot;: { # Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
253 &quot;a_key&quot;: &quot;A String&quot;,
254 },
255 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name.
256 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Updated time.
257 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the API Config. Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
258 &quot;grpcServices&quot;: [ # Optional. gRPC service definition files. If specified, openapi_documents must not be included.
259 { # A gRPC service definition.
260 &quot;fileDescriptorSet&quot;: { # A lightweight description of a file. # Input only. File descriptor set, generated by protoc. To generate, use protoc with imports and source info included. For an example test.proto file, the following command would put the value in a new file named out.pb. $ protoc --include_imports --include_source_info test.proto -o out.pb
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800261 &quot;contents&quot;: &quot;A String&quot;, # The bytes that constitute the file.
262 &quot;path&quot;: &quot;A String&quot;, # The file path (full or relative path). This is typically the path of the file when it is uploaded.
263 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800264 &quot;source&quot;: [ # Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to &#x27;protoc&#x27; command used to generate file_descriptor_set.
265 { # A lightweight description of a file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800266 &quot;contents&quot;: &quot;A String&quot;, # The bytes that constitute the file.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800267 &quot;path&quot;: &quot;A String&quot;, # The file path (full or relative path). This is typically the path of the file when it is uploaded.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700268 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800269 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800270 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800271 ],
272 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the API Config.
273 &quot;managedServiceConfigs&quot;: [ # Optional. Service Configuration files. At least one must be included when using gRPC service definitions. See https: //cloud.google.com/endpoints/docs/grpc/g // rpc-service-config#service_configuration_overview for the expected file contents. If multiple files are specified, the files are merged with the following rules: * All singular scalar fields are merged using &quot;last one wins&quot; semantics in the order of the files uploaded. * Repeated fields are concatenated. * Singular embedded messages are merged using these rules for nested fields.
274 { # A lightweight description of a file.
275 &quot;contents&quot;: &quot;A String&quot;, # The bytes that constitute the file.
276 &quot;path&quot;: &quot;A String&quot;, # The file path (full or relative path). This is typically the path of the file when it is uploaded.
277 },
278 ],
279 &quot;gatewayConfig&quot;: { # Configuration settings for Gateways. # Immutable. Gateway specific configuration. If not specified, backend authentication will be set to use OIDC authentication using the default compute service account.
280 &quot;backendConfig&quot;: { # Configuration for a backend. # Required. Backend settings that are applied to all backends of the Gateway.
281 &quot;googleServiceAccount&quot;: &quot;A String&quot;, # Google Cloud IAM service account used to sign OIDC tokens for backends that have authentication configured (https: //cloud.google.com/service-infrastructur // e/docs/service-management/reference/rest/v1/services.configs#backend). This may either be the Service Account&#x27;s email (i.e. &quot;{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com&quot;) or its full resource name (i.e. &quot;projects/{PROJECT}/accounts/{UNIQUE_ID}&quot;). This is most often used when the backend is a GCP resource such as a Cloud Run Service or an IAP-secured service. Note that this token is always sent as an authorization header bearer token. The audience of the OIDC token is configured in the associated Service Config in the BackendRule option (https: //github.com/googleapis/googleapis/blob/ // master/google/api/backend.proto#L125).
282 },
283 },
284 &quot;serviceConfigId&quot;: &quot;A String&quot;, # Output only. The ID of the associated Service Config ( https://cloud.google.com/service-infrastructure/docs/glossary#config).
285 &quot;openapiDocuments&quot;: [ # Optional. OpenAPI specification documents. If specified, grpc_services and managed_service_config must not be included.
286 { # An OpenAPI Specification Document describing an API.
287 &quot;document&quot;: { # A lightweight description of a file. # The OpenAPI Specification document file.
288 &quot;contents&quot;: &quot;A String&quot;, # The bytes that constitute the file.
289 &quot;path&quot;: &quot;A String&quot;, # The file path (full or relative path). This is typically the path of the file when it is uploaded.
290 },
291 },
292 ],
293 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
294 }</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700295</div>
296
297<div class="method">
298 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
299 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
300
301Args:
302 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
303 options_requestedPolicyVersion: integer, Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value 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).
304 x__xgafv: string, V1 error format.
305 Allowed values
306 1 - v1 error format
307 2 - v2 error format
308
309Returns:
310 An object of the form:
311
312 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700313 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
314 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:aliya@example.com&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700315 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
316 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
317 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
318 &quot;A String&quot;,
319 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800320 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700321 },
322 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800323 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
324 },
325 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800326 &quot;version&quot;: 42, # 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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800327 &quot;etag&quot;: &quot;A String&quot;, # `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.
328 &quot;bindings&quot;: [ # Associates a list of `members` to 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 member.
329 { # Associates `members` with a `role`.
330 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
331 &quot;A String&quot;,
332 ],
333 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800334 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800335 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
336 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
337 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800338 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800339 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800340 &quot;bindingId&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700341 },
342 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700343 }</pre>
344</div>
345
346<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800347 <code class="details" id="list">list(parent, orderBy=None, pageToken=None, filter=None, pageSize=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700348 <pre>Lists ApiConfigs in a given project and location.
349
350Args:
351 parent: string, Required. Parent resource of the API Config, of the form: `projects/*/locations/global/apis/*` (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700352 orderBy: string, Order by parameters.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800353 pageToken: string, Page token.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800354 filter: string, Filter.
355 pageSize: integer, Page size.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700356 x__xgafv: string, V1 error format.
357 Allowed values
358 1 - v1 error format
359 2 - v2 error format
360
361Returns:
362 An object of the form:
363
364 { # Response message for ApiGatewayService.ListApiConfigs
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800365 &quot;unreachableLocations&quot;: [ # Locations that could not be reached.
366 &quot;A String&quot;,
367 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800368 &quot;apiConfigs&quot;: [ # API Configs.
369 { # An API Configuration is a combination of settings for both the Managed Service and Gateways serving this API Config.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800370 &quot;labels&quot;: { # Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
371 &quot;a_key&quot;: &quot;A String&quot;,
372 },
373 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name.
374 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Updated time.
375 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the API Config. Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
376 &quot;grpcServices&quot;: [ # Optional. gRPC service definition files. If specified, openapi_documents must not be included.
377 { # A gRPC service definition.
378 &quot;fileDescriptorSet&quot;: { # A lightweight description of a file. # Input only. File descriptor set, generated by protoc. To generate, use protoc with imports and source info included. For an example test.proto file, the following command would put the value in a new file named out.pb. $ protoc --include_imports --include_source_info test.proto -o out.pb
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800379 &quot;contents&quot;: &quot;A String&quot;, # The bytes that constitute the file.
380 &quot;path&quot;: &quot;A String&quot;, # The file path (full or relative path). This is typically the path of the file when it is uploaded.
381 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800382 &quot;source&quot;: [ # Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to &#x27;protoc&#x27; command used to generate file_descriptor_set.
383 { # A lightweight description of a file.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800384 &quot;contents&quot;: &quot;A String&quot;, # The bytes that constitute the file.
385 &quot;path&quot;: &quot;A String&quot;, # The file path (full or relative path). This is typically the path of the file when it is uploaded.
386 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800387 ],
388 },
389 ],
390 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the API Config.
391 &quot;managedServiceConfigs&quot;: [ # Optional. Service Configuration files. At least one must be included when using gRPC service definitions. See https: //cloud.google.com/endpoints/docs/grpc/g // rpc-service-config#service_configuration_overview for the expected file contents. If multiple files are specified, the files are merged with the following rules: * All singular scalar fields are merged using &quot;last one wins&quot; semantics in the order of the files uploaded. * Repeated fields are concatenated. * Singular embedded messages are merged using these rules for nested fields.
392 { # A lightweight description of a file.
393 &quot;contents&quot;: &quot;A String&quot;, # The bytes that constitute the file.
394 &quot;path&quot;: &quot;A String&quot;, # The file path (full or relative path). This is typically the path of the file when it is uploaded.
395 },
396 ],
397 &quot;gatewayConfig&quot;: { # Configuration settings for Gateways. # Immutable. Gateway specific configuration. If not specified, backend authentication will be set to use OIDC authentication using the default compute service account.
398 &quot;backendConfig&quot;: { # Configuration for a backend. # Required. Backend settings that are applied to all backends of the Gateway.
399 &quot;googleServiceAccount&quot;: &quot;A String&quot;, # Google Cloud IAM service account used to sign OIDC tokens for backends that have authentication configured (https: //cloud.google.com/service-infrastructur // e/docs/service-management/reference/rest/v1/services.configs#backend). This may either be the Service Account&#x27;s email (i.e. &quot;{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com&quot;) or its full resource name (i.e. &quot;projects/{PROJECT}/accounts/{UNIQUE_ID}&quot;). This is most often used when the backend is a GCP resource such as a Cloud Run Service or an IAP-secured service. Note that this token is always sent as an authorization header bearer token. The audience of the OIDC token is configured in the associated Service Config in the BackendRule option (https: //github.com/googleapis/googleapis/blob/ // master/google/api/backend.proto#L125).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800400 },
401 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800402 &quot;serviceConfigId&quot;: &quot;A String&quot;, # Output only. The ID of the associated Service Config ( https://cloud.google.com/service-infrastructure/docs/glossary#config).
403 &quot;openapiDocuments&quot;: [ # Optional. OpenAPI specification documents. If specified, grpc_services and managed_service_config must not be included.
404 { # An OpenAPI Specification Document describing an API.
405 &quot;document&quot;: { # A lightweight description of a file. # The OpenAPI Specification document file.
406 &quot;contents&quot;: &quot;A String&quot;, # The bytes that constitute the file.
407 &quot;path&quot;: &quot;A String&quot;, # The file path (full or relative path). This is typically the path of the file when it is uploaded.
408 },
409 },
410 ],
411 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
412 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800413 ],
414 &quot;nextPageToken&quot;: &quot;A String&quot;, # Next page token.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700415 }</pre>
416</div>
417
418<div class="method">
419 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
420 <pre>Retrieves the next page of results.
421
422Args:
423 previous_request: The request for the previous page. (required)
424 previous_response: The response from the request for the previous page. (required)
425
426Returns:
427 A request object that you can call &#x27;execute()&#x27; on to request the next
428 page. Returns None if there are no more items in the collection.
429 </pre>
430</div>
431
432<div class="method">
433 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
434 <pre>Updates the parameters of a single ApiConfig.
435
436Args:
437 name: string, Output only. Resource name of the API Config. Format: projects/{project}/locations/global/apis/{api}/configs/{api_config} (required)
438 body: object, The request body.
439 The object takes the form of:
440
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700441{ # An API Configuration is a combination of settings for both the Managed Service and Gateways serving this API Config.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800442 &quot;labels&quot;: { # Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
443 &quot;a_key&quot;: &quot;A String&quot;,
444 },
445 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name.
446 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Updated time.
447 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the API Config. Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
448 &quot;grpcServices&quot;: [ # Optional. gRPC service definition files. If specified, openapi_documents must not be included.
449 { # A gRPC service definition.
450 &quot;fileDescriptorSet&quot;: { # A lightweight description of a file. # Input only. File descriptor set, generated by protoc. To generate, use protoc with imports and source info included. For an example test.proto file, the following command would put the value in a new file named out.pb. $ protoc --include_imports --include_source_info test.proto -o out.pb
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800451 &quot;contents&quot;: &quot;A String&quot;, # The bytes that constitute the file.
452 &quot;path&quot;: &quot;A String&quot;, # The file path (full or relative path). This is typically the path of the file when it is uploaded.
453 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800454 &quot;source&quot;: [ # Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to &#x27;protoc&#x27; command used to generate file_descriptor_set.
455 { # A lightweight description of a file.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800456 &quot;contents&quot;: &quot;A String&quot;, # The bytes that constitute the file.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800457 &quot;path&quot;: &quot;A String&quot;, # The file path (full or relative path). This is typically the path of the file when it is uploaded.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700458 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800459 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800460 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800461 ],
462 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the API Config.
463 &quot;managedServiceConfigs&quot;: [ # Optional. Service Configuration files. At least one must be included when using gRPC service definitions. See https: //cloud.google.com/endpoints/docs/grpc/g // rpc-service-config#service_configuration_overview for the expected file contents. If multiple files are specified, the files are merged with the following rules: * All singular scalar fields are merged using &quot;last one wins&quot; semantics in the order of the files uploaded. * Repeated fields are concatenated. * Singular embedded messages are merged using these rules for nested fields.
464 { # A lightweight description of a file.
465 &quot;contents&quot;: &quot;A String&quot;, # The bytes that constitute the file.
466 &quot;path&quot;: &quot;A String&quot;, # The file path (full or relative path). This is typically the path of the file when it is uploaded.
467 },
468 ],
469 &quot;gatewayConfig&quot;: { # Configuration settings for Gateways. # Immutable. Gateway specific configuration. If not specified, backend authentication will be set to use OIDC authentication using the default compute service account.
470 &quot;backendConfig&quot;: { # Configuration for a backend. # Required. Backend settings that are applied to all backends of the Gateway.
471 &quot;googleServiceAccount&quot;: &quot;A String&quot;, # Google Cloud IAM service account used to sign OIDC tokens for backends that have authentication configured (https: //cloud.google.com/service-infrastructur // e/docs/service-management/reference/rest/v1/services.configs#backend). This may either be the Service Account&#x27;s email (i.e. &quot;{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com&quot;) or its full resource name (i.e. &quot;projects/{PROJECT}/accounts/{UNIQUE_ID}&quot;). This is most often used when the backend is a GCP resource such as a Cloud Run Service or an IAP-secured service. Note that this token is always sent as an authorization header bearer token. The audience of the OIDC token is configured in the associated Service Config in the BackendRule option (https: //github.com/googleapis/googleapis/blob/ // master/google/api/backend.proto#L125).
472 },
473 },
474 &quot;serviceConfigId&quot;: &quot;A String&quot;, # Output only. The ID of the associated Service Config ( https://cloud.google.com/service-infrastructure/docs/glossary#config).
475 &quot;openapiDocuments&quot;: [ # Optional. OpenAPI specification documents. If specified, grpc_services and managed_service_config must not be included.
476 { # An OpenAPI Specification Document describing an API.
477 &quot;document&quot;: { # A lightweight description of a file. # The OpenAPI Specification document file.
478 &quot;contents&quot;: &quot;A String&quot;, # The bytes that constitute the file.
479 &quot;path&quot;: &quot;A String&quot;, # The file path (full or relative path). This is typically the path of the file when it is uploaded.
480 },
481 },
482 ],
483 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
484}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700485
486 updateMask: string, Field mask is used to specify the fields to be overwritten in the ApiConfig resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
487 x__xgafv: string, V1 error format.
488 Allowed values
489 1 - v1 error format
490 2 - v2 error format
491
492Returns:
493 An object of the form:
494
495 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800496 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
497 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800498 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
499 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
500 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800501 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
502 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
503 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700504 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700505 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
506 {
507 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
508 },
509 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800510 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
511 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800512 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700513 }</pre>
514</div>
515
516<div class="method">
517 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
518 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
519
520Args:
521 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
522 body: object, The request body.
523 The object takes the form of:
524
525{ # Request message for `SetIamPolicy` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700526 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700527 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
528 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:aliya@example.com&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700529 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
530 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
531 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
532 &quot;A String&quot;,
533 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800534 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700535 },
536 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800537 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
538 },
539 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800540 &quot;version&quot;: 42, # 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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800541 &quot;etag&quot;: &quot;A String&quot;, # `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.
542 &quot;bindings&quot;: [ # Associates a list of `members` to 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 member.
543 { # Associates `members` with a `role`.
544 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
545 &quot;A String&quot;,
546 ],
547 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800548 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800549 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
550 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
551 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800552 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800553 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800554 &quot;bindingId&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700555 },
556 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700557 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800558 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: &quot;bindings, etag&quot;`
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700559 }
560
561 x__xgafv: string, V1 error format.
562 Allowed values
563 1 - v1 error format
564 2 - v2 error format
565
566Returns:
567 An object of the form:
568
569 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700570 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
571 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:aliya@example.com&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700572 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
573 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
574 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
575 &quot;A String&quot;,
576 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800577 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700578 },
579 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800580 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
581 },
582 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800583 &quot;version&quot;: 42, # 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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800584 &quot;etag&quot;: &quot;A String&quot;, # `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.
585 &quot;bindings&quot;: [ # Associates a list of `members` to 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 member.
586 { # Associates `members` with a `role`.
587 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
588 &quot;A String&quot;,
589 ],
590 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800591 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800592 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
593 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
594 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800595 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800596 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800597 &quot;bindingId&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700598 },
599 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700600 }</pre>
601</div>
602
603<div class="method">
604 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
605 <pre>Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may &quot;fail open&quot; without warning.
606
607Args:
608 resource: string, REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. (required)
609 body: object, The request body.
610 The object takes the form of:
611
612{ # Request message for `TestIamPermissions` method.
613 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
614 &quot;A String&quot;,
615 ],
616 }
617
618 x__xgafv: string, V1 error format.
619 Allowed values
620 1 - v1 error format
621 2 - v2 error format
622
623Returns:
624 An object of the form:
625
626 { # Response message for `TestIamPermissions` method.
627 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
628 &quot;A String&quot;,
629 ],
630 }</pre>
631</div>
632
633</body></html>