1 <html><body> 2 <style> 3 4 body, 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 15 body { 16 font-size: 13px; 17 padding: 1em; 18 } 19 20 h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23 } 24 25 h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28 } 29 30 h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34 } 35 36 pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39 } 40 41 pre { 42 margin-top: 0.5em; 43 } 44 45 h1, h2, h3, p { 46 font-family: Arial, sans serif; 47 } 48 49 h1, 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_alpha.html">Compute Engine API</a> . <a href="compute_alpha.hosts.html">hosts</a></h1> 76 <h2>Instance Methods</h2> 77 <p class="toc_element"> 78 <code><a href="#aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 79 <p class="firstline">Retrieves an aggregated list of hosts.</p> 80 <p class="toc_element"> 81 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p> 82 <p class="firstline">Retrieves the next page of results.</p> 83 <p class="toc_element"> 84 <code><a href="#delete">delete(project, zone, host, requestId=None)</a></code></p> 85 <p class="firstline">Deletes the specified Host resource.</p> 86 <p class="toc_element"> 87 <code><a href="#get">get(project, zone, host)</a></code></p> 88 <p class="firstline">Returns the specified host. Get a list of available hosts by making a list() request.</p> 89 <p class="toc_element"> 90 <code><a href="#getIamPolicy">getIamPolicy(project, zone, resource)</a></code></p> 91 <p class="firstline">Gets the access control policy for a resource. May be empty if no such policy or resource exists.</p> 92 <p class="toc_element"> 93 <code><a href="#insert">insert(project, zone, body, requestId=None)</a></code></p> 94 <p class="firstline">Creates a host resource in the specified project using the data included in the request.</p> 95 <p class="toc_element"> 96 <code><a href="#list">list(project, zone, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 97 <p class="firstline">Retrieves a list of hosts available to the specified project.</p> 98 <p class="toc_element"> 99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 100 <p class="firstline">Retrieves the next page of results.</p> 101 <p class="toc_element"> 102 <code><a href="#setIamPolicy">setIamPolicy(project, zone, resource, body)</a></code></p> 103 <p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.</p> 104 <p class="toc_element"> 105 <code><a href="#testIamPermissions">testIamPermissions(project, zone, resource, body)</a></code></p> 106 <p class="firstline">Returns permissions that a caller has on the specified resource.</p> 107 <h3>Method Details</h3> 108 <div class="method"> 109 <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 110 <pre>Retrieves an aggregated list of hosts. 111 112 Args: 113 project: string, Project ID for this request. (required) 114 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 115 116 You 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. 117 118 Currently, only sorting by name or creationTimestamp desc is supported. 119 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) 120 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. 121 filter: string, Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string. 122 123 The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. 124 125 For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance. 126 127 You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. 128 129 To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 130 131 Returns: 132 An object of the form: 133 134 { 135 "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. 136 "items": { # [Output Only] A map of scoped host lists. 137 "a_key": { # [Output Only] Name of the scope containing this set of hosts. 138 "warning": { # [Output Only] An informational warning that appears when the host list is empty. 139 "message": "A String", # [Output Only] A human-readable description of the warning code. 140 "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. 141 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 142 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 143 { 144 "value": "A String", # [Output Only] A warning data value corresponding to the key. 145 "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). 146 }, 147 ], 148 }, 149 "hosts": [ # [Output Only] List of hosts contained in this scope. 150 { 151 "status": "A String", # [Output Only] The status of the host. One of the following values: CREATING, READY, REPAIR, and DELETING. 152 "kind": "compute#host", # [Output Only] The type of the resource. Always compute#host for host. 153 "description": "A String", # [Output Only] An optional textual description of the resource. 154 "zone": "A String", # [Output Only] The name of the zone where the host resides, such as us-central1-a. 155 "labelFingerprint": "A String", # A fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata. 156 # 157 # To see the latest fingerprint, make get() request to the host. 158 "labels": { # Labels to apply to this host. 159 "a_key": "A String", 160 }, 161 "hostType": "A String", # Full or partial URL of the host type resource to use for this host, in the format: zones/zone/hostTypes/host-type. This is provided by the client when the host is created. For example, the following is a valid partial url to a predefined host type: 162 # 163 # zones/us-central1-b/hostTypes/n1-host-64-416 164 "instances": [ # A list of resource URLs to the virtual machine instances in this host. They must live in zones contained in the same region as this host. 165 "A String", 166 ], 167 "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status. 168 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 169 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 170 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 171 "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 172 }, 173 ], 174 }, 175 }, 176 "kind": "compute#hostAggregatedList", # [Output Only] Type of resource. Always compute#hostAggregatedList for aggregated lists of hosts. 177 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 178 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 179 }</pre> 180 </div> 181 182 <div class="method"> 183 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code> 184 <pre>Retrieves the next page of results. 185 186 Args: 187 previous_request: The request for the previous page. (required) 188 previous_response: The response from the request for the previous page. (required) 189 190 Returns: 191 A request object that you can call 'execute()' on to request the next 192 page. Returns None if there are no more items in the collection. 193 </pre> 194 </div> 195 196 <div class="method"> 197 <code class="details" id="delete">delete(project, zone, host, requestId=None)</code> 198 <pre>Deletes the specified Host resource. 199 200 Args: 201 project: string, Project ID for this request. (required) 202 zone: string, The name of the zone for this request. (required) 203 host: string, Name of the Host resource to delete. (required) 204 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. 205 206 Returns: 207 An object of the form: 208 209 { # An Operation resource, used to manage asynchronous API requests. 210 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 211 "clientOperationId": "A String", # [Output Only] Reserved for future use. 212 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 213 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 214 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 215 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 216 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 217 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 218 "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. 219 "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. 220 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 221 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 222 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 223 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 224 { 225 "message": "A String", # [Output Only] A human-readable description of the warning code. 226 "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. 227 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 228 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 229 { 230 "value": "A String", # [Output Only] A warning data value corresponding to the key. 231 "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). 232 }, 233 ], 234 }, 235 ], 236 "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com. 237 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 238 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 239 "name": "A String", # [Output Only] Name of the resource. 240 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 241 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 242 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 243 { 244 "message": "A String", # [Output Only] An optional, human-readable error message. 245 "code": "A String", # [Output Only] The error type identifier for this error. 246 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 247 }, 248 ], 249 }, 250 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 251 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 252 "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. 253 }</pre> 254 </div> 255 256 <div class="method"> 257 <code class="details" id="get">get(project, zone, host)</code> 258 <pre>Returns the specified host. Get a list of available hosts by making a list() request. 259 260 Args: 261 project: string, Project ID for this request. (required) 262 zone: string, The name of the zone for this request. (required) 263 host: string, Name of the host to return. (required) 264 265 Returns: 266 An object of the form: 267 268 { 269 "status": "A String", # [Output Only] The status of the host. One of the following values: CREATING, READY, REPAIR, and DELETING. 270 "kind": "compute#host", # [Output Only] The type of the resource. Always compute#host for host. 271 "description": "A String", # [Output Only] An optional textual description of the resource. 272 "zone": "A String", # [Output Only] The name of the zone where the host resides, such as us-central1-a. 273 "labelFingerprint": "A String", # A fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata. 274 # 275 # To see the latest fingerprint, make get() request to the host. 276 "labels": { # Labels to apply to this host. 277 "a_key": "A String", 278 }, 279 "hostType": "A String", # Full or partial URL of the host type resource to use for this host, in the format: zones/zone/hostTypes/host-type. This is provided by the client when the host is created. For example, the following is a valid partial url to a predefined host type: 280 # 281 # zones/us-central1-b/hostTypes/n1-host-64-416 282 "instances": [ # A list of resource URLs to the virtual machine instances in this host. They must live in zones contained in the same region as this host. 283 "A String", 284 ], 285 "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status. 286 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 287 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 288 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 289 "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 290 }</pre> 291 </div> 292 293 <div class="method"> 294 <code class="details" id="getIamPolicy">getIamPolicy(project, zone, resource)</code> 295 <pre>Gets the access control policy for a resource. May be empty if no such policy or resource exists. 296 297 Args: 298 project: string, Project ID for this request. (required) 299 zone: string, The name of the zone for this request. (required) 300 resource: string, Name of the resource for this request. (required) 301 302 Returns: 303 An object of the form: 304 305 { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources. 306 # 307 # 308 # 309 # 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. 310 # 311 # **Example** 312 # 313 # { "bindings": [ { "role": "roles/owner", "members": [ "user:mike (a] example.com", "group:admins (a] example.com", "domain:google.com", "serviceAccount:my-other-app (a] appspot.gserviceaccount.com", ] }, { "role": "roles/viewer", "members": ["user:sean (a] example.com"] } ] } 314 # 315 # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam). 316 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. 317 { # 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. 318 # 319 # 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 AuditConfig are exempted. 320 # 321 # Example Policy with multiple AuditConfigs: 322 # 323 # { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo (a] 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 (a] gmail.com" ] } ] } ] } 324 # 325 # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo (a] gmail.com from DATA_READ logging, and bar (a] gmail.com from DATA_WRITE logging. 326 "exemptedMembers": [ 327 "A String", 328 ], 329 "auditLogConfigs": [ # The configuration for logging of each type of permission. 330 { # Provides the configuration for logging a type of permissions. Example: 331 # 332 # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo (a] gmail.com" ] }, { "log_type": "DATA_WRITE", } ] } 333 # 334 # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo (a] gmail.com from DATA_READ logging. 335 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][]. 336 "A String", 337 ], 338 "logType": "A String", # The log type that this config enables. 339 }, 340 ], 341 "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. 342 }, 343 ], 344 "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. 345 { # A rule to be applied in a Policy. 346 "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action. 347 { # Specifies what kind of log the caller must write 348 "counter": { # Options for counters # Counter options. 349 "field": "A String", # The field value to attribute. 350 "metric": "A String", # The metric to update. 351 }, 352 "cloudAudit": { # Write a Cloud Audit log # Cloud audit options. 353 "logName": "A String", # The log_name to populate in the Cloud Audit Record. 354 }, 355 }, 356 ], 357 "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. 358 "A String", 359 ], 360 "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. 361 "A String", 362 ], 363 "action": "A String", # Required 364 "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. 365 "A String", 366 ], 367 "conditions": [ # Additional restrictions that must be met 368 { # A condition to be met. 369 "iam": "A String", # Trusted attributes supplied by the IAM system. 370 "svc": "A String", # Trusted attributes discharged by the service. 371 "value": "A String", # DEPRECATED. Use 'values' instead. 372 "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control. 373 "values": [ # The objects of the condition. This is mutually exclusive with 'value'. 374 "A String", 375 ], 376 "op": "A String", # An operator to apply the subject with. 377 }, 378 ], 379 "description": "A String", # Human-readable description of the rule. 380 }, 381 ], 382 "version": 42, # Version of the `Policy`. The default version is 0. 383 "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. 384 # 385 # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly. 386 "bindings": [ # Associates a list of `members` to a `role`. Multiple `bindings` must not be specified for the same `role`. `bindings` with no members will result in an error. 387 { # Associates `members` with a `role`. 388 "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 389 "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: 390 # 391 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. 392 # 393 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. 394 # 395 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice (a] gmail.com` or `joe (a] example.com`. 396 # 397 # 398 # 399 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app (a] appspot.gserviceaccount.com`. 400 # 401 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins (a] example.com`. 402 # 403 # 404 # 405 # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`. 406 "A String", 407 ], 408 }, 409 ], 410 "iamOwned": True or False, 411 }</pre> 412 </div> 413 414 <div class="method"> 415 <code class="details" id="insert">insert(project, zone, body, requestId=None)</code> 416 <pre>Creates a host resource in the specified project using the data included in the request. 417 418 Args: 419 project: string, Project ID for this request. (required) 420 zone: string, The name of the zone for this request. (required) 421 body: object, The request body. (required) 422 The object takes the form of: 423 424 { 425 "status": "A String", # [Output Only] The status of the host. One of the following values: CREATING, READY, REPAIR, and DELETING. 426 "kind": "compute#host", # [Output Only] The type of the resource. Always compute#host for host. 427 "description": "A String", # [Output Only] An optional textual description of the resource. 428 "zone": "A String", # [Output Only] The name of the zone where the host resides, such as us-central1-a. 429 "labelFingerprint": "A String", # A fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata. 430 # 431 # To see the latest fingerprint, make get() request to the host. 432 "labels": { # Labels to apply to this host. 433 "a_key": "A String", 434 }, 435 "hostType": "A String", # Full or partial URL of the host type resource to use for this host, in the format: zones/zone/hostTypes/host-type. This is provided by the client when the host is created. For example, the following is a valid partial url to a predefined host type: 436 # 437 # zones/us-central1-b/hostTypes/n1-host-64-416 438 "instances": [ # A list of resource URLs to the virtual machine instances in this host. They must live in zones contained in the same region as this host. 439 "A String", 440 ], 441 "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status. 442 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 443 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 444 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 445 "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 446 } 447 448 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. 449 450 Returns: 451 An object of the form: 452 453 { # An Operation resource, used to manage asynchronous API requests. 454 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 455 "clientOperationId": "A String", # [Output Only] Reserved for future use. 456 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 457 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 458 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 459 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 460 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 461 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 462 "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. 463 "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. 464 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 465 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 466 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 467 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 468 { 469 "message": "A String", # [Output Only] A human-readable description of the warning code. 470 "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. 471 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 472 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 473 { 474 "value": "A String", # [Output Only] A warning data value corresponding to the key. 475 "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). 476 }, 477 ], 478 }, 479 ], 480 "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com. 481 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 482 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 483 "name": "A String", # [Output Only] Name of the resource. 484 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 485 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 486 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 487 { 488 "message": "A String", # [Output Only] An optional, human-readable error message. 489 "code": "A String", # [Output Only] The error type identifier for this error. 490 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 491 }, 492 ], 493 }, 494 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 495 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 496 "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. 497 }</pre> 498 </div> 499 500 <div class="method"> 501 <code class="details" id="list">list(project, zone, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 502 <pre>Retrieves a list of hosts available to the specified project. 503 504 Args: 505 project: string, Project ID for this request. (required) 506 zone: string, The name of the zone for this request. (required) 507 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 508 509 You 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. 510 511 Currently, only sorting by name or creationTimestamp desc is supported. 512 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) 513 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. 514 filter: string, Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string. 515 516 The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. 517 518 For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance. 519 520 You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. 521 522 To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 523 524 Returns: 525 An object of the form: 526 527 { # Contains a list of hosts. 528 "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. 529 "items": [ # [Output Only] A list of Host resources. 530 { 531 "status": "A String", # [Output Only] The status of the host. One of the following values: CREATING, READY, REPAIR, and DELETING. 532 "kind": "compute#host", # [Output Only] The type of the resource. Always compute#host for host. 533 "description": "A String", # [Output Only] An optional textual description of the resource. 534 "zone": "A String", # [Output Only] The name of the zone where the host resides, such as us-central1-a. 535 "labelFingerprint": "A String", # A fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata. 536 # 537 # To see the latest fingerprint, make get() request to the host. 538 "labels": { # Labels to apply to this host. 539 "a_key": "A String", 540 }, 541 "hostType": "A String", # Full or partial URL of the host type resource to use for this host, in the format: zones/zone/hostTypes/host-type. This is provided by the client when the host is created. For example, the following is a valid partial url to a predefined host type: 542 # 543 # zones/us-central1-b/hostTypes/n1-host-64-416 544 "instances": [ # A list of resource URLs to the virtual machine instances in this host. They must live in zones contained in the same region as this host. 545 "A String", 546 ], 547 "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status. 548 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 549 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 550 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 551 "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 552 }, 553 ], 554 "kind": "compute#hostList", # [Output Only] Type of resource. Always compute#hostList for lists of hosts. 555 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 556 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 557 }</pre> 558 </div> 559 560 <div class="method"> 561 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 562 <pre>Retrieves the next page of results. 563 564 Args: 565 previous_request: The request for the previous page. (required) 566 previous_response: The response from the request for the previous page. (required) 567 568 Returns: 569 A request object that you can call 'execute()' on to request the next 570 page. Returns None if there are no more items in the collection. 571 </pre> 572 </div> 573 574 <div class="method"> 575 <code class="details" id="setIamPolicy">setIamPolicy(project, zone, resource, body)</code> 576 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. 577 578 Args: 579 project: string, Project ID for this request. (required) 580 zone: string, The name of the zone for this request. (required) 581 resource: string, Name of the resource for this request. (required) 582 body: object, The request body. (required) 583 The object takes the form of: 584 585 { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources. 586 # 587 # 588 # 589 # 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. 590 # 591 # **Example** 592 # 593 # { "bindings": [ { "role": "roles/owner", "members": [ "user:mike (a] example.com", "group:admins (a] example.com", "domain:google.com", "serviceAccount:my-other-app (a] appspot.gserviceaccount.com", ] }, { "role": "roles/viewer", "members": ["user:sean (a] example.com"] } ] } 594 # 595 # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam). 596 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. 597 { # 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. 598 # 599 # 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 AuditConfig are exempted. 600 # 601 # Example Policy with multiple AuditConfigs: 602 # 603 # { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo (a] 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 (a] gmail.com" ] } ] } ] } 604 # 605 # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo (a] gmail.com from DATA_READ logging, and bar (a] gmail.com from DATA_WRITE logging. 606 "exemptedMembers": [ 607 "A String", 608 ], 609 "auditLogConfigs": [ # The configuration for logging of each type of permission. 610 { # Provides the configuration for logging a type of permissions. Example: 611 # 612 # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo (a] gmail.com" ] }, { "log_type": "DATA_WRITE", } ] } 613 # 614 # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo (a] gmail.com from DATA_READ logging. 615 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][]. 616 "A String", 617 ], 618 "logType": "A String", # The log type that this config enables. 619 }, 620 ], 621 "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. 622 }, 623 ], 624 "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. 625 { # A rule to be applied in a Policy. 626 "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action. 627 { # Specifies what kind of log the caller must write 628 "counter": { # Options for counters # Counter options. 629 "field": "A String", # The field value to attribute. 630 "metric": "A String", # The metric to update. 631 }, 632 "cloudAudit": { # Write a Cloud Audit log # Cloud audit options. 633 "logName": "A String", # The log_name to populate in the Cloud Audit Record. 634 }, 635 }, 636 ], 637 "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. 638 "A String", 639 ], 640 "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. 641 "A String", 642 ], 643 "action": "A String", # Required 644 "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. 645 "A String", 646 ], 647 "conditions": [ # Additional restrictions that must be met 648 { # A condition to be met. 649 "iam": "A String", # Trusted attributes supplied by the IAM system. 650 "svc": "A String", # Trusted attributes discharged by the service. 651 "value": "A String", # DEPRECATED. Use 'values' instead. 652 "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control. 653 "values": [ # The objects of the condition. This is mutually exclusive with 'value'. 654 "A String", 655 ], 656 "op": "A String", # An operator to apply the subject with. 657 }, 658 ], 659 "description": "A String", # Human-readable description of the rule. 660 }, 661 ], 662 "version": 42, # Version of the `Policy`. The default version is 0. 663 "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. 664 # 665 # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly. 666 "bindings": [ # Associates a list of `members` to a `role`. Multiple `bindings` must not be specified for the same `role`. `bindings` with no members will result in an error. 667 { # Associates `members` with a `role`. 668 "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 669 "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: 670 # 671 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. 672 # 673 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. 674 # 675 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice (a] gmail.com` or `joe (a] example.com`. 676 # 677 # 678 # 679 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app (a] appspot.gserviceaccount.com`. 680 # 681 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins (a] example.com`. 682 # 683 # 684 # 685 # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`. 686 "A String", 687 ], 688 }, 689 ], 690 "iamOwned": True or False, 691 } 692 693 694 Returns: 695 An object of the form: 696 697 { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources. 698 # 699 # 700 # 701 # 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. 702 # 703 # **Example** 704 # 705 # { "bindings": [ { "role": "roles/owner", "members": [ "user:mike (a] example.com", "group:admins (a] example.com", "domain:google.com", "serviceAccount:my-other-app (a] appspot.gserviceaccount.com", ] }, { "role": "roles/viewer", "members": ["user:sean (a] example.com"] } ] } 706 # 707 # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam). 708 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. 709 { # 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. 710 # 711 # 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 AuditConfig are exempted. 712 # 713 # Example Policy with multiple AuditConfigs: 714 # 715 # { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo (a] 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 (a] gmail.com" ] } ] } ] } 716 # 717 # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo (a] gmail.com from DATA_READ logging, and bar (a] gmail.com from DATA_WRITE logging. 718 "exemptedMembers": [ 719 "A String", 720 ], 721 "auditLogConfigs": [ # The configuration for logging of each type of permission. 722 { # Provides the configuration for logging a type of permissions. Example: 723 # 724 # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo (a] gmail.com" ] }, { "log_type": "DATA_WRITE", } ] } 725 # 726 # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo (a] gmail.com from DATA_READ logging. 727 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][]. 728 "A String", 729 ], 730 "logType": "A String", # The log type that this config enables. 731 }, 732 ], 733 "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. 734 }, 735 ], 736 "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. 737 { # A rule to be applied in a Policy. 738 "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action. 739 { # Specifies what kind of log the caller must write 740 "counter": { # Options for counters # Counter options. 741 "field": "A String", # The field value to attribute. 742 "metric": "A String", # The metric to update. 743 }, 744 "cloudAudit": { # Write a Cloud Audit log # Cloud audit options. 745 "logName": "A String", # The log_name to populate in the Cloud Audit Record. 746 }, 747 }, 748 ], 749 "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. 750 "A String", 751 ], 752 "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. 753 "A String", 754 ], 755 "action": "A String", # Required 756 "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. 757 "A String", 758 ], 759 "conditions": [ # Additional restrictions that must be met 760 { # A condition to be met. 761 "iam": "A String", # Trusted attributes supplied by the IAM system. 762 "svc": "A String", # Trusted attributes discharged by the service. 763 "value": "A String", # DEPRECATED. Use 'values' instead. 764 "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control. 765 "values": [ # The objects of the condition. This is mutually exclusive with 'value'. 766 "A String", 767 ], 768 "op": "A String", # An operator to apply the subject with. 769 }, 770 ], 771 "description": "A String", # Human-readable description of the rule. 772 }, 773 ], 774 "version": 42, # Version of the `Policy`. The default version is 0. 775 "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. 776 # 777 # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly. 778 "bindings": [ # Associates a list of `members` to a `role`. Multiple `bindings` must not be specified for the same `role`. `bindings` with no members will result in an error. 779 { # Associates `members` with a `role`. 780 "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 781 "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: 782 # 783 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. 784 # 785 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. 786 # 787 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice (a] gmail.com` or `joe (a] example.com`. 788 # 789 # 790 # 791 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app (a] appspot.gserviceaccount.com`. 792 # 793 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins (a] example.com`. 794 # 795 # 796 # 797 # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`. 798 "A String", 799 ], 800 }, 801 ], 802 "iamOwned": True or False, 803 }</pre> 804 </div> 805 806 <div class="method"> 807 <code class="details" id="testIamPermissions">testIamPermissions(project, zone, resource, body)</code> 808 <pre>Returns permissions that a caller has on the specified resource. 809 810 Args: 811 project: string, Project ID for this request. (required) 812 zone: string, The name of the zone for this request. (required) 813 resource: string, Name of the resource for this request. (required) 814 body: object, The request body. (required) 815 The object takes the form of: 816 817 { 818 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. 819 "A String", 820 ], 821 } 822 823 824 Returns: 825 An object of the form: 826 827 { 828 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. 829 "A String", 830 ], 831 }</pre> 832 </div> 833 834 </body></html>