blob: 76b74b387f46770951d102805ce182be99b67957 [file] [log] [blame]
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001<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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="dataproc_v1.html">Cloud Dataproc API</a> . <a href="dataproc_v1.projects.html">projects</a> . <a href="dataproc_v1.projects.regions.html">regions</a> . <a href="dataproc_v1.projects.regions.operations.html">operations</a></h1>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080076<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#cancel">cancel(name, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040079<p class="firstline">Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.</p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080080<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040082<p class="firstline">Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.</p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080083<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.</p>
86<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
88<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>
89<p class="toc_element">
90 <code><a href="#list">list(name, pageToken=None, x__xgafv=None, pageSize=None, filter=None)</a></code></p>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040091<p class="firstline">Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.</p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080092<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<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>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800101<h3>Method Details</h3>
102<div class="method">
103 <code class="details" id="cancel">cancel(name, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400104 <pre>Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800105
106Args:
107 name: string, The name of the operation resource to be cancelled. (required)
108 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400109 Allowed values
110 1 - v1 error format
111 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800112
113Returns:
114 An object of the form:
115
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400116 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
117 # service Foo {
118 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
119 # }
120 # The JSON representation for Empty is empty JSON object {}.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800121 }</pre>
122</div>
123
124<div class="method">
125 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400126 <pre>Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800127
128Args:
129 name: string, The name of the operation resource to be deleted. (required)
130 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400131 Allowed values
132 1 - v1 error format
133 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800134
135Returns:
136 An object of the form:
137
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400138 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
139 # service Foo {
140 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
141 # }
142 # The JSON representation for Empty is empty JSON object {}.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800143 }</pre>
144</div>
145
146<div class="method">
147 <code class="details" id="get">get(name, x__xgafv=None)</code>
148 <pre>Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
149
150Args:
151 name: string, The name of the operation resource. (required)
152 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400153 Allowed values
154 1 - v1 error format
155 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800156
157Returns:
158 An object of the form:
159
160 { # This resource represents a long-running operation that is the result of a network API call.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400161 "metadata": { # 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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800162 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800163 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700164 "error": { # 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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800165 "message": "A String", # 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.
166 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700167 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800168 {
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800169 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800170 },
171 ],
172 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700173 "done": 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.
174 "response": { # 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.
175 "a_key": "", # Properties of the object. Contains field @type with type URL.
176 },
177 "name": "A String", # 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}.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800178 }</pre>
179</div>
180
181<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700182 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
183 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
184
185Args:
186 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
187 body: object, The request body.
188 The object takes the form of:
189
190{ # Request message for GetIamPolicy method.
Dan O'Mearadd494642020-05-01 07:42:23 -0700191 "options": { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A GetPolicyOptions object for specifying options to GetIamPolicy. This field is only used by Cloud IAM.
192 "requestedPolicyVersion": 42, # 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.
193 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700194 }
195
196 x__xgafv: string, V1 error format.
197 Allowed values
198 1 - v1 error format
199 2 - v2 error format
200
201Returns:
202 An object of the form:
203
Dan O'Mearadd494642020-05-01 07:42:23 -0700204 { # 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.Optionally, a binding can 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.JSON example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700205 # {
206 # "bindings": [
207 # {
Dan O'Mearadd494642020-05-01 07:42:23 -0700208 # "role": "roles/resourcemanager.organizationAdmin",
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700209 # "members": [
210 # "user:mike@example.com",
211 # "group:admins@example.com",
212 # "domain:google.com",
Dan O'Mearadd494642020-05-01 07:42:23 -0700213 # "serviceAccount:my-project-id@appspot.gserviceaccount.com"
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700214 # ]
215 # },
216 # {
Dan O'Mearadd494642020-05-01 07:42:23 -0700217 # "role": "roles/resourcemanager.organizationViewer",
218 # "members": ["user:eve@example.com"],
219 # "condition": {
220 # "title": "expirable access",
221 # "description": "Does not grant access after Sep 2020",
222 # "expression": "request.time &lt; timestamp('2020-10-01T00:00:00.000Z')",
223 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700224 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700225 # ],
226 # "etag": "BwWWja0YfJA=",
227 # "version": 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700228 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700229 # YAML example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700230 # bindings:
231 # - members:
232 # - user:mike@example.com
233 # - group:admins@example.com
234 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700235 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
236 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700237 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700238 # - user:eve@example.com
239 # role: roles/resourcemanager.organizationViewer
240 # condition:
241 # title: expirable access
242 # description: Does not grant access after Sep 2020
243 # expression: request.time &lt; timestamp('2020-10-01T00:00:00.000Z')
244 # - etag: BwWWja0YfJA=
245 # - version: 3
246 # For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
247 "bindings": [ # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700248 { # Associates members with a role.
249 "role": "A String", # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
250 "members": [ # Specifies the identities requesting access for a Cloud Platform resource. members can have the following values:
251 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
252 # allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account.
Dan O'Mearadd494642020-05-01 07:42:23 -0700253 # user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700254 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
255 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
Dan O'Mearadd494642020-05-01 07:42:23 -0700256 # 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.
257 # 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.
258 # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700259 # domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
260 "A String",
261 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700262 "condition": { # 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): # The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
263 # title: "Summary size limit"
264 # description: "Determines if a summary is less than 100 chars"
265 # expression: "document.summary.size() &lt; 100"
266 # Example (Equality):
267 # title: "Requestor is owner"
268 # description: "Determines if requestor is the document owner"
269 # expression: "document.owner == request.auth.claims.email"
270 # Example (Logic):
271 # title: "Public documents"
272 # description: "Determine whether the document should be publicly visible"
273 # expression: "document.type != 'private' &amp;&amp; document.type != 'internal'"
274 # Example (Data Manipulation):
275 # title: "Notification string"
276 # description: "Create a notification string with a timestamp."
277 # expression: "'New message received at ' + string(document.create_time)"
278 # 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.
279 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
280 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.
281 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
282 "title": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700283 },
284 },
285 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700286 "etag": "A String", # 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.
287 "version": 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:
288 # Getting a policy that includes a conditional role binding
289 # Adding a conditional role binding to a policy
290 # Changing a conditional role binding in a policy
291 # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700292 }</pre>
293</div>
294
295<div class="method">
296 <code class="details" id="list">list(name, pageToken=None, x__xgafv=None, pageSize=None, filter=None)</code>
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400297 <pre>Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800298
299Args:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400300 name: string, The name of the operation's parent resource. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800301 pageToken: string, The standard list page token.
302 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400303 Allowed values
304 1 - v1 error format
305 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700306 pageSize: integer, The standard list page size.
307 filter: string, The standard list filter.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800308
309Returns:
310 An object of the form:
311
312 { # The response message for Operations.ListOperations.
313 "operations": [ # A list of operations that matches the specified filter in the request.
314 { # This resource represents a long-running operation that is the result of a network API call.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400315 "metadata": { # 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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800316 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800317 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700318 "error": { # 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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800319 "message": "A String", # 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.
320 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700321 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800322 {
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800323 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800324 },
325 ],
326 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700327 "done": 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.
328 "response": { # 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.
329 "a_key": "", # Properties of the object. Contains field @type with type URL.
330 },
331 "name": "A String", # 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}.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800332 },
333 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700334 "nextPageToken": "A String", # The standard List next-page token.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800335 }</pre>
336</div>
337
338<div class="method">
339 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
340 <pre>Retrieves the next page of results.
341
342Args:
343 previous_request: The request for the previous page. (required)
344 previous_response: The response from the request for the previous page. (required)
345
346Returns:
347 A request object that you can call 'execute()' on to request the next
348 page. Returns None if there are no more items in the collection.
349 </pre>
350</div>
351
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700352<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700353 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
354 <pre>Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700355
356Args:
357 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700358 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700359 The object takes the form of:
360
361{ # Request message for SetIamPolicy method.
Dan O'Mearadd494642020-05-01 07:42:23 -0700362 "policy": { # 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.Optionally, a binding can 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.JSON example: # 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 Kim715bd7f2019-06-14 16:50:42 -0700363 # {
364 # "bindings": [
365 # {
Dan O'Mearadd494642020-05-01 07:42:23 -0700366 # "role": "roles/resourcemanager.organizationAdmin",
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700367 # "members": [
368 # "user:mike@example.com",
369 # "group:admins@example.com",
370 # "domain:google.com",
Dan O'Mearadd494642020-05-01 07:42:23 -0700371 # "serviceAccount:my-project-id@appspot.gserviceaccount.com"
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700372 # ]
373 # },
374 # {
Dan O'Mearadd494642020-05-01 07:42:23 -0700375 # "role": "roles/resourcemanager.organizationViewer",
376 # "members": ["user:eve@example.com"],
377 # "condition": {
378 # "title": "expirable access",
379 # "description": "Does not grant access after Sep 2020",
380 # "expression": "request.time &lt; timestamp('2020-10-01T00:00:00.000Z')",
381 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700382 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700383 # ],
384 # "etag": "BwWWja0YfJA=",
385 # "version": 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700386 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700387 # YAML example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700388 # bindings:
389 # - members:
390 # - user:mike@example.com
391 # - group:admins@example.com
392 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700393 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
394 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700395 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700396 # - user:eve@example.com
397 # role: roles/resourcemanager.organizationViewer
398 # condition:
399 # title: expirable access
400 # description: Does not grant access after Sep 2020
401 # expression: request.time &lt; timestamp('2020-10-01T00:00:00.000Z')
402 # - etag: BwWWja0YfJA=
403 # - version: 3
404 # For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
405 "bindings": [ # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700406 { # Associates members with a role.
407 "role": "A String", # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
408 "members": [ # Specifies the identities requesting access for a Cloud Platform resource. members can have the following values:
409 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
410 # allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account.
Dan O'Mearadd494642020-05-01 07:42:23 -0700411 # user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700412 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
413 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
Dan O'Mearadd494642020-05-01 07:42:23 -0700414 # 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.
415 # 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.
416 # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700417 # domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
418 "A String",
419 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700420 "condition": { # 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): # The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
421 # title: "Summary size limit"
422 # description: "Determines if a summary is less than 100 chars"
423 # expression: "document.summary.size() &lt; 100"
424 # Example (Equality):
425 # title: "Requestor is owner"
426 # description: "Determines if requestor is the document owner"
427 # expression: "document.owner == request.auth.claims.email"
428 # Example (Logic):
429 # title: "Public documents"
430 # description: "Determine whether the document should be publicly visible"
431 # expression: "document.type != 'private' &amp;&amp; document.type != 'internal'"
432 # Example (Data Manipulation):
433 # title: "Notification string"
434 # description: "Create a notification string with a timestamp."
435 # expression: "'New message received at ' + string(document.create_time)"
436 # 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.
437 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
438 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.
439 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
440 "title": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700441 },
442 },
443 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700444 "etag": "A String", # 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.
445 "version": 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:
446 # Getting a policy that includes a conditional role binding
447 # Adding a conditional role binding to a policy
448 # Changing a conditional role binding in a policy
449 # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700450 },
451 }
452
453 x__xgafv: string, V1 error format.
454 Allowed values
455 1 - v1 error format
456 2 - v2 error format
457
458Returns:
459 An object of the form:
460
Dan O'Mearadd494642020-05-01 07:42:23 -0700461 { # 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.Optionally, a binding can 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.JSON example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700462 # {
463 # "bindings": [
464 # {
Dan O'Mearadd494642020-05-01 07:42:23 -0700465 # "role": "roles/resourcemanager.organizationAdmin",
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700466 # "members": [
467 # "user:mike@example.com",
468 # "group:admins@example.com",
469 # "domain:google.com",
Dan O'Mearadd494642020-05-01 07:42:23 -0700470 # "serviceAccount:my-project-id@appspot.gserviceaccount.com"
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700471 # ]
472 # },
473 # {
Dan O'Mearadd494642020-05-01 07:42:23 -0700474 # "role": "roles/resourcemanager.organizationViewer",
475 # "members": ["user:eve@example.com"],
476 # "condition": {
477 # "title": "expirable access",
478 # "description": "Does not grant access after Sep 2020",
479 # "expression": "request.time &lt; timestamp('2020-10-01T00:00:00.000Z')",
480 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700481 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700482 # ],
483 # "etag": "BwWWja0YfJA=",
484 # "version": 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700485 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700486 # YAML example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700487 # bindings:
488 # - members:
489 # - user:mike@example.com
490 # - group:admins@example.com
491 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700492 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
493 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700494 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700495 # - user:eve@example.com
496 # role: roles/resourcemanager.organizationViewer
497 # condition:
498 # title: expirable access
499 # description: Does not grant access after Sep 2020
500 # expression: request.time &lt; timestamp('2020-10-01T00:00:00.000Z')
501 # - etag: BwWWja0YfJA=
502 # - version: 3
503 # For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
504 "bindings": [ # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700505 { # Associates members with a role.
506 "role": "A String", # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
507 "members": [ # Specifies the identities requesting access for a Cloud Platform resource. members can have the following values:
508 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
509 # allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account.
Dan O'Mearadd494642020-05-01 07:42:23 -0700510 # user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700511 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
512 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
Dan O'Mearadd494642020-05-01 07:42:23 -0700513 # 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.
514 # 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.
515 # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700516 # domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
517 "A String",
518 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700519 "condition": { # 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): # The condition that is associated with this binding. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
520 # title: "Summary size limit"
521 # description: "Determines if a summary is less than 100 chars"
522 # expression: "document.summary.size() &lt; 100"
523 # Example (Equality):
524 # title: "Requestor is owner"
525 # description: "Determines if requestor is the document owner"
526 # expression: "document.owner == request.auth.claims.email"
527 # Example (Logic):
528 # title: "Public documents"
529 # description: "Determine whether the document should be publicly visible"
530 # expression: "document.type != 'private' &amp;&amp; document.type != 'internal'"
531 # Example (Data Manipulation):
532 # title: "Notification string"
533 # description: "Create a notification string with a timestamp."
534 # expression: "'New message received at ' + string(document.create_time)"
535 # 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.
536 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
537 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.
538 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
539 "title": "A String", # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700540 },
541 },
542 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700543 "etag": "A String", # 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.
544 "version": 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:
545 # Getting a policy that includes a conditional role binding
546 # Adding a conditional role binding to a policy
547 # Changing a conditional role binding in a policy
548 # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700549 }</pre>
550</div>
551
552<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700553 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700554 <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 "fail open" without warning.
555
556Args:
557 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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700558 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700559 The object takes the form of:
560
561{ # Request message for TestIamPermissions method.
562 "permissions": [ # The set of permissions to check for the resource. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see IAM Overview (https://cloud.google.com/iam/docs/overview#permissions).
563 "A String",
564 ],
565 }
566
567 x__xgafv: string, V1 error format.
568 Allowed values
569 1 - v1 error format
570 2 - v2 error format
571
572Returns:
573 An object of the form:
574
575 { # Response message for TestIamPermissions method.
576 "permissions": [ # A subset of TestPermissionsRequest.permissions that the caller is allowed.
577 "A String",
578 ],
579 }</pre>
580</div>
581
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800582</body></html>