blob: 82a983ee15c9a3c10e008d12a90cc6b234ca767d [file] [log] [blame]
Sai Cheemalapatidf613972016-10-21 13:59:49 -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="compute_beta.html">Compute Engine API</a> . <a href="compute_beta.licenses.html">licenses</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070078 <code><a href="#delete">delete(project, license, requestId=None)</a></code></p>
79<p class="firstline">Deletes the specified license.</p>
80<p class="toc_element">
Sai Cheemalapatidf613972016-10-21 13:59:49 -070081 <code><a href="#get">get(project, license)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Returns the specified License resource.</p>
83<p class="toc_element">
84 <code><a href="#getIamPolicy">getIamPolicy(project, resource)</a></code></p>
85<p class="firstline">Gets the access control policy for a resource. May be empty if no such policy or resource exists.</p>
86<p class="toc_element">
87 <code><a href="#insert">insert(project, body, requestId=None)</a></code></p>
88<p class="firstline">Create a License resource in the specified project.</p>
89<p class="toc_element">
90 <code><a href="#list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
91<p class="firstline">Retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud.</p>
92<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>
95<p class="toc_element">
96 <code><a href="#setIamPolicy">setIamPolicy(project, resource, body)</a></code></p>
97<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.</p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070098<h3>Method Details</h3>
99<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100 <code class="details" id="delete">delete(project, license, requestId=None)</code>
101 <pre>Deletes the specified license.
102
103Args:
104 project: string, Project ID for this request. (required)
105 license: string, Name of the license resource to delete. (required)
106 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
107
108For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
109
110The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
111
112Returns:
113 An object of the form:
114
115 { # Represents an Operation resource.
116 #
117 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
118 #
119 # Operations can be global, regional or zonal.
120 # - For global operations, use the globalOperations resource.
121 # - For regional operations, use the regionOperations resource.
122 # - For zonal operations, use the zonalOperations resource.
123 #
124 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
125 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
126 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
127 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
128 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
129 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
130 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
131 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
132 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
133 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
134 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
135 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
136 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
137 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
138 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
139 {
140 "message": "A String", # [Output Only] A human-readable description of the warning code.
141 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
142 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
143 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
144 {
145 "value": "A String", # [Output Only] A warning data value corresponding to the key.
146 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
147 },
148 ],
149 },
150 ],
151 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
152 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
153 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
154 "name": "A String", # [Output Only] Name of the resource.
155 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
156 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
157 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
158 {
159 "message": "A String", # [Output Only] An optional, human-readable error message.
160 "code": "A String", # [Output Only] The error type identifier for this error.
161 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
162 },
163 ],
164 },
165 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
166 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
167 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
168 }</pre>
169</div>
170
171<div class="method">
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700172 <code class="details" id="get">get(project, license)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700173 <pre>Returns the specified License resource.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700174
175Args:
176 project: string, Project ID for this request. (required)
177 license: string, Name of the License resource to return. (required)
178
179Returns:
180 An object of the form:
181
182 { # A license resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700183 "kind": "compute#license", # [Output Only] Type of resource. Always compute#license for licenses.
184 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
185 "chargesUseFee": True or False, # [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.
186 "licenseCode": "A String", # [Output Only] The unique code used to attach this license to images, snapshots, and disks.
187 "transferable": True or False, # If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
188 "resourceRequirements": {
189 "minMemoryMb": 42, # Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
190 "minGuestCpuCount": 42, # Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
191 },
192 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
193 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
194 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
195 "name": "A String", # Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
196 }</pre>
197</div>
198
199<div class="method">
200 <code class="details" id="getIamPolicy">getIamPolicy(project, resource)</code>
201 <pre>Gets the access control policy for a resource. May be empty if no such policy or resource exists.
202
203Args:
204 project: string, Project ID for this request. (required)
205 resource: string, Name or id of the resource for this request. (required)
206
207Returns:
208 An object of the form:
209
210 { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.
211 #
212 #
213 #
214 # A `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.
215 #
216 # **JSON Example**
217 #
218 # { "bindings": [ { "role": "roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { "role": "roles/viewer", "members": ["user:sean@example.com"] } ] }
219 #
220 # **YAML Example**
221 #
222 # bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com role: roles/owner - members: - user:sean@example.com role: roles/viewer
223 #
224 #
225 #
226 # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).
227 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
228 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.
229 #
230 # If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.
231 #
232 # Example Policy with multiple AuditConfigs:
233 #
234 # { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } ] } ] }
235 #
236 # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.com from DATA_WRITE logging.
237 "exemptedMembers": [
238 "A String",
239 ],
240 "auditLogConfigs": [ # The configuration for logging of each type of permission.
241 { # Provides the configuration for logging a type of permissions. Example:
242 #
243 # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
244 #
245 # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail.com from DATA_READ logging.
246 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
247 "A String",
248 ],
249 "logType": "A String", # The log type that this config enables.
250 },
251 ],
252 "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
253 },
254 ],
255 "rules": [ # If more than one rule is specified, the rules are applied in the following manner: - All matching LOG rules are always applied. - If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if one or more matching rule requires logging. - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if one or more matching rule requires logging. - Otherwise, if no rule applies, permission is denied.
256 { # A rule to be applied in a Policy.
257 "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
258 { # Specifies what kind of log the caller must write
259 "counter": { # Increment a streamz counter with the specified metric and field names. # Counter options.
260 #
261 # Metric names should start with a '/', generally be lowercase-only, and end in "_count". Field names should not contain an initial slash. The actual exported metric names will have "/iam/policy" prepended.
262 #
263 # Field names correspond to IAM request parameters and field values are their respective values.
264 #
265 # Supported field names: - "authority", which is "[token]" if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - "iam_principal", a representation of IAMContext.principal even if a token or authority selector is present; or - "" (empty string), resulting in a counter with no fields.
266 #
267 # Examples: counter { metric: "/debug_access_count" field: "iam_principal" } ==> increment counter /iam/policy/backend_debug_access_count {iam_principal=[value of IAMContext.principal]}
268 #
269 # At this time we do not support multiple field names (though this may be supported in the future).
270 "field": "A String", # The field value to attribute.
271 "metric": "A String", # The metric to update.
272 },
273 "dataAccess": { # Write a Data Access (Gin) log # Data access options.
274 "logMode": "A String", # Whether Gin logging should happen in a fail-closed manner at the caller. This is relevant only in the LocalIAM implementation, for now.
275 },
276 "cloudAudit": { # Write a Cloud Audit log # Cloud audit options.
277 "logName": "A String", # The log_name to populate in the Cloud Audit Record.
278 "authorizationLoggingOptions": { # Authorization-related information used by Cloud Audit Logging. # Information used by the Cloud Audit Logging pipeline.
279 "permissionType": "A String", # The type of the permission that was checked.
280 },
281 },
282 },
283 ],
284 "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
285 "A String",
286 ],
287 "ins": [ # If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
288 "A String",
289 ],
290 "action": "A String", # Required
291 "permissions": [ # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
292 "A String",
293 ],
294 "conditions": [ # Additional restrictions that must be met. All conditions must pass for the rule to match.
295 { # A condition to be met.
296 "iam": "A String", # Trusted attributes supplied by the IAM system.
297 "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
298 "values": [ # The objects of the condition.
299 "A String",
300 ],
301 "svc": "A String", # Trusted attributes discharged by the service.
302 "op": "A String", # An operator to apply the subject with.
303 },
304 ],
305 "description": "A String", # Human-readable description of the rule.
306 },
307 ],
308 "version": 42, # Deprecated.
309 "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.
310 #
311 # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
312 "bindings": [ # Associates a list of `members` to a `role`. `bindings` with no members will result in an error.
313 { # Associates `members` with a `role`.
314 "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
315 "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
316 #
317 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
318 #
319 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
320 #
321 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .
322 #
323 #
324 #
325 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
326 #
327 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
328 #
329 #
330 #
331 # * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
332 "A String",
333 ],
334 "condition": { # Represents an expression text. Example: # 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.
335 #
336 # title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
337 "title": "A String", # An 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.
338 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.
339 #
340 # The application context of the containing message determines which well-known feature set of CEL is supported.
341 "description": "A String", # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
342 "location": "A String", # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
343 },
344 },
345 ],
346 "iamOwned": True or False,
347 }</pre>
348</div>
349
350<div class="method">
351 <code class="details" id="insert">insert(project, body, requestId=None)</code>
352 <pre>Create a License resource in the specified project.
353
354Args:
355 project: string, Project ID for this request. (required)
356 body: object, The request body. (required)
357 The object takes the form of:
358
359{ # A license resource.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700360 "kind": "compute#license", # [Output Only] Type of resource. Always compute#license for licenses.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700361 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
362 "chargesUseFee": True or False, # [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.
363 "licenseCode": "A String", # [Output Only] The unique code used to attach this license to images, snapshots, and disks.
364 "transferable": True or False, # If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
365 "resourceRequirements": {
366 "minMemoryMb": 42, # Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
367 "minGuestCpuCount": 42, # Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
368 },
369 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
370 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700371 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700372 "name": "A String", # Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
373 }
374
375 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
376
377For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
378
379The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
380
381Returns:
382 An object of the form:
383
384 { # Represents an Operation resource.
385 #
386 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
387 #
388 # Operations can be global, regional or zonal.
389 # - For global operations, use the globalOperations resource.
390 # - For regional operations, use the regionOperations resource.
391 # - For zonal operations, use the zonalOperations resource.
392 #
393 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
394 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
395 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
396 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
397 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
398 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
399 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
400 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
401 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
402 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses.
403 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
404 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
405 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
406 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
407 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
408 {
409 "message": "A String", # [Output Only] A human-readable description of the warning code.
410 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
411 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
412 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
413 {
414 "value": "A String", # [Output Only] A warning data value corresponding to the key.
415 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
416 },
417 ],
418 },
419 ],
420 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
421 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
422 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
423 "name": "A String", # [Output Only] Name of the resource.
424 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
425 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
426 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
427 {
428 "message": "A String", # [Output Only] An optional, human-readable error message.
429 "code": "A String", # [Output Only] The error type identifier for this error.
430 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
431 },
432 ],
433 },
434 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
435 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
436 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
437 }</pre>
438</div>
439
440<div class="method">
441 <code class="details" id="list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
442 <pre>Retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud.
443
444Args:
445 project: string, Project ID for this request. (required)
446 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
447
448You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
449
450Currently, only sorting by name or creationTimestamp desc is supported.
451 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
452 pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results.
453 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.
454
455For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.
456
457You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
458
459To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true).
460
461Returns:
462 An object of the form:
463
464 {
465 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
466 "items": [ # A list of License resources.
467 { # A license resource.
468 "kind": "compute#license", # [Output Only] Type of resource. Always compute#license for licenses.
469 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
470 "chargesUseFee": True or False, # [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.
471 "licenseCode": "A String", # [Output Only] The unique code used to attach this license to images, snapshots, and disks.
472 "transferable": True or False, # If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
473 "resourceRequirements": {
474 "minMemoryMb": 42, # Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
475 "minGuestCpuCount": 42, # Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
476 },
477 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
478 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
479 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
480 "name": "A String", # Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
481 },
482 ],
483 "warning": { # [Output Only] Informational warning message.
484 "message": "A String", # [Output Only] A human-readable description of the warning code.
485 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
486 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
487 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
488 {
489 "value": "A String", # [Output Only] A warning data value corresponding to the key.
490 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
491 },
492 ],
493 },
494 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
495 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
496 }</pre>
497</div>
498
499<div class="method">
500 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
501 <pre>Retrieves the next page of results.
502
503Args:
504 previous_request: The request for the previous page. (required)
505 previous_response: The response from the request for the previous page. (required)
506
507Returns:
508 A request object that you can call 'execute()' on to request the next
509 page. Returns None if there are no more items in the collection.
510 </pre>
511</div>
512
513<div class="method">
514 <code class="details" id="setIamPolicy">setIamPolicy(project, resource, body)</code>
515 <pre>Sets the access control policy on the specified resource. Replaces any existing policy.
516
517Args:
518 project: string, Project ID for this request. (required)
519 resource: string, Name or id of the resource for this request. (required)
520 body: object, The request body. (required)
521 The object takes the form of:
522
523{
524 "policy": { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources. # 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 in general a valid policy but certain services (like Projects) might reject them.
525 #
526 #
527 #
528 # A `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.
529 #
530 # **JSON Example**
531 #
532 # { "bindings": [ { "role": "roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { "role": "roles/viewer", "members": ["user:sean@example.com"] } ] }
533 #
534 # **YAML Example**
535 #
536 # bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com role: roles/owner - members: - user:sean@example.com role: roles/viewer
537 #
538 #
539 #
540 # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).
541 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
542 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.
543 #
544 # If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.
545 #
546 # Example Policy with multiple AuditConfigs:
547 #
548 # { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } ] } ] }
549 #
550 # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.com from DATA_WRITE logging.
551 "exemptedMembers": [
552 "A String",
553 ],
554 "auditLogConfigs": [ # The configuration for logging of each type of permission.
555 { # Provides the configuration for logging a type of permissions. Example:
556 #
557 # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
558 #
559 # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail.com from DATA_READ logging.
560 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
561 "A String",
562 ],
563 "logType": "A String", # The log type that this config enables.
564 },
565 ],
566 "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
567 },
568 ],
569 "rules": [ # If more than one rule is specified, the rules are applied in the following manner: - All matching LOG rules are always applied. - If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if one or more matching rule requires logging. - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if one or more matching rule requires logging. - Otherwise, if no rule applies, permission is denied.
570 { # A rule to be applied in a Policy.
571 "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
572 { # Specifies what kind of log the caller must write
573 "counter": { # Increment a streamz counter with the specified metric and field names. # Counter options.
574 #
575 # Metric names should start with a '/', generally be lowercase-only, and end in "_count". Field names should not contain an initial slash. The actual exported metric names will have "/iam/policy" prepended.
576 #
577 # Field names correspond to IAM request parameters and field values are their respective values.
578 #
579 # Supported field names: - "authority", which is "[token]" if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - "iam_principal", a representation of IAMContext.principal even if a token or authority selector is present; or - "" (empty string), resulting in a counter with no fields.
580 #
581 # Examples: counter { metric: "/debug_access_count" field: "iam_principal" } ==> increment counter /iam/policy/backend_debug_access_count {iam_principal=[value of IAMContext.principal]}
582 #
583 # At this time we do not support multiple field names (though this may be supported in the future).
584 "field": "A String", # The field value to attribute.
585 "metric": "A String", # The metric to update.
586 },
587 "dataAccess": { # Write a Data Access (Gin) log # Data access options.
588 "logMode": "A String", # Whether Gin logging should happen in a fail-closed manner at the caller. This is relevant only in the LocalIAM implementation, for now.
589 },
590 "cloudAudit": { # Write a Cloud Audit log # Cloud audit options.
591 "logName": "A String", # The log_name to populate in the Cloud Audit Record.
592 "authorizationLoggingOptions": { # Authorization-related information used by Cloud Audit Logging. # Information used by the Cloud Audit Logging pipeline.
593 "permissionType": "A String", # The type of the permission that was checked.
594 },
595 },
596 },
597 ],
598 "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
599 "A String",
600 ],
601 "ins": [ # If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
602 "A String",
603 ],
604 "action": "A String", # Required
605 "permissions": [ # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
606 "A String",
607 ],
608 "conditions": [ # Additional restrictions that must be met. All conditions must pass for the rule to match.
609 { # A condition to be met.
610 "iam": "A String", # Trusted attributes supplied by the IAM system.
611 "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
612 "values": [ # The objects of the condition.
613 "A String",
614 ],
615 "svc": "A String", # Trusted attributes discharged by the service.
616 "op": "A String", # An operator to apply the subject with.
617 },
618 ],
619 "description": "A String", # Human-readable description of the rule.
620 },
621 ],
622 "version": 42, # Deprecated.
623 "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.
624 #
625 # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
626 "bindings": [ # Associates a list of `members` to a `role`. `bindings` with no members will result in an error.
627 { # Associates `members` with a `role`.
628 "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
629 "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
630 #
631 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
632 #
633 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
634 #
635 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .
636 #
637 #
638 #
639 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
640 #
641 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
642 #
643 #
644 #
645 # * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
646 "A String",
647 ],
648 "condition": { # Represents an expression text. Example: # 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.
649 #
650 # title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
651 "title": "A String", # An 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.
652 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.
653 #
654 # The application context of the containing message determines which well-known feature set of CEL is supported.
655 "description": "A String", # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
656 "location": "A String", # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
657 },
658 },
659 ],
660 "iamOwned": True or False,
661 },
662 "bindings": [ # Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
663 { # Associates `members` with a `role`.
664 "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
665 "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
666 #
667 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
668 #
669 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
670 #
671 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .
672 #
673 #
674 #
675 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
676 #
677 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
678 #
679 #
680 #
681 # * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
682 "A String",
683 ],
684 "condition": { # Represents an expression text. Example: # 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.
685 #
686 # title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
687 "title": "A String", # An 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.
688 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.
689 #
690 # The application context of the containing message determines which well-known feature set of CEL is supported.
691 "description": "A String", # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
692 "location": "A String", # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
693 },
694 },
695 ],
696 "etag": "A String", # Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.
697 }
698
699
700Returns:
701 An object of the form:
702
703 { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.
704 #
705 #
706 #
707 # A `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.
708 #
709 # **JSON Example**
710 #
711 # { "bindings": [ { "role": "roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { "role": "roles/viewer", "members": ["user:sean@example.com"] } ] }
712 #
713 # **YAML Example**
714 #
715 # bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com role: roles/owner - members: - user:sean@example.com role: roles/viewer
716 #
717 #
718 #
719 # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).
720 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
721 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.
722 #
723 # If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.
724 #
725 # Example Policy with multiple AuditConfigs:
726 #
727 # { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } ] } ] }
728 #
729 # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.com from DATA_WRITE logging.
730 "exemptedMembers": [
731 "A String",
732 ],
733 "auditLogConfigs": [ # The configuration for logging of each type of permission.
734 { # Provides the configuration for logging a type of permissions. Example:
735 #
736 # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
737 #
738 # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail.com from DATA_READ logging.
739 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
740 "A String",
741 ],
742 "logType": "A String", # The log type that this config enables.
743 },
744 ],
745 "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
746 },
747 ],
748 "rules": [ # If more than one rule is specified, the rules are applied in the following manner: - All matching LOG rules are always applied. - If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if one or more matching rule requires logging. - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if one or more matching rule requires logging. - Otherwise, if no rule applies, permission is denied.
749 { # A rule to be applied in a Policy.
750 "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
751 { # Specifies what kind of log the caller must write
752 "counter": { # Increment a streamz counter with the specified metric and field names. # Counter options.
753 #
754 # Metric names should start with a '/', generally be lowercase-only, and end in "_count". Field names should not contain an initial slash. The actual exported metric names will have "/iam/policy" prepended.
755 #
756 # Field names correspond to IAM request parameters and field values are their respective values.
757 #
758 # Supported field names: - "authority", which is "[token]" if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - "iam_principal", a representation of IAMContext.principal even if a token or authority selector is present; or - "" (empty string), resulting in a counter with no fields.
759 #
760 # Examples: counter { metric: "/debug_access_count" field: "iam_principal" } ==> increment counter /iam/policy/backend_debug_access_count {iam_principal=[value of IAMContext.principal]}
761 #
762 # At this time we do not support multiple field names (though this may be supported in the future).
763 "field": "A String", # The field value to attribute.
764 "metric": "A String", # The metric to update.
765 },
766 "dataAccess": { # Write a Data Access (Gin) log # Data access options.
767 "logMode": "A String", # Whether Gin logging should happen in a fail-closed manner at the caller. This is relevant only in the LocalIAM implementation, for now.
768 },
769 "cloudAudit": { # Write a Cloud Audit log # Cloud audit options.
770 "logName": "A String", # The log_name to populate in the Cloud Audit Record.
771 "authorizationLoggingOptions": { # Authorization-related information used by Cloud Audit Logging. # Information used by the Cloud Audit Logging pipeline.
772 "permissionType": "A String", # The type of the permission that was checked.
773 },
774 },
775 },
776 ],
777 "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
778 "A String",
779 ],
780 "ins": [ # If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
781 "A String",
782 ],
783 "action": "A String", # Required
784 "permissions": [ # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
785 "A String",
786 ],
787 "conditions": [ # Additional restrictions that must be met. All conditions must pass for the rule to match.
788 { # A condition to be met.
789 "iam": "A String", # Trusted attributes supplied by the IAM system.
790 "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
791 "values": [ # The objects of the condition.
792 "A String",
793 ],
794 "svc": "A String", # Trusted attributes discharged by the service.
795 "op": "A String", # An operator to apply the subject with.
796 },
797 ],
798 "description": "A String", # Human-readable description of the rule.
799 },
800 ],
801 "version": 42, # Deprecated.
802 "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.
803 #
804 # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
805 "bindings": [ # Associates a list of `members` to a `role`. `bindings` with no members will result in an error.
806 { # Associates `members` with a `role`.
807 "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
808 "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
809 #
810 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
811 #
812 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
813 #
814 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .
815 #
816 #
817 #
818 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
819 #
820 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
821 #
822 #
823 #
824 # * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
825 "A String",
826 ],
827 "condition": { # Represents an expression text. Example: # 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.
828 #
829 # title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
830 "title": "A String", # An 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.
831 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.
832 #
833 # The application context of the containing message determines which well-known feature set of CEL is supported.
834 "description": "A String", # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
835 "location": "A String", # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
836 },
837 },
838 ],
839 "iamOwned": True or False,
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700840 }</pre>
841</div>
842
843</body></html>