blob: 3633402fb01ddb6f947bb0b18e3b5906d3900aaa [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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="bigtableadmin_v2.html">Cloud Bigtable Admin API</a> . <a href="bigtableadmin_v2.projects.html">projects</a> . <a href="bigtableadmin_v2.projects.instances.html">instances</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="bigtableadmin_v2.projects.instances.appProfiles.html">appProfiles()</a></code>
79</p>
80<p class="firstline">Returns the appProfiles Resource.</p>
81
82<p class="toc_element">
83 <code><a href="bigtableadmin_v2.projects.instances.clusters.html">clusters()</a></code>
84</p>
85<p class="firstline">Returns the clusters Resource.</p>
86
87<p class="toc_element">
88 <code><a href="bigtableadmin_v2.projects.instances.tables.html">tables()</a></code>
89</p>
90<p class="firstline">Returns the tables Resource.</p>
91
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Create an instance within a project.</p>
95<p class="toc_element">
96 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
97<p class="firstline">Delete an instance from a project.</p>
98<p class="toc_element">
99 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
100<p class="firstline">Gets information about an instance.</p>
101<p class="toc_element">
102 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Gets the access control policy for an instance resource. Returns an empty</p>
104<p class="toc_element">
105 <code><a href="#list">list(parent, pageToken=None, x__xgafv=None)</a></code></p>
106<p class="firstline">Lists information about instances in a project.</p>
107<p class="toc_element">
108 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
109<p class="firstline">Retrieves the next page of results.</p>
110<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code><a href="#partialUpdateInstance">partialUpdateInstance(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112<p class="firstline">Partially updates an instance within a project. This method can modify all</p>
113<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700114 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115<p class="firstline">Sets the access control policy on an instance resource. Replaces any</p>
116<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118<p class="firstline">Returns permissions that the caller has on the specified instance resource.</p>
119<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700120 <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700121<p class="firstline">Updates an instance within a project. This method updates only the display</p>
122<h3>Method Details</h3>
123<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700124 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125 <pre>Create an instance within a project.
126
127Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700128 parent: string, Required. The unique name of the project in which to create the new instance.
129Values are of the form `projects/{project}`. (required)
130 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131 The object takes the form of:
132
133{ # Request message for BigtableInstanceAdmin.CreateInstance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700134 &quot;instance&quot;: { # A collection of Bigtable Tables and # Required. The instance to create.
135 # Fields marked `OutputOnly` must be left blank.
136 # the resources that serve them.
137 # All tables in an instance are served from all
138 # Clusters in the instance.
139 &quot;labels&quot;: { # Required. Labels are a flexible and lightweight mechanism for organizing cloud
140 # resources into groups that reflect a customer&#x27;s organizational needs and
141 # deployment strategies. They can be used to filter resources and aggregate
142 # metrics.
143 #
144 # * Label keys must be between 1 and 63 characters long and must conform to
145 # the regular expression: `\p{Ll}\p{Lo}{0,62}`.
146 # * Label values must be between 0 and 63 characters long and must conform to
147 # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
148 # * No more than 64 labels can be associated with a given resource.
149 # * Keys and values must both be under 128 bytes.
150 &quot;a_key&quot;: &quot;A String&quot;,
151 },
152 &quot;state&quot;: &quot;A String&quot;, # (`OutputOnly`)
153 # The current state of the instance.
154 &quot;name&quot;: &quot;A String&quot;, # Required. (`OutputOnly`)
155 # The unique name of the instance. Values are of the form
156 # `projects/{project}/instances/a-z+[a-z0-9]`.
157 &quot;displayName&quot;: &quot;A String&quot;, # Required. The descriptive name for this instance as it appears in UIs.
158 # Can be changed at any time, but should be kept globally unique
159 # to avoid confusion.
160 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the instance. Defaults to `PRODUCTION`.
161 },
162 &quot;parent&quot;: &quot;A String&quot;, # Required. The unique name of the project in which to create the new instance.
163 # Values are of the form `projects/{project}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700164 &quot;instanceId&quot;: &quot;A String&quot;, # Required. The ID to be used when referring to the new instance within its project,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700165 # e.g., just `myinstance` rather than
166 # `projects/myproject/instances/myinstance`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700167 &quot;clusters&quot;: { # Required. The clusters to be created within the instance, mapped by desired
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700168 # cluster ID, e.g., just `mycluster` rather than
169 # `projects/myproject/instances/myinstance/clusters/mycluster`.
170 # Fields marked `OutputOnly` must be left blank.
Dan O'Mearadd494642020-05-01 07:42:23 -0700171 # Currently, at most four clusters can be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700172 &quot;a_key&quot;: { # A resizable group of nodes in a particular cloud location, capable
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700173 # of serving all Tables in the parent
174 # Instance.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700175 &quot;name&quot;: &quot;A String&quot;, # Required. (`OutputOnly`)
176 # The unique name of the cluster. Values are of the form
177 # `projects/{project}/instances/{instance}/clusters/a-z*`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;serveNodes&quot;: 42, # Required. The number of nodes allocated to this cluster. More nodes enable higher
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700179 # throughput and more consistent performance.
Bu Sun Kim65020912020-05-20 12:08:20 -0700180 &quot;defaultStorageType&quot;: &quot;A String&quot;, # (`CreationOnly`)
181 # The type of storage used by this cluster to serve its
182 # parent instance&#x27;s tables, unless explicitly overridden.
183 &quot;location&quot;: &quot;A String&quot;, # (`CreationOnly`)
184 # The location where this cluster&#x27;s nodes and storage reside. For best
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700185 # performance, clients should be located as close as possible to this
186 # cluster. Currently only zones are supported, so values should be of the
Dan O'Mearadd494642020-05-01 07:42:23 -0700187 # form `projects/{project}/locations/{zone}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700188 &quot;state&quot;: &quot;A String&quot;, # (`OutputOnly`)
189 # The current state of the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700190 },
191 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700192 }
193
194 x__xgafv: string, V1 error format.
195 Allowed values
196 1 - v1 error format
197 2 - v2 error format
198
199Returns:
200 An object of the form:
201
202 { # This resource represents a long-running operation that is the result of a
203 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700204 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700205 # method returns no data on success, such as `Delete`, the response is
206 # `google.protobuf.Empty`. If the original method is standard
207 # `Get`/`Create`/`Update`, the response should be the resource. For other
208 # methods, the response should have the type `XxxResponse`, where `Xxx`
209 # is the original method name. For example, if the original method name
210 # is `TakeSnapshot()`, the inferred response type is
211 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700212 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700213 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700214 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700215 # originally returns it. If you use the default HTTP mapping, the
216 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700217 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700218 # different programming environments, including REST APIs and RPC APIs. It is
Dan O'Mearadd494642020-05-01 07:42:23 -0700219 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
220 # three pieces of data: error code, error message, and error details.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700221 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700222 # You can find out more about this error model and how to work with it in the
223 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700224 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700225 # user-facing error message should be localized and sent in the
226 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700227 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700228 # message types for APIs to use.
229 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700231 },
232 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700233 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700234 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700235 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
236 # contains progress information and common metadata such as create time.
237 # Some services might not provide such metadata. Any method that returns a
238 # long-running operation should document the metadata type, if any.
239 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
240 },
241 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
242 # If `true`, the operation is completed, and either `error` or `response` is
243 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700244 }</pre>
245</div>
246
247<div class="method">
248 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
249 <pre>Delete an instance from a project.
250
251Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700252 name: string, Required. The unique name of the instance to be deleted.
253Values are of the form `projects/{project}/instances/{instance}`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700254 x__xgafv: string, V1 error format.
255 Allowed values
256 1 - v1 error format
257 2 - v2 error format
258
259Returns:
260 An object of the form:
261
262 { # A generic empty message that you can re-use to avoid defining duplicated
263 # empty messages in your APIs. A typical example is to use it as the request
264 # or the response type of an API method. For instance:
265 #
266 # service Foo {
267 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
268 # }
269 #
270 # The JSON representation for `Empty` is empty JSON object `{}`.
271 }</pre>
272</div>
273
274<div class="method">
275 <code class="details" id="get">get(name, x__xgafv=None)</code>
276 <pre>Gets information about an instance.
277
278Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700279 name: string, Required. The unique name of the requested instance. Values are of the form
280`projects/{project}/instances/{instance}`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700281 x__xgafv: string, V1 error format.
282 Allowed values
283 1 - v1 error format
284 2 - v2 error format
285
286Returns:
287 An object of the form:
288
289 { # A collection of Bigtable Tables and
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700290 # the resources that serve them.
291 # All tables in an instance are served from all
292 # Clusters in the instance.
293 &quot;labels&quot;: { # Required. Labels are a flexible and lightweight mechanism for organizing cloud
294 # resources into groups that reflect a customer&#x27;s organizational needs and
295 # deployment strategies. They can be used to filter resources and aggregate
296 # metrics.
297 #
298 # * Label keys must be between 1 and 63 characters long and must conform to
299 # the regular expression: `\p{Ll}\p{Lo}{0,62}`.
300 # * Label values must be between 0 and 63 characters long and must conform to
301 # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
302 # * No more than 64 labels can be associated with a given resource.
303 # * Keys and values must both be under 128 bytes.
304 &quot;a_key&quot;: &quot;A String&quot;,
305 },
306 &quot;state&quot;: &quot;A String&quot;, # (`OutputOnly`)
307 # The current state of the instance.
308 &quot;name&quot;: &quot;A String&quot;, # Required. (`OutputOnly`)
309 # The unique name of the instance. Values are of the form
310 # `projects/{project}/instances/a-z+[a-z0-9]`.
311 &quot;displayName&quot;: &quot;A String&quot;, # Required. The descriptive name for this instance as it appears in UIs.
312 # Can be changed at any time, but should be kept globally unique
313 # to avoid confusion.
314 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the instance. Defaults to `PRODUCTION`.
315 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700316</div>
317
318<div class="method">
319 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
320 <pre>Gets the access control policy for an instance resource. Returns an empty
321policy if an instance exists but does not have a policy set.
322
323Args:
324 resource: string, REQUIRED: The resource for which the policy is being requested.
325See the operation documentation for the appropriate value for this field. (required)
326 body: object, The request body.
327 The object takes the form of:
328
329{ # Request message for `GetIamPolicy` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700330 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to
Dan O'Mearadd494642020-05-01 07:42:23 -0700331 # `GetIamPolicy`. This field is only used by Cloud IAM.
Bu Sun Kim65020912020-05-20 12:08:20 -0700332 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned.
Dan O'Mearadd494642020-05-01 07:42:23 -0700333 #
334 # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
335 # rejected.
336 #
337 # Requests for policies with any conditional bindings must specify version 3.
338 # Policies without any conditional bindings may specify any valid value or
339 # leave the field unset.
340 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700341 }
342
343 x__xgafv: string, V1 error format.
344 Allowed values
345 1 - v1 error format
346 2 - v2 error format
347
348Returns:
349 An object of the form:
350
Dan O'Mearadd494642020-05-01 07:42:23 -0700351 { # An Identity and Access Management (IAM) policy, which specifies access
352 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700353 #
354 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700355 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
356 # `members` to a single `role`. Members can be user accounts, service accounts,
357 # Google groups, and domains (such as G Suite). A `role` is a named list of
358 # permissions; each `role` can be an IAM predefined role or a user-created
359 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700360 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700361 # Optionally, a `binding` can specify a `condition`, which is a logical
362 # expression that allows access to a resource only if the expression evaluates
363 # to `true`. A condition can add constraints based on attributes of the
364 # request, the resource, or both.
365 #
366 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700367 #
368 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700369 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700370 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700371 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
372 # &quot;members&quot;: [
373 # &quot;user:mike@example.com&quot;,
374 # &quot;group:admins@example.com&quot;,
375 # &quot;domain:google.com&quot;,
376 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700377 # ]
378 # },
379 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700380 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
381 # &quot;members&quot;: [&quot;user:eve@example.com&quot;],
382 # &quot;condition&quot;: {
383 # &quot;title&quot;: &quot;expirable access&quot;,
384 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
385 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700386 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700387 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700388 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700389 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
390 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700391 # }
392 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700393 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700394 #
395 # bindings:
396 # - members:
397 # - user:mike@example.com
398 # - group:admins@example.com
399 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700400 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
401 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700402 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700403 # - user:eve@example.com
404 # role: roles/resourcemanager.organizationViewer
405 # condition:
406 # title: expirable access
407 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700408 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700409 # - etag: BwWWja0YfJA=
410 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700411 #
412 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700413 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700414 &quot;version&quot;: 42, # Specifies the format of the policy.
Dan O'Mearadd494642020-05-01 07:42:23 -0700415 #
416 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
417 # are rejected.
418 #
419 # Any operation that affects conditional role bindings must specify version
420 # `3`. This requirement applies to the following operations:
421 #
422 # * Getting a policy that includes a conditional role binding
423 # * Adding a conditional role binding to a policy
424 # * Changing a conditional role binding in a policy
425 # * Removing any role binding, with or without a condition, from a policy
426 # that includes conditions
427 #
428 # **Important:** If you use IAM Conditions, you must include the `etag` field
429 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
430 # you to overwrite a version `3` policy with a version `1` policy, and all of
431 # the conditions in the version `3` policy are lost.
432 #
433 # If a policy does not include any conditions, operations on that policy may
434 # specify any valid version or leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -0700435 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
436 { # Specifies the audit configuration for a service.
437 # The configuration determines which permission types are logged, and what
438 # identities, if any, are exempted from logging.
439 # An AuditConfig must have one or more AuditLogConfigs.
440 #
441 # If there are AuditConfigs for both `allServices` and a specific service,
442 # the union of the two AuditConfigs is used for that service: the log_types
443 # specified in each AuditConfig are enabled, and the exempted_members in each
444 # AuditLogConfig are exempted.
445 #
446 # Example Policy with multiple AuditConfigs:
447 #
448 # {
449 # &quot;audit_configs&quot;: [
450 # {
451 # &quot;service&quot;: &quot;allServices&quot;
452 # &quot;audit_log_configs&quot;: [
453 # {
454 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
455 # &quot;exempted_members&quot;: [
456 # &quot;user:jose@example.com&quot;
457 # ]
458 # },
459 # {
460 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
461 # },
462 # {
463 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
464 # }
465 # ]
466 # },
467 # {
468 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
469 # &quot;audit_log_configs&quot;: [
470 # {
471 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
472 # },
473 # {
474 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
475 # &quot;exempted_members&quot;: [
476 # &quot;user:aliya@example.com&quot;
477 # ]
478 # }
479 # ]
480 # }
481 # ]
482 # }
483 #
484 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
485 # logging. It also exempts jose@example.com from DATA_READ logging, and
486 # aliya@example.com from DATA_WRITE logging.
487 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
488 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
489 # `allServices` is a special value that covers all services.
490 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
491 { # Provides the configuration for logging a type of permissions.
492 # Example:
493 #
494 # {
495 # &quot;audit_log_configs&quot;: [
496 # {
497 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
498 # &quot;exempted_members&quot;: [
499 # &quot;user:jose@example.com&quot;
500 # ]
501 # },
502 # {
503 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
504 # }
505 # ]
506 # }
507 #
508 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
509 # jose@example.com from DATA_READ logging.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700510 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -0700511 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
512 # permission.
513 # Follows the same format of Binding.members.
514 &quot;A String&quot;,
515 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700516 },
517 ],
518 },
519 ],
520 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700521 # `condition` that determines how and when the `bindings` are applied. Each
522 # of the `bindings` must contain at least one member.
523 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700524 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
525 # NOTE: An unsatisfied condition will not allow user access via current
526 # binding. Different bindings, including their conditions, are examined
527 # independently.
528 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
529 # are documented at https://github.com/google/cel-spec.
530 #
531 # Example (Comparison):
532 #
533 # title: &quot;Summary size limit&quot;
534 # description: &quot;Determines if a summary is less than 100 chars&quot;
535 # expression: &quot;document.summary.size() &lt; 100&quot;
536 #
537 # Example (Equality):
538 #
539 # title: &quot;Requestor is owner&quot;
540 # description: &quot;Determines if requestor is the document owner&quot;
541 # expression: &quot;document.owner == request.auth.claims.email&quot;
542 #
543 # Example (Logic):
544 #
545 # title: &quot;Public documents&quot;
546 # description: &quot;Determine whether the document should be publicly visible&quot;
547 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
548 #
549 # Example (Data Manipulation):
550 #
551 # title: &quot;Notification string&quot;
552 # description: &quot;Create a notification string with a timestamp.&quot;
553 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
554 #
555 # The exact variables and functions that may be referenced within an expression
556 # are determined by the service that evaluates it. See the service
557 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700558 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
559 # its purpose. This can be used e.g. in UIs which allow to enter the
560 # expression.
561 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
562 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700563 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
564 # describes the expression, e.g. when hovered over it in a UI.
565 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
566 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -0700567 },
568 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -0700569 # `members` can have the following values:
570 #
571 # * `allUsers`: A special identifier that represents anyone who is
572 # on the internet; with or without a Google account.
573 #
574 # * `allAuthenticatedUsers`: A special identifier that represents anyone
575 # who is authenticated with a Google account or a service account.
576 #
577 # * `user:{emailid}`: An email address that represents a specific Google
578 # account. For example, `alice@example.com` .
579 #
580 #
581 # * `serviceAccount:{emailid}`: An email address that represents a service
582 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
583 #
584 # * `group:{emailid}`: An email address that represents a Google group.
585 # For example, `admins@example.com`.
586 #
587 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
588 # identifier) representing a user that has been recently deleted. For
589 # example, `alice@example.com?uid=123456789012345678901`. If the user is
590 # recovered, this value reverts to `user:{emailid}` and the recovered user
591 # retains the role in the binding.
592 #
593 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
594 # unique identifier) representing a service account that has been recently
595 # deleted. For example,
596 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
597 # If the service account is undeleted, this value reverts to
598 # `serviceAccount:{emailid}` and the undeleted service account retains the
599 # role in the binding.
600 #
601 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
602 # identifier) representing a Google group that has been recently
603 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
604 # the group is recovered, this value reverts to `group:{emailid}` and the
605 # recovered group retains the role in the binding.
606 #
607 #
608 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
609 # users of that domain. For example, `google.com` or `example.com`.
610 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700611 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700612 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700613 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
614 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700615 },
616 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700617 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
618 # prevent simultaneous updates of a policy from overwriting each other.
619 # It is strongly suggested that systems make use of the `etag` in the
620 # read-modify-write cycle to perform policy updates in order to avoid race
621 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
622 # systems are expected to put that etag in the request to `setIamPolicy` to
623 # ensure that their change will be applied to the same version of the policy.
624 #
625 # **Important:** If you use IAM Conditions, you must include the `etag` field
626 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
627 # you to overwrite a version `3` policy with a version `1` policy, and all of
628 # the conditions in the version `3` policy are lost.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700629 }</pre>
630</div>
631
632<div class="method">
633 <code class="details" id="list">list(parent, pageToken=None, x__xgafv=None)</code>
634 <pre>Lists information about instances in a project.
635
636Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700637 parent: string, Required. The unique name of the project for which a list of instances is requested.
638Values are of the form `projects/{project}`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700639 pageToken: string, DEPRECATED: This field is unused and ignored.
640 x__xgafv: string, V1 error format.
641 Allowed values
642 1 - v1 error format
643 2 - v2 error format
644
645Returns:
646 An object of the form:
647
648 { # Response message for BigtableInstanceAdmin.ListInstances.
Bu Sun Kim65020912020-05-20 12:08:20 -0700649 &quot;failedLocations&quot;: [ # Locations from which Instance information could not be retrieved,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700650 # due to an outage or some other transient condition.
651 # Instances whose Clusters are all in one of the failed locations
652 # may be missing from `instances`, and Instances with at least one
653 # Cluster in a failed location may only have partial information returned.
Dan O'Mearadd494642020-05-01 07:42:23 -0700654 # Values are of the form `projects/&lt;project&gt;/locations/&lt;zone_id&gt;`
Bu Sun Kim65020912020-05-20 12:08:20 -0700655 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700656 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700657 &quot;nextPageToken&quot;: &quot;A String&quot;, # DEPRECATED: This field is unused and ignored.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700658 &quot;instances&quot;: [ # The list of requested instances.
659 { # A collection of Bigtable Tables and
660 # the resources that serve them.
661 # All tables in an instance are served from all
662 # Clusters in the instance.
663 &quot;labels&quot;: { # Required. Labels are a flexible and lightweight mechanism for organizing cloud
664 # resources into groups that reflect a customer&#x27;s organizational needs and
665 # deployment strategies. They can be used to filter resources and aggregate
666 # metrics.
667 #
668 # * Label keys must be between 1 and 63 characters long and must conform to
669 # the regular expression: `\p{Ll}\p{Lo}{0,62}`.
670 # * Label values must be between 0 and 63 characters long and must conform to
671 # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
672 # * No more than 64 labels can be associated with a given resource.
673 # * Keys and values must both be under 128 bytes.
674 &quot;a_key&quot;: &quot;A String&quot;,
675 },
676 &quot;state&quot;: &quot;A String&quot;, # (`OutputOnly`)
677 # The current state of the instance.
678 &quot;name&quot;: &quot;A String&quot;, # Required. (`OutputOnly`)
679 # The unique name of the instance. Values are of the form
680 # `projects/{project}/instances/a-z+[a-z0-9]`.
681 &quot;displayName&quot;: &quot;A String&quot;, # Required. The descriptive name for this instance as it appears in UIs.
682 # Can be changed at any time, but should be kept globally unique
683 # to avoid confusion.
684 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the instance. Defaults to `PRODUCTION`.
685 },
686 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700687 }</pre>
688</div>
689
690<div class="method">
691 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
692 <pre>Retrieves the next page of results.
693
694Args:
695 previous_request: The request for the previous page. (required)
696 previous_response: The response from the request for the previous page. (required)
697
698Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700699 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700700 page. Returns None if there are no more items in the collection.
701 </pre>
702</div>
703
704<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700705 <code class="details" id="partialUpdateInstance">partialUpdateInstance(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700706 <pre>Partially updates an instance within a project. This method can modify all
707fields of an Instance and is the preferred way to update an Instance.
708
709Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700710 name: string, Required. (`OutputOnly`)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700711The unique name of the instance. Values are of the form
Dan O'Mearadd494642020-05-01 07:42:23 -0700712`projects/{project}/instances/a-z+[a-z0-9]`. (required)
713 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700714 The object takes the form of:
715
716{ # A collection of Bigtable Tables and
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700717 # the resources that serve them.
718 # All tables in an instance are served from all
719 # Clusters in the instance.
720 &quot;labels&quot;: { # Required. Labels are a flexible and lightweight mechanism for organizing cloud
721 # resources into groups that reflect a customer&#x27;s organizational needs and
722 # deployment strategies. They can be used to filter resources and aggregate
723 # metrics.
724 #
725 # * Label keys must be between 1 and 63 characters long and must conform to
726 # the regular expression: `\p{Ll}\p{Lo}{0,62}`.
727 # * Label values must be between 0 and 63 characters long and must conform to
728 # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
729 # * No more than 64 labels can be associated with a given resource.
730 # * Keys and values must both be under 128 bytes.
731 &quot;a_key&quot;: &quot;A String&quot;,
732 },
733 &quot;state&quot;: &quot;A String&quot;, # (`OutputOnly`)
734 # The current state of the instance.
735 &quot;name&quot;: &quot;A String&quot;, # Required. (`OutputOnly`)
736 # The unique name of the instance. Values are of the form
737 # `projects/{project}/instances/a-z+[a-z0-9]`.
738 &quot;displayName&quot;: &quot;A String&quot;, # Required. The descriptive name for this instance as it appears in UIs.
739 # Can be changed at any time, but should be kept globally unique
740 # to avoid confusion.
741 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the instance. Defaults to `PRODUCTION`.
742 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700743
Dan O'Mearadd494642020-05-01 07:42:23 -0700744 updateMask: string, Required. The subset of Instance fields which should be replaced.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700745Must be explicitly set.
746 x__xgafv: string, V1 error format.
747 Allowed values
748 1 - v1 error format
749 2 - v2 error format
750
751Returns:
752 An object of the form:
753
754 { # This resource represents a long-running operation that is the result of a
755 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700756 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700757 # method returns no data on success, such as `Delete`, the response is
758 # `google.protobuf.Empty`. If the original method is standard
759 # `Get`/`Create`/`Update`, the response should be the resource. For other
760 # methods, the response should have the type `XxxResponse`, where `Xxx`
761 # is the original method name. For example, if the original method name
762 # is `TakeSnapshot()`, the inferred response type is
763 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700764 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700765 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700766 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700767 # originally returns it. If you use the default HTTP mapping, the
768 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700769 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700770 # different programming environments, including REST APIs and RPC APIs. It is
Dan O'Mearadd494642020-05-01 07:42:23 -0700771 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
772 # three pieces of data: error code, error message, and error details.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700773 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700774 # You can find out more about this error model and how to work with it in the
775 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700776 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700777 # user-facing error message should be localized and sent in the
778 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700779 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700780 # message types for APIs to use.
781 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700782 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700783 },
784 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700785 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700786 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700787 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
788 # contains progress information and common metadata such as create time.
789 # Some services might not provide such metadata. Any method that returns a
790 # long-running operation should document the metadata type, if any.
791 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
792 },
793 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
794 # If `true`, the operation is completed, and either `error` or `response` is
795 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700796 }</pre>
797</div>
798
799<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700800 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700801 <pre>Sets the access control policy on an instance resource. Replaces any
802existing policy.
803
804Args:
805 resource: string, REQUIRED: The resource for which the policy is being specified.
806See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700807 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700808 The object takes the form of:
809
810{ # Request message for `SetIamPolicy` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700811 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the `resource`. The size of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700812 # the policy is limited to a few 10s of KB. An empty policy is a
813 # valid policy but certain Cloud Platform services (such as Projects)
814 # might reject them.
Dan O'Mearadd494642020-05-01 07:42:23 -0700815 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700816 #
817 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700818 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
819 # `members` to a single `role`. Members can be user accounts, service accounts,
820 # Google groups, and domains (such as G Suite). A `role` is a named list of
821 # permissions; each `role` can be an IAM predefined role or a user-created
822 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700823 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700824 # Optionally, a `binding` can specify a `condition`, which is a logical
825 # expression that allows access to a resource only if the expression evaluates
826 # to `true`. A condition can add constraints based on attributes of the
827 # request, the resource, or both.
828 #
829 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700830 #
831 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700832 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700833 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700834 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
835 # &quot;members&quot;: [
836 # &quot;user:mike@example.com&quot;,
837 # &quot;group:admins@example.com&quot;,
838 # &quot;domain:google.com&quot;,
839 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700840 # ]
841 # },
842 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700843 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
844 # &quot;members&quot;: [&quot;user:eve@example.com&quot;],
845 # &quot;condition&quot;: {
846 # &quot;title&quot;: &quot;expirable access&quot;,
847 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
848 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700849 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700850 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700851 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700852 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
853 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700854 # }
855 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700856 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700857 #
858 # bindings:
859 # - members:
860 # - user:mike@example.com
861 # - group:admins@example.com
862 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700863 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
864 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700865 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700866 # - user:eve@example.com
867 # role: roles/resourcemanager.organizationViewer
868 # condition:
869 # title: expirable access
870 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700871 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700872 # - etag: BwWWja0YfJA=
873 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700874 #
875 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700876 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700877 &quot;version&quot;: 42, # Specifies the format of the policy.
Dan O'Mearadd494642020-05-01 07:42:23 -0700878 #
879 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
880 # are rejected.
881 #
882 # Any operation that affects conditional role bindings must specify version
883 # `3`. This requirement applies to the following operations:
884 #
885 # * Getting a policy that includes a conditional role binding
886 # * Adding a conditional role binding to a policy
887 # * Changing a conditional role binding in a policy
888 # * Removing any role binding, with or without a condition, from a policy
889 # that includes conditions
890 #
891 # **Important:** If you use IAM Conditions, you must include the `etag` field
892 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
893 # you to overwrite a version `3` policy with a version `1` policy, and all of
894 # the conditions in the version `3` policy are lost.
895 #
896 # If a policy does not include any conditions, operations on that policy may
897 # specify any valid version or leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -0700898 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
899 { # Specifies the audit configuration for a service.
900 # The configuration determines which permission types are logged, and what
901 # identities, if any, are exempted from logging.
902 # An AuditConfig must have one or more AuditLogConfigs.
903 #
904 # If there are AuditConfigs for both `allServices` and a specific service,
905 # the union of the two AuditConfigs is used for that service: the log_types
906 # specified in each AuditConfig are enabled, and the exempted_members in each
907 # AuditLogConfig are exempted.
908 #
909 # Example Policy with multiple AuditConfigs:
910 #
911 # {
912 # &quot;audit_configs&quot;: [
913 # {
914 # &quot;service&quot;: &quot;allServices&quot;
915 # &quot;audit_log_configs&quot;: [
916 # {
917 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
918 # &quot;exempted_members&quot;: [
919 # &quot;user:jose@example.com&quot;
920 # ]
921 # },
922 # {
923 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
924 # },
925 # {
926 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
927 # }
928 # ]
929 # },
930 # {
931 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
932 # &quot;audit_log_configs&quot;: [
933 # {
934 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
935 # },
936 # {
937 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
938 # &quot;exempted_members&quot;: [
939 # &quot;user:aliya@example.com&quot;
940 # ]
941 # }
942 # ]
943 # }
944 # ]
945 # }
946 #
947 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
948 # logging. It also exempts jose@example.com from DATA_READ logging, and
949 # aliya@example.com from DATA_WRITE logging.
950 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
951 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
952 # `allServices` is a special value that covers all services.
953 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
954 { # Provides the configuration for logging a type of permissions.
955 # Example:
956 #
957 # {
958 # &quot;audit_log_configs&quot;: [
959 # {
960 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
961 # &quot;exempted_members&quot;: [
962 # &quot;user:jose@example.com&quot;
963 # ]
964 # },
965 # {
966 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
967 # }
968 # ]
969 # }
970 #
971 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
972 # jose@example.com from DATA_READ logging.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700973 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -0700974 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
975 # permission.
976 # Follows the same format of Binding.members.
977 &quot;A String&quot;,
978 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700979 },
980 ],
981 },
982 ],
983 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700984 # `condition` that determines how and when the `bindings` are applied. Each
985 # of the `bindings` must contain at least one member.
986 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700987 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
988 # NOTE: An unsatisfied condition will not allow user access via current
989 # binding. Different bindings, including their conditions, are examined
990 # independently.
991 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
992 # are documented at https://github.com/google/cel-spec.
993 #
994 # Example (Comparison):
995 #
996 # title: &quot;Summary size limit&quot;
997 # description: &quot;Determines if a summary is less than 100 chars&quot;
998 # expression: &quot;document.summary.size() &lt; 100&quot;
999 #
1000 # Example (Equality):
1001 #
1002 # title: &quot;Requestor is owner&quot;
1003 # description: &quot;Determines if requestor is the document owner&quot;
1004 # expression: &quot;document.owner == request.auth.claims.email&quot;
1005 #
1006 # Example (Logic):
1007 #
1008 # title: &quot;Public documents&quot;
1009 # description: &quot;Determine whether the document should be publicly visible&quot;
1010 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1011 #
1012 # Example (Data Manipulation):
1013 #
1014 # title: &quot;Notification string&quot;
1015 # description: &quot;Create a notification string with a timestamp.&quot;
1016 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1017 #
1018 # The exact variables and functions that may be referenced within an expression
1019 # are determined by the service that evaluates it. See the service
1020 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001021 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1022 # its purpose. This can be used e.g. in UIs which allow to enter the
1023 # expression.
1024 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1025 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001026 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1027 # describes the expression, e.g. when hovered over it in a UI.
1028 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1029 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -07001030 },
1031 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -07001032 # `members` can have the following values:
1033 #
1034 # * `allUsers`: A special identifier that represents anyone who is
1035 # on the internet; with or without a Google account.
1036 #
1037 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1038 # who is authenticated with a Google account or a service account.
1039 #
1040 # * `user:{emailid}`: An email address that represents a specific Google
1041 # account. For example, `alice@example.com` .
1042 #
1043 #
1044 # * `serviceAccount:{emailid}`: An email address that represents a service
1045 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1046 #
1047 # * `group:{emailid}`: An email address that represents a Google group.
1048 # For example, `admins@example.com`.
1049 #
1050 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1051 # identifier) representing a user that has been recently deleted. For
1052 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1053 # recovered, this value reverts to `user:{emailid}` and the recovered user
1054 # retains the role in the binding.
1055 #
1056 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1057 # unique identifier) representing a service account that has been recently
1058 # deleted. For example,
1059 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1060 # If the service account is undeleted, this value reverts to
1061 # `serviceAccount:{emailid}` and the undeleted service account retains the
1062 # role in the binding.
1063 #
1064 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1065 # identifier) representing a Google group that has been recently
1066 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1067 # the group is recovered, this value reverts to `group:{emailid}` and the
1068 # recovered group retains the role in the binding.
1069 #
1070 #
1071 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1072 # users of that domain. For example, `google.com` or `example.com`.
1073 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001074 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001075 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001076 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1077 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Dan O'Mearadd494642020-05-01 07:42:23 -07001078 },
1079 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001080 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1081 # prevent simultaneous updates of a policy from overwriting each other.
1082 # It is strongly suggested that systems make use of the `etag` in the
1083 # read-modify-write cycle to perform policy updates in order to avoid race
1084 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1085 # systems are expected to put that etag in the request to `setIamPolicy` to
1086 # ensure that their change will be applied to the same version of the policy.
1087 #
1088 # **Important:** If you use IAM Conditions, you must include the `etag` field
1089 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1090 # you to overwrite a version `3` policy with a version `1` policy, and all of
1091 # the conditions in the version `3` policy are lost.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001092 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001093 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001094 # the fields in the mask will be modified. If no mask is provided, the
1095 # following default mask is used:
Bu Sun Kim65020912020-05-20 12:08:20 -07001096 # paths: &quot;bindings, etag&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001097 # This field is only used by Cloud IAM.
1098 }
1099
1100 x__xgafv: string, V1 error format.
1101 Allowed values
1102 1 - v1 error format
1103 2 - v2 error format
1104
1105Returns:
1106 An object of the form:
1107
Dan O'Mearadd494642020-05-01 07:42:23 -07001108 { # An Identity and Access Management (IAM) policy, which specifies access
1109 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001110 #
1111 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001112 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1113 # `members` to a single `role`. Members can be user accounts, service accounts,
1114 # Google groups, and domains (such as G Suite). A `role` is a named list of
1115 # permissions; each `role` can be an IAM predefined role or a user-created
1116 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001117 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001118 # Optionally, a `binding` can specify a `condition`, which is a logical
1119 # expression that allows access to a resource only if the expression evaluates
1120 # to `true`. A condition can add constraints based on attributes of the
1121 # request, the resource, or both.
1122 #
1123 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001124 #
1125 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001126 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001127 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001128 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1129 # &quot;members&quot;: [
1130 # &quot;user:mike@example.com&quot;,
1131 # &quot;group:admins@example.com&quot;,
1132 # &quot;domain:google.com&quot;,
1133 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001134 # ]
1135 # },
1136 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001137 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1138 # &quot;members&quot;: [&quot;user:eve@example.com&quot;],
1139 # &quot;condition&quot;: {
1140 # &quot;title&quot;: &quot;expirable access&quot;,
1141 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1142 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001143 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001144 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001145 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001146 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1147 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001148 # }
1149 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001150 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001151 #
1152 # bindings:
1153 # - members:
1154 # - user:mike@example.com
1155 # - group:admins@example.com
1156 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001157 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1158 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001159 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001160 # - user:eve@example.com
1161 # role: roles/resourcemanager.organizationViewer
1162 # condition:
1163 # title: expirable access
1164 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001165 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001166 # - etag: BwWWja0YfJA=
1167 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001168 #
1169 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07001170 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001171 &quot;version&quot;: 42, # Specifies the format of the policy.
Dan O'Mearadd494642020-05-01 07:42:23 -07001172 #
1173 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1174 # are rejected.
1175 #
1176 # Any operation that affects conditional role bindings must specify version
1177 # `3`. This requirement applies to the following operations:
1178 #
1179 # * Getting a policy that includes a conditional role binding
1180 # * Adding a conditional role binding to a policy
1181 # * Changing a conditional role binding in a policy
1182 # * Removing any role binding, with or without a condition, from a policy
1183 # that includes conditions
1184 #
1185 # **Important:** If you use IAM Conditions, you must include the `etag` field
1186 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1187 # you to overwrite a version `3` policy with a version `1` policy, and all of
1188 # the conditions in the version `3` policy are lost.
1189 #
1190 # If a policy does not include any conditions, operations on that policy may
1191 # specify any valid version or leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -07001192 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1193 { # Specifies the audit configuration for a service.
1194 # The configuration determines which permission types are logged, and what
1195 # identities, if any, are exempted from logging.
1196 # An AuditConfig must have one or more AuditLogConfigs.
1197 #
1198 # If there are AuditConfigs for both `allServices` and a specific service,
1199 # the union of the two AuditConfigs is used for that service: the log_types
1200 # specified in each AuditConfig are enabled, and the exempted_members in each
1201 # AuditLogConfig are exempted.
1202 #
1203 # Example Policy with multiple AuditConfigs:
1204 #
1205 # {
1206 # &quot;audit_configs&quot;: [
1207 # {
1208 # &quot;service&quot;: &quot;allServices&quot;
1209 # &quot;audit_log_configs&quot;: [
1210 # {
1211 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1212 # &quot;exempted_members&quot;: [
1213 # &quot;user:jose@example.com&quot;
1214 # ]
1215 # },
1216 # {
1217 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1218 # },
1219 # {
1220 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
1221 # }
1222 # ]
1223 # },
1224 # {
1225 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
1226 # &quot;audit_log_configs&quot;: [
1227 # {
1228 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1229 # },
1230 # {
1231 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1232 # &quot;exempted_members&quot;: [
1233 # &quot;user:aliya@example.com&quot;
1234 # ]
1235 # }
1236 # ]
1237 # }
1238 # ]
1239 # }
1240 #
1241 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1242 # logging. It also exempts jose@example.com from DATA_READ logging, and
1243 # aliya@example.com from DATA_WRITE logging.
1244 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1245 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1246 # `allServices` is a special value that covers all services.
1247 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1248 { # Provides the configuration for logging a type of permissions.
1249 # Example:
1250 #
1251 # {
1252 # &quot;audit_log_configs&quot;: [
1253 # {
1254 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1255 # &quot;exempted_members&quot;: [
1256 # &quot;user:jose@example.com&quot;
1257 # ]
1258 # },
1259 # {
1260 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1261 # }
1262 # ]
1263 # }
1264 #
1265 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1266 # jose@example.com from DATA_READ logging.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001267 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim65020912020-05-20 12:08:20 -07001268 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1269 # permission.
1270 # Follows the same format of Binding.members.
1271 &quot;A String&quot;,
1272 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001273 },
1274 ],
1275 },
1276 ],
1277 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001278 # `condition` that determines how and when the `bindings` are applied. Each
1279 # of the `bindings` must contain at least one member.
1280 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001281 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1282 # NOTE: An unsatisfied condition will not allow user access via current
1283 # binding. Different bindings, including their conditions, are examined
1284 # independently.
1285 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1286 # are documented at https://github.com/google/cel-spec.
1287 #
1288 # Example (Comparison):
1289 #
1290 # title: &quot;Summary size limit&quot;
1291 # description: &quot;Determines if a summary is less than 100 chars&quot;
1292 # expression: &quot;document.summary.size() &lt; 100&quot;
1293 #
1294 # Example (Equality):
1295 #
1296 # title: &quot;Requestor is owner&quot;
1297 # description: &quot;Determines if requestor is the document owner&quot;
1298 # expression: &quot;document.owner == request.auth.claims.email&quot;
1299 #
1300 # Example (Logic):
1301 #
1302 # title: &quot;Public documents&quot;
1303 # description: &quot;Determine whether the document should be publicly visible&quot;
1304 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1305 #
1306 # Example (Data Manipulation):
1307 #
1308 # title: &quot;Notification string&quot;
1309 # description: &quot;Create a notification string with a timestamp.&quot;
1310 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1311 #
1312 # The exact variables and functions that may be referenced within an expression
1313 # are determined by the service that evaluates it. See the service
1314 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001315 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1316 # its purpose. This can be used e.g. in UIs which allow to enter the
1317 # expression.
1318 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1319 # reporting, e.g. a file name and a position in the file.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001320 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1321 # describes the expression, e.g. when hovered over it in a UI.
1322 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1323 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -07001324 },
1325 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Dan O'Mearadd494642020-05-01 07:42:23 -07001326 # `members` can have the following values:
1327 #
1328 # * `allUsers`: A special identifier that represents anyone who is
1329 # on the internet; with or without a Google account.
1330 #
1331 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1332 # who is authenticated with a Google account or a service account.
1333 #
1334 # * `user:{emailid}`: An email address that represents a specific Google
1335 # account. For example, `alice@example.com` .
1336 #
1337 #
1338 # * `serviceAccount:{emailid}`: An email address that represents a service
1339 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1340 #
1341 # * `group:{emailid}`: An email address that represents a Google group.
1342 # For example, `admins@example.com`.
1343 #
1344 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1345 # identifier) representing a user that has been recently deleted. For
1346 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1347 # recovered, this value reverts to `user:{emailid}` and the recovered user
1348 # retains the role in the binding.
1349 #
1350 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1351 # unique identifier) representing a service account that has been recently
1352 # deleted. For example,
1353 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1354 # If the service account is undeleted, this value reverts to
1355 # `serviceAccount:{emailid}` and the undeleted service account retains the
1356 # role in the binding.
1357 #
1358 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1359 # identifier) representing a Google group that has been recently
1360 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1361 # the group is recovered, this value reverts to `group:{emailid}` and the
1362 # recovered group retains the role in the binding.
1363 #
1364 #
1365 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1366 # users of that domain. For example, `google.com` or `example.com`.
1367 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001368 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001369 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001370 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1371 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Dan O'Mearadd494642020-05-01 07:42:23 -07001372 },
1373 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001374 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1375 # prevent simultaneous updates of a policy from overwriting each other.
1376 # It is strongly suggested that systems make use of the `etag` in the
1377 # read-modify-write cycle to perform policy updates in order to avoid race
1378 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1379 # systems are expected to put that etag in the request to `setIamPolicy` to
1380 # ensure that their change will be applied to the same version of the policy.
1381 #
1382 # **Important:** If you use IAM Conditions, you must include the `etag` field
1383 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1384 # you to overwrite a version `3` policy with a version `1` policy, and all of
1385 # the conditions in the version `3` policy are lost.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001386 }</pre>
1387</div>
1388
1389<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001390 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001391 <pre>Returns permissions that the caller has on the specified instance resource.
1392
1393Args:
1394 resource: string, REQUIRED: The resource for which the policy detail is being requested.
1395See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001396 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001397 The object takes the form of:
1398
1399{ # Request message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001400 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
1401 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001402 # information see
1403 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -07001404 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001405 ],
1406 }
1407
1408 x__xgafv: string, V1 error format.
1409 Allowed values
1410 1 - v1 error format
1411 2 - v2 error format
1412
1413Returns:
1414 An object of the form:
1415
1416 { # Response message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001417 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001418 # allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001419 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001420 ],
1421 }</pre>
1422</div>
1423
1424<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001425 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001426 <pre>Updates an instance within a project. This method updates only the display
1427name and type for an Instance. To update other Instance properties, such as
1428labels, use PartialUpdateInstance.
1429
1430Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001431 name: string, Required. (`OutputOnly`)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001432The unique name of the instance. Values are of the form
Dan O'Mearadd494642020-05-01 07:42:23 -07001433`projects/{project}/instances/a-z+[a-z0-9]`. (required)
1434 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001435 The object takes the form of:
1436
1437{ # A collection of Bigtable Tables and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001438 # the resources that serve them.
1439 # All tables in an instance are served from all
1440 # Clusters in the instance.
Bu Sun Kim65020912020-05-20 12:08:20 -07001441 &quot;labels&quot;: { # Required. Labels are a flexible and lightweight mechanism for organizing cloud
1442 # resources into groups that reflect a customer&#x27;s organizational needs and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001443 # deployment strategies. They can be used to filter resources and aggregate
1444 # metrics.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001445 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001446 # * Label keys must be between 1 and 63 characters long and must conform to
1447 # the regular expression: `\p{Ll}\p{Lo}{0,62}`.
1448 # * Label values must be between 0 and 63 characters long and must conform to
1449 # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
1450 # * No more than 64 labels can be associated with a given resource.
1451 # * Keys and values must both be under 128 bytes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001452 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001453 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001454 &quot;state&quot;: &quot;A String&quot;, # (`OutputOnly`)
1455 # The current state of the instance.
1456 &quot;name&quot;: &quot;A String&quot;, # Required. (`OutputOnly`)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001457 # The unique name of the instance. Values are of the form
Dan O'Mearadd494642020-05-01 07:42:23 -07001458 # `projects/{project}/instances/a-z+[a-z0-9]`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001459 &quot;displayName&quot;: &quot;A String&quot;, # Required. The descriptive name for this instance as it appears in UIs.
1460 # Can be changed at any time, but should be kept globally unique
1461 # to avoid confusion.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001462 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the instance. Defaults to `PRODUCTION`.
1463 }
1464
1465 x__xgafv: string, V1 error format.
1466 Allowed values
1467 1 - v1 error format
1468 2 - v2 error format
1469
1470Returns:
1471 An object of the form:
1472
1473 { # A collection of Bigtable Tables and
1474 # the resources that serve them.
1475 # All tables in an instance are served from all
1476 # Clusters in the instance.
1477 &quot;labels&quot;: { # Required. Labels are a flexible and lightweight mechanism for organizing cloud
1478 # resources into groups that reflect a customer&#x27;s organizational needs and
1479 # deployment strategies. They can be used to filter resources and aggregate
1480 # metrics.
1481 #
1482 # * Label keys must be between 1 and 63 characters long and must conform to
1483 # the regular expression: `\p{Ll}\p{Lo}{0,62}`.
1484 # * Label values must be between 0 and 63 characters long and must conform to
1485 # the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
1486 # * No more than 64 labels can be associated with a given resource.
1487 # * Keys and values must both be under 128 bytes.
1488 &quot;a_key&quot;: &quot;A String&quot;,
1489 },
1490 &quot;state&quot;: &quot;A String&quot;, # (`OutputOnly`)
1491 # The current state of the instance.
1492 &quot;name&quot;: &quot;A String&quot;, # Required. (`OutputOnly`)
1493 # The unique name of the instance. Values are of the form
1494 # `projects/{project}/instances/a-z+[a-z0-9]`.
1495 &quot;displayName&quot;: &quot;A String&quot;, # Required. The descriptive name for this instance as it appears in UIs.
1496 # Can be changed at any time, but should be kept globally unique
1497 # to avoid confusion.
1498 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the instance. Defaults to `PRODUCTION`.
1499 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001500</div>
1501
1502</body></html>