Home | History | Annotate | Download | only in dyn
      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.disks.html">disks</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 persistent disks.</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="#createSnapshot">createSnapshot(project, zone, disk, body, guestFlush=None, requestId=None)</a></code></p>
     85 <p class="firstline">Creates a snapshot of a specified persistent disk.</p>
     86 <p class="toc_element">
     87   <code><a href="#delete">delete(project, zone, disk, requestId=None)</a></code></p>
     88 <p class="firstline">Deletes the specified persistent disk. Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots.</p>
     89 <p class="toc_element">
     90   <code><a href="#get">get(project, zone, disk)</a></code></p>
     91 <p class="firstline">Returns a specified persistent disk. Get a list of available persistent disks by making a list() request.</p>
     92 <p class="toc_element">
     93   <code><a href="#getIamPolicy">getIamPolicy(project, zone, resource)</a></code></p>
     94 <p class="firstline">Gets the access control policy for a resource. May be empty if no such policy or resource exists.</p>
     95 <p class="toc_element">
     96   <code><a href="#insert">insert(project, zone, body, requestId=None, sourceImage=None)</a></code></p>
     97 <p class="firstline">Creates a persistent disk in the specified project using the data in the request. You can create a disk with a sourceImage, a sourceSnapshot, or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property.</p>
     98 <p class="toc_element">
     99   <code><a href="#list">list(project, zone, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
    100 <p class="firstline">Retrieves a list of persistent disks contained within the specified zone.</p>
    101 <p class="toc_element">
    102   <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
    103 <p class="firstline">Retrieves the next page of results.</p>
    104 <p class="toc_element">
    105   <code><a href="#resize">resize(project, zone, disk, body, requestId=None)</a></code></p>
    106 <p class="firstline">Resizes the specified persistent disk.</p>
    107 <p class="toc_element">
    108   <code><a href="#setIamPolicy">setIamPolicy(project, zone, resource, body)</a></code></p>
    109 <p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.</p>
    110 <p class="toc_element">
    111   <code><a href="#setLabels">setLabels(project, zone, resource, body, requestId=None)</a></code></p>
    112 <p class="firstline">Sets the labels on a disk. To learn more about labels, read the Labeling or Tagging Resources documentation.</p>
    113 <p class="toc_element">
    114   <code><a href="#testIamPermissions">testIamPermissions(project, zone, resource, body)</a></code></p>
    115 <p class="firstline">Returns permissions that a caller has on the specified resource.</p>
    116 <h3>Method Details</h3>
    117 <div class="method">
    118     <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
    119   <pre>Retrieves an aggregated list of persistent disks.
    120 
    121 Args:
    122   project: string, Project ID for this request. (required)
    123   orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
    124 
    125 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.
    126 
    127 Currently, only sorting by name or creationTimestamp desc is supported.
    128   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)
    129   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.
    130   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.
    131 
    132 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.
    133 
    134 For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
    135 
    136 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.
    137 
    138 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.
    139 
    140 Returns:
    141   An object of the form:
    142 
    143     {
    144     "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. Acceptable values are 0 to 500, inclusive. (Default: 500)
    145     "items": { # [Output Only] A map of scoped disk lists.
    146       "a_key": { # [Output Only] Name of the scope containing this set of disks.
    147         "disks": [ # [Output Only] List of disks contained in this scope.
    148           { # A Disk resource.
    149               "sourceImageEncryptionKey": { # Represents a customer-supplied encryption key # The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
    150                 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    151                 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    152                 "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    153                     #
    154                     # The key must meet the following requirements before you can provide it to Compute Engine:
    155                     # - The key is wrapped using a RSA public key certificate provided by Google.
    156                     # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    157                     # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    158                 "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    159               },
    160               "labels": { # Labels to apply to this disk. These can be later modified by the setLabels method.
    161                 "a_key": "A String",
    162               },
    163               "licenses": [ # Any applicable publicly visible licenses.
    164                 "A String",
    165               ],
    166               "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
    167               "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    168               "users": [ # [Output Only] Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance
    169                 "A String",
    170               ],
    171               "diskEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts the disk using a customer-supplied encryption key.
    172                   #
    173                   # After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine).
    174                   #
    175                   # Customer-supplied encryption keys do not protect access to metadata of the disk.
    176                   #
    177                   # If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.
    178                 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    179                 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    180                 "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    181                     #
    182                     # The key must meet the following requirements before you can provide it to Compute Engine:
    183                     # - The key is wrapped using a RSA public key certificate provided by Google.
    184                     # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    185                     # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    186                 "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    187               },
    188               "zone": "A String", # [Output Only] URL of the zone where the disk resides.
    189               "lastAttachTimestamp": "A String", # [Output Only] Last attach timestamp in RFC3339 text format.
    190               "type": "A String", # URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.
    191               "status": "A String", # [Output Only] The status of disk creation.
    192               "sourceSnapshot": "A String", # The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values:
    193                   # - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
    194                   # - projects/project/global/snapshots/snapshot
    195                   # - global/snapshots/snapshot
    196               "lastDetachTimestamp": "A String", # [Output Only] Last detach timestamp in RFC3339 text format.
    197               "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    198               "storageType": "A String", # [Deprecated] Storage type of the persistent disk.
    199               "labelFingerprint": "A String", # A fingerprint for the labels being applied to this disk, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels.
    200                   #
    201                   # To see the latest fingerprint, make a get() request to retrieve a disk.
    202               "sourceImageId": "A String", # [Output Only] The ID value of the image used to create this disk. This value identifies the exact image that was used to create this persistent disk. For example, if you created the persistent disk from an image that was later deleted and recreated under the same name, the source image ID would identify the exact version of the image that was used.
    203               "replicaZones": [ # URLs of the zones where the disk should be replicated to. Only applicable for regional resources.
    204                 "A String",
    205               ],
    206               "sourceSnapshotId": "A String", # [Output Only] The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.
    207               "kind": "compute#disk", # [Output Only] Type of the resource. Always compute#disk for disks.
    208               "name": "A String", # Name of the resource. Provided by the client when the resource is created. The 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.
    209               "sizeGb": "A String", # Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk.
    210                   #
    211                   # If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot.
    212               "region": "A String", # [Output Only] URL of the region where the disk resides. Only applicable for regional resources.
    213               "sourceSnapshotEncryptionKey": { # Represents a customer-supplied encryption key # The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key.
    214                 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    215                 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    216                 "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    217                     #
    218                     # The key must meet the following requirements before you can provide it to Compute Engine:
    219                     # - The key is wrapped using a RSA public key certificate provided by Google.
    220                     # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    221                     # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    222                 "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    223               },
    224               "options": "A String", # Internal use only.
    225               "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
    226               "sourceImage": "A String", # The source image used to create this disk. If the source image is deleted, this field will not be set.
    227                   #
    228                   # To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-8 to use the latest Debian 8 image:
    229                   #
    230                   # projects/debian-cloud/global/images/family/debian-8
    231                   #
    232                   # Alternatively, use a specific version of a public operating system image:
    233                   #
    234                   # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
    235                   #
    236                   # To create a disk with a private image that you created, specify the image name in the following format:
    237                   #
    238                   # global/images/my-private-image
    239                   #
    240                   # You can also specify a private image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name:
    241                   #
    242                   # global/images/family/my-private-family
    243             },
    244         ],
    245         "warning": { # [Output Only] Informational warning which replaces the list of disks when the list is empty.
    246           "message": "A String", # [Output Only] A human-readable description of the warning code.
    247           "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.
    248           "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
    249               # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    250             {
    251               "value": "A String", # [Output Only] A warning data value corresponding to the key.
    252               "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).
    253             },
    254           ],
    255         },
    256       },
    257     },
    258     "kind": "compute#diskAggregatedList", # [Output Only] Type of resource. Always compute#diskAggregatedList for aggregated lists of persistent disks.
    259     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    260     "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
    261   }</pre>
    262 </div>
    263 
    264 <div class="method">
    265     <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
    266   <pre>Retrieves the next page of results.
    267 
    268 Args:
    269   previous_request: The request for the previous page. (required)
    270   previous_response: The response from the request for the previous page. (required)
    271 
    272 Returns:
    273   A request object that you can call 'execute()' on to request the next
    274   page. Returns None if there are no more items in the collection.
    275     </pre>
    276 </div>
    277 
    278 <div class="method">
    279     <code class="details" id="createSnapshot">createSnapshot(project, zone, disk, body, guestFlush=None, requestId=None)</code>
    280   <pre>Creates a snapshot of a specified persistent disk.
    281 
    282 Args:
    283   project: string, Project ID for this request. (required)
    284   zone: string, The name of the zone for this request. (required)
    285   disk: string, Name of the persistent disk to snapshot. (required)
    286   body: object, The request body. (required)
    287     The object takes the form of:
    288 
    289 { # A persistent disk snapshot resource.
    290     "status": "A String", # [Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING.
    291     "kind": "compute#snapshot", # [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources.
    292     "sourceDiskEncryptionKey": { # Represents a customer-supplied encryption key # The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key.
    293       "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    294       "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    295       "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    296           #
    297           # The key must meet the following requirements before you can provide it to Compute Engine:
    298           # - The key is wrapped using a RSA public key certificate provided by Google.
    299           # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    300           # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    301       "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    302     },
    303     "storageBytes": "A String", # [Output Only] A size of the the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion.
    304     "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    305     "sourceDisk": "A String", # [Output Only] The source disk used to create this snapshot.
    306     "snapshotEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts the snapshot using a customer-supplied encryption key.
    307         # 
    308         # After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the image later For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request.
    309         # 
    310         # Customer-supplied encryption keys do not protect access to metadata of the disk.
    311         # 
    312         # If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
    313       "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    314       "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    315       "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    316           #
    317           # The key must meet the following requirements before you can provide it to Compute Engine:
    318           # - The key is wrapped using a RSA public key certificate provided by Google.
    319           # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    320           # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    321       "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    322     },
    323     "storageBytesStatus": "A String", # [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date.
    324     "labelFingerprint": "A String", # A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels.
    325         # 
    326         # To see the latest fingerprint, make a get() request to retrieve a snapshot.
    327     "labels": { # Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
    328       "a_key": "A String",
    329     },
    330     "sourceDiskId": "A String", # [Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
    331     "diskSizeGb": "A String", # [Output Only] Size of the snapshot, specified in GB.
    332     "licenses": [ # [Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image).
    333       "A String",
    334     ],
    335     "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
    336     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    337     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    338     "name": "A String", # Name of the resource; provided by the client when the resource is created. The 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.
    339   }
    340 
    341   guestFlush: boolean, A parameter
    342   requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
    343 
    344 Returns:
    345   An object of the form:
    346 
    347     { # An Operation resource, used to manage asynchronous API requests.
    348     "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
    349     "clientOperationId": "A String", # [Output Only] Reserved for future use.
    350     "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
    351     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    352     "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
    353     "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
    354     "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
    355     "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
    356     "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.
    357     "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.
    358     "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
    359     "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
    360     "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
    361     "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
    362       {
    363         "message": "A String", # [Output Only] A human-readable description of the warning code.
    364         "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.
    365         "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
    366             # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    367           {
    368             "value": "A String", # [Output Only] A warning data value corresponding to the key.
    369             "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).
    370           },
    371         ],
    372       },
    373     ],
    374     "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com.
    375     "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
    376     "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
    377     "name": "A String", # [Output Only] Name of the resource.
    378     "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
    379     "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
    380       "errors": [ # [Output Only] The array of errors encountered while processing this operation.
    381         {
    382           "message": "A String", # [Output Only] An optional, human-readable error message.
    383           "code": "A String", # [Output Only] The error type identifier for this error.
    384           "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
    385         },
    386       ],
    387     },
    388     "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
    389     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    390     "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.
    391   }</pre>
    392 </div>
    393 
    394 <div class="method">
    395     <code class="details" id="delete">delete(project, zone, disk, requestId=None)</code>
    396   <pre>Deletes the specified persistent disk. Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots.
    397 
    398 Args:
    399   project: string, Project ID for this request. (required)
    400   zone: string, The name of the zone for this request. (required)
    401   disk: string, Name of the persistent disk to delete. (required)
    402   requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
    403 
    404 Returns:
    405   An object of the form:
    406 
    407     { # An Operation resource, used to manage asynchronous API requests.
    408     "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
    409     "clientOperationId": "A String", # [Output Only] Reserved for future use.
    410     "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
    411     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    412     "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
    413     "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
    414     "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
    415     "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
    416     "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.
    417     "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.
    418     "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
    419     "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
    420     "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
    421     "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
    422       {
    423         "message": "A String", # [Output Only] A human-readable description of the warning code.
    424         "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.
    425         "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
    426             # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    427           {
    428             "value": "A String", # [Output Only] A warning data value corresponding to the key.
    429             "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).
    430           },
    431         ],
    432       },
    433     ],
    434     "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com.
    435     "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
    436     "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
    437     "name": "A String", # [Output Only] Name of the resource.
    438     "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
    439     "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
    440       "errors": [ # [Output Only] The array of errors encountered while processing this operation.
    441         {
    442           "message": "A String", # [Output Only] An optional, human-readable error message.
    443           "code": "A String", # [Output Only] The error type identifier for this error.
    444           "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
    445         },
    446       ],
    447     },
    448     "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
    449     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    450     "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.
    451   }</pre>
    452 </div>
    453 
    454 <div class="method">
    455     <code class="details" id="get">get(project, zone, disk)</code>
    456   <pre>Returns a specified persistent disk. Get a list of available persistent disks by making a list() request.
    457 
    458 Args:
    459   project: string, Project ID for this request. (required)
    460   zone: string, The name of the zone for this request. (required)
    461   disk: string, Name of the persistent disk to return. (required)
    462 
    463 Returns:
    464   An object of the form:
    465 
    466     { # A Disk resource.
    467       "sourceImageEncryptionKey": { # Represents a customer-supplied encryption key # The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
    468         "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    469         "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    470         "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    471             #
    472             # The key must meet the following requirements before you can provide it to Compute Engine:
    473             # - The key is wrapped using a RSA public key certificate provided by Google.
    474             # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    475             # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    476         "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    477       },
    478       "labels": { # Labels to apply to this disk. These can be later modified by the setLabels method.
    479         "a_key": "A String",
    480       },
    481       "licenses": [ # Any applicable publicly visible licenses.
    482         "A String",
    483       ],
    484       "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
    485       "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    486       "users": [ # [Output Only] Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance
    487         "A String",
    488       ],
    489       "diskEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts the disk using a customer-supplied encryption key.
    490           #
    491           # After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine).
    492           #
    493           # Customer-supplied encryption keys do not protect access to metadata of the disk.
    494           #
    495           # If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.
    496         "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    497         "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    498         "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    499             #
    500             # The key must meet the following requirements before you can provide it to Compute Engine:
    501             # - The key is wrapped using a RSA public key certificate provided by Google.
    502             # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    503             # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    504         "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    505       },
    506       "zone": "A String", # [Output Only] URL of the zone where the disk resides.
    507       "lastAttachTimestamp": "A String", # [Output Only] Last attach timestamp in RFC3339 text format.
    508       "type": "A String", # URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.
    509       "status": "A String", # [Output Only] The status of disk creation.
    510       "sourceSnapshot": "A String", # The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values:
    511           # - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
    512           # - projects/project/global/snapshots/snapshot
    513           # - global/snapshots/snapshot
    514       "lastDetachTimestamp": "A String", # [Output Only] Last detach timestamp in RFC3339 text format.
    515       "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    516       "storageType": "A String", # [Deprecated] Storage type of the persistent disk.
    517       "labelFingerprint": "A String", # A fingerprint for the labels being applied to this disk, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels.
    518           #
    519           # To see the latest fingerprint, make a get() request to retrieve a disk.
    520       "sourceImageId": "A String", # [Output Only] The ID value of the image used to create this disk. This value identifies the exact image that was used to create this persistent disk. For example, if you created the persistent disk from an image that was later deleted and recreated under the same name, the source image ID would identify the exact version of the image that was used.
    521       "replicaZones": [ # URLs of the zones where the disk should be replicated to. Only applicable for regional resources.
    522         "A String",
    523       ],
    524       "sourceSnapshotId": "A String", # [Output Only] The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.
    525       "kind": "compute#disk", # [Output Only] Type of the resource. Always compute#disk for disks.
    526       "name": "A String", # Name of the resource. Provided by the client when the resource is created. The 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.
    527       "sizeGb": "A String", # Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk.
    528           #
    529           # If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot.
    530       "region": "A String", # [Output Only] URL of the region where the disk resides. Only applicable for regional resources.
    531       "sourceSnapshotEncryptionKey": { # Represents a customer-supplied encryption key # The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key.
    532         "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    533         "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    534         "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    535             #
    536             # The key must meet the following requirements before you can provide it to Compute Engine:
    537             # - The key is wrapped using a RSA public key certificate provided by Google.
    538             # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    539             # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    540         "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    541       },
    542       "options": "A String", # Internal use only.
    543       "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
    544       "sourceImage": "A String", # The source image used to create this disk. If the source image is deleted, this field will not be set.
    545           #
    546           # To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-8 to use the latest Debian 8 image:
    547           #
    548           # projects/debian-cloud/global/images/family/debian-8
    549           #
    550           # Alternatively, use a specific version of a public operating system image:
    551           #
    552           # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
    553           #
    554           # To create a disk with a private image that you created, specify the image name in the following format:
    555           #
    556           # global/images/my-private-image
    557           #
    558           # You can also specify a private image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name:
    559           #
    560           # global/images/family/my-private-family
    561     }</pre>
    562 </div>
    563 
    564 <div class="method">
    565     <code class="details" id="getIamPolicy">getIamPolicy(project, zone, resource)</code>
    566   <pre>Gets the access control policy for a resource. May be empty if no such policy or resource exists.
    567 
    568 Args:
    569   project: string, Project ID for this request. (required)
    570   zone: string, The name of the zone for this request. (required)
    571   resource: string, Name of the resource for this request. (required)
    572 
    573 Returns:
    574   An object of the form:
    575 
    576     { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.
    577       #
    578       #
    579       #
    580       # 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.
    581       #
    582       # **Example**
    583       #
    584       # { "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"] } ] }
    585       #
    586       # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam).
    587     "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
    588       { # 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.
    589           #
    590           # 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.
    591           #
    592           # Example Policy with multiple AuditConfigs:
    593           #
    594           # { "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" ] } ] } ] }
    595           #
    596           # 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.
    597         "exemptedMembers": [
    598           "A String",
    599         ],
    600         "auditLogConfigs": [ # The configuration for logging of each type of permission.
    601           { # Provides the configuration for logging a type of permissions. Example:
    602               #
    603               # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo (a] gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
    604               #
    605               # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo (a] gmail.com from DATA_READ logging.
    606             "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
    607               "A String",
    608             ],
    609             "logType": "A String", # The log type that this config enables.
    610           },
    611         ],
    612         "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.
    613       },
    614     ],
    615     "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.
    616       { # A rule to be applied in a Policy.
    617         "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
    618           { # Specifies what kind of log the caller must write
    619             "counter": { # Options for counters # Counter options.
    620               "field": "A String", # The field value to attribute.
    621               "metric": "A String", # The metric to update.
    622             },
    623             "cloudAudit": { # Write a Cloud Audit log # Cloud audit options.
    624               "logName": "A String", # The log_name to populate in the Cloud Audit Record.
    625             },
    626           },
    627         ],
    628         "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
    629           "A String",
    630         ],
    631         "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.
    632           "A String",
    633         ],
    634         "action": "A String", # Required
    635         "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.
    636           "A String",
    637         ],
    638         "conditions": [ # Additional restrictions that must be met
    639           { # A condition to be met.
    640             "iam": "A String", # Trusted attributes supplied by the IAM system.
    641             "svc": "A String", # Trusted attributes discharged by the service.
    642             "value": "A String", # DEPRECATED. Use 'values' instead.
    643             "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
    644             "values": [ # The objects of the condition. This is mutually exclusive with 'value'.
    645               "A String",
    646             ],
    647             "op": "A String", # An operator to apply the subject with.
    648           },
    649         ],
    650         "description": "A String", # Human-readable description of the rule.
    651       },
    652     ],
    653     "version": 42, # Version of the `Policy`. The default version is 0.
    654     "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.
    655         #
    656         # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
    657     "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.
    658       { # Associates `members` with a `role`.
    659         "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
    660         "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
    661             #
    662             # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
    663             #
    664             # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
    665             #
    666             # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice (a] gmail.com` or `joe (a] example.com`.
    667             #
    668             #
    669             #
    670             # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app (a] appspot.gserviceaccount.com`.
    671             #
    672             # * `group:{emailid}`: An email address that represents a Google group. For example, `admins (a] example.com`.
    673             #
    674             #
    675             #
    676             # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.
    677           "A String",
    678         ],
    679       },
    680     ],
    681     "iamOwned": True or False,
    682   }</pre>
    683 </div>
    684 
    685 <div class="method">
    686     <code class="details" id="insert">insert(project, zone, body, requestId=None, sourceImage=None)</code>
    687   <pre>Creates a persistent disk in the specified project using the data in the request. You can create a disk with a sourceImage, a sourceSnapshot, or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property.
    688 
    689 Args:
    690   project: string, Project ID for this request. (required)
    691   zone: string, The name of the zone for this request. (required)
    692   body: object, The request body. (required)
    693     The object takes the form of:
    694 
    695 { # A Disk resource.
    696     "sourceImageEncryptionKey": { # Represents a customer-supplied encryption key # The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
    697       "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    698       "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    699       "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    700           #
    701           # The key must meet the following requirements before you can provide it to Compute Engine:
    702           # - The key is wrapped using a RSA public key certificate provided by Google.
    703           # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    704           # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    705       "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    706     },
    707     "labels": { # Labels to apply to this disk. These can be later modified by the setLabels method.
    708       "a_key": "A String",
    709     },
    710     "licenses": [ # Any applicable publicly visible licenses.
    711       "A String",
    712     ],
    713     "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
    714     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    715     "users": [ # [Output Only] Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance
    716       "A String",
    717     ],
    718     "diskEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts the disk using a customer-supplied encryption key.
    719         # 
    720         # After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine).
    721         # 
    722         # Customer-supplied encryption keys do not protect access to metadata of the disk.
    723         # 
    724         # If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.
    725       "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    726       "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    727       "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    728           #
    729           # The key must meet the following requirements before you can provide it to Compute Engine:
    730           # - The key is wrapped using a RSA public key certificate provided by Google.
    731           # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    732           # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    733       "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    734     },
    735     "zone": "A String", # [Output Only] URL of the zone where the disk resides.
    736     "lastAttachTimestamp": "A String", # [Output Only] Last attach timestamp in RFC3339 text format.
    737     "type": "A String", # URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.
    738     "status": "A String", # [Output Only] The status of disk creation.
    739     "sourceSnapshot": "A String", # The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values:
    740         # - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
    741         # - projects/project/global/snapshots/snapshot
    742         # - global/snapshots/snapshot
    743     "lastDetachTimestamp": "A String", # [Output Only] Last detach timestamp in RFC3339 text format.
    744     "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    745     "storageType": "A String", # [Deprecated] Storage type of the persistent disk.
    746     "labelFingerprint": "A String", # A fingerprint for the labels being applied to this disk, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels.
    747         # 
    748         # To see the latest fingerprint, make a get() request to retrieve a disk.
    749     "sourceImageId": "A String", # [Output Only] The ID value of the image used to create this disk. This value identifies the exact image that was used to create this persistent disk. For example, if you created the persistent disk from an image that was later deleted and recreated under the same name, the source image ID would identify the exact version of the image that was used.
    750     "replicaZones": [ # URLs of the zones where the disk should be replicated to. Only applicable for regional resources.
    751       "A String",
    752     ],
    753     "sourceSnapshotId": "A String", # [Output Only] The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.
    754     "kind": "compute#disk", # [Output Only] Type of the resource. Always compute#disk for disks.
    755     "name": "A String", # Name of the resource. Provided by the client when the resource is created. The 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.
    756     "sizeGb": "A String", # Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk.
    757         # 
    758         # If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot.
    759     "region": "A String", # [Output Only] URL of the region where the disk resides. Only applicable for regional resources.
    760     "sourceSnapshotEncryptionKey": { # Represents a customer-supplied encryption key # The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key.
    761       "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    762       "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    763       "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    764           #
    765           # The key must meet the following requirements before you can provide it to Compute Engine:
    766           # - The key is wrapped using a RSA public key certificate provided by Google.
    767           # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    768           # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    769       "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    770     },
    771     "options": "A String", # Internal use only.
    772     "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
    773     "sourceImage": "A String", # The source image used to create this disk. If the source image is deleted, this field will not be set.
    774         # 
    775         # To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-8 to use the latest Debian 8 image:
    776         # 
    777         # projects/debian-cloud/global/images/family/debian-8
    778         # 
    779         # Alternatively, use a specific version of a public operating system image:
    780         # 
    781         # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
    782         # 
    783         # To create a disk with a private image that you created, specify the image name in the following format:
    784         # 
    785         # global/images/my-private-image
    786         # 
    787         # You can also specify a private image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name:
    788         # 
    789         # global/images/family/my-private-family
    790   }
    791 
    792   requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
    793   sourceImage: string, Optional. Source image to restore onto a disk.
    794 
    795 Returns:
    796   An object of the form:
    797 
    798     { # An Operation resource, used to manage asynchronous API requests.
    799     "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
    800     "clientOperationId": "A String", # [Output Only] Reserved for future use.
    801     "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
    802     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    803     "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
    804     "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
    805     "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
    806     "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
    807     "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.
    808     "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.
    809     "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
    810     "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
    811     "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
    812     "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
    813       {
    814         "message": "A String", # [Output Only] A human-readable description of the warning code.
    815         "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.
    816         "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
    817             # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    818           {
    819             "value": "A String", # [Output Only] A warning data value corresponding to the key.
    820             "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).
    821           },
    822         ],
    823       },
    824     ],
    825     "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com.
    826     "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
    827     "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
    828     "name": "A String", # [Output Only] Name of the resource.
    829     "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
    830     "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
    831       "errors": [ # [Output Only] The array of errors encountered while processing this operation.
    832         {
    833           "message": "A String", # [Output Only] An optional, human-readable error message.
    834           "code": "A String", # [Output Only] The error type identifier for this error.
    835           "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
    836         },
    837       ],
    838     },
    839     "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
    840     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    841     "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.
    842   }</pre>
    843 </div>
    844 
    845 <div class="method">
    846     <code class="details" id="list">list(project, zone, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
    847   <pre>Retrieves a list of persistent disks contained within the specified zone.
    848 
    849 Args:
    850   project: string, Project ID for this request. (required)
    851   zone: string, The name of the zone for this request. (required)
    852   orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
    853 
    854 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.
    855 
    856 Currently, only sorting by name or creationTimestamp desc is supported.
    857   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)
    858   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.
    859   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.
    860 
    861 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.
    862 
    863 For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
    864 
    865 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.
    866 
    867 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.
    868 
    869 Returns:
    870   An object of the form:
    871 
    872     { # A list of Disk resources.
    873     "nextPageToken": "A String", # 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.
    874     "items": [ # A list of Disk resources.
    875       { # A Disk resource.
    876           "sourceImageEncryptionKey": { # Represents a customer-supplied encryption key # The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
    877             "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    878             "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    879             "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    880                 #
    881                 # The key must meet the following requirements before you can provide it to Compute Engine:
    882                 # - The key is wrapped using a RSA public key certificate provided by Google.
    883                 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    884                 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    885             "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    886           },
    887           "labels": { # Labels to apply to this disk. These can be later modified by the setLabels method.
    888             "a_key": "A String",
    889           },
    890           "licenses": [ # Any applicable publicly visible licenses.
    891             "A String",
    892           ],
    893           "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
    894           "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    895           "users": [ # [Output Only] Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance
    896             "A String",
    897           ],
    898           "diskEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts the disk using a customer-supplied encryption key.
    899               #
    900               # After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine).
    901               #
    902               # Customer-supplied encryption keys do not protect access to metadata of the disk.
    903               #
    904               # If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.
    905             "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    906             "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    907             "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    908                 #
    909                 # The key must meet the following requirements before you can provide it to Compute Engine:
    910                 # - The key is wrapped using a RSA public key certificate provided by Google.
    911                 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    912                 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    913             "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    914           },
    915           "zone": "A String", # [Output Only] URL of the zone where the disk resides.
    916           "lastAttachTimestamp": "A String", # [Output Only] Last attach timestamp in RFC3339 text format.
    917           "type": "A String", # URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.
    918           "status": "A String", # [Output Only] The status of disk creation.
    919           "sourceSnapshot": "A String", # The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values:
    920               # - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
    921               # - projects/project/global/snapshots/snapshot
    922               # - global/snapshots/snapshot
    923           "lastDetachTimestamp": "A String", # [Output Only] Last detach timestamp in RFC3339 text format.
    924           "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    925           "storageType": "A String", # [Deprecated] Storage type of the persistent disk.
    926           "labelFingerprint": "A String", # A fingerprint for the labels being applied to this disk, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels.
    927               #
    928               # To see the latest fingerprint, make a get() request to retrieve a disk.
    929           "sourceImageId": "A String", # [Output Only] The ID value of the image used to create this disk. This value identifies the exact image that was used to create this persistent disk. For example, if you created the persistent disk from an image that was later deleted and recreated under the same name, the source image ID would identify the exact version of the image that was used.
    930           "replicaZones": [ # URLs of the zones where the disk should be replicated to. Only applicable for regional resources.
    931             "A String",
    932           ],
    933           "sourceSnapshotId": "A String", # [Output Only] The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.
    934           "kind": "compute#disk", # [Output Only] Type of the resource. Always compute#disk for disks.
    935           "name": "A String", # Name of the resource. Provided by the client when the resource is created. The 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.
    936           "sizeGb": "A String", # Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk.
    937               #
    938               # If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot.
    939           "region": "A String", # [Output Only] URL of the region where the disk resides. Only applicable for regional resources.
    940           "sourceSnapshotEncryptionKey": { # Represents a customer-supplied encryption key # The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key.
    941             "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    942             "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    943             "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    944                 #
    945                 # The key must meet the following requirements before you can provide it to Compute Engine:
    946                 # - The key is wrapped using a RSA public key certificate provided by Google.
    947                 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    948                 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    949             "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    950           },
    951           "options": "A String", # Internal use only.
    952           "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
    953           "sourceImage": "A String", # The source image used to create this disk. If the source image is deleted, this field will not be set.
    954               #
    955               # To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-8 to use the latest Debian 8 image:
    956               #
    957               # projects/debian-cloud/global/images/family/debian-8
    958               #
    959               # Alternatively, use a specific version of a public operating system image:
    960               #
    961               # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
    962               #
    963               # To create a disk with a private image that you created, specify the image name in the following format:
    964               #
    965               # global/images/my-private-image
    966               #
    967               # You can also specify a private image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name:
    968               #
    969               # global/images/family/my-private-family
    970         },
    971     ],
    972     "kind": "compute#diskList", # [Output Only] Type of resource. Always compute#diskList for lists of disks.
    973     "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
    974     "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
    975   }</pre>
    976 </div>
    977 
    978 <div class="method">
    979     <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
    980   <pre>Retrieves the next page of results.
    981 
    982 Args:
    983   previous_request: The request for the previous page. (required)
    984   previous_response: The response from the request for the previous page. (required)
    985 
    986 Returns:
    987   A request object that you can call 'execute()' on to request the next
    988   page. Returns None if there are no more items in the collection.
    989     </pre>
    990 </div>
    991 
    992 <div class="method">
    993     <code class="details" id="resize">resize(project, zone, disk, body, requestId=None)</code>
    994   <pre>Resizes the specified persistent disk.
    995 
    996 Args:
    997   project: string, Project ID for this request. (required)
    998   zone: string, The name of the zone for this request. (required)
    999   disk: string, The name of the persistent disk. (required)
   1000   body: object, The request body. (required)
   1001     The object takes the form of:
   1002 
   1003 {
   1004     "sizeGb": "A String", # The new size of the persistent disk, which is specified in GB.
   1005   }
   1006 
   1007   requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
   1008 
   1009 Returns:
   1010   An object of the form:
   1011 
   1012     { # An Operation resource, used to manage asynchronous API requests.
   1013     "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
   1014     "clientOperationId": "A String", # [Output Only] Reserved for future use.
   1015     "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
   1016     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
   1017     "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
   1018     "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
   1019     "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
   1020     "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
   1021     "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.
   1022     "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.
   1023     "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
   1024     "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
   1025     "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
   1026     "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
   1027       {
   1028         "message": "A String", # [Output Only] A human-readable description of the warning code.
   1029         "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.
   1030         "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
   1031             # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
   1032           {
   1033             "value": "A String", # [Output Only] A warning data value corresponding to the key.
   1034             "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).
   1035           },
   1036         ],
   1037       },
   1038     ],
   1039     "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com.
   1040     "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
   1041     "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
   1042     "name": "A String", # [Output Only] Name of the resource.
   1043     "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
   1044     "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
   1045       "errors": [ # [Output Only] The array of errors encountered while processing this operation.
   1046         {
   1047           "message": "A String", # [Output Only] An optional, human-readable error message.
   1048           "code": "A String", # [Output Only] The error type identifier for this error.
   1049           "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
   1050         },
   1051       ],
   1052     },
   1053     "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
   1054     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
   1055     "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.
   1056   }</pre>
   1057 </div>
   1058 
   1059 <div class="method">
   1060     <code class="details" id="setIamPolicy">setIamPolicy(project, zone, resource, body)</code>
   1061   <pre>Sets the access control policy on the specified resource. Replaces any existing policy.
   1062 
   1063 Args:
   1064   project: string, Project ID for this request. (required)
   1065   zone: string, The name of the zone for this request. (required)
   1066   resource: string, Name of the resource for this request. (required)
   1067   body: object, The request body. (required)
   1068     The object takes the form of:
   1069 
   1070 { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.
   1071     # 
   1072     # 
   1073     # 
   1074     # 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.
   1075     # 
   1076     # **Example**
   1077     # 
   1078     # { "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"] } ] }
   1079     # 
   1080     # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam).
   1081   "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
   1082     { # 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.
   1083         #
   1084         # 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.
   1085         #
   1086         # Example Policy with multiple AuditConfigs:
   1087         #
   1088         # { "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" ] } ] } ] }
   1089         #
   1090         # 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.
   1091       "exemptedMembers": [
   1092         "A String",
   1093       ],
   1094       "auditLogConfigs": [ # The configuration for logging of each type of permission.
   1095         { # Provides the configuration for logging a type of permissions. Example:
   1096             #
   1097             # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo (a] gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
   1098             #
   1099             # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo (a] gmail.com from DATA_READ logging.
   1100           "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
   1101             "A String",
   1102           ],
   1103           "logType": "A String", # The log type that this config enables.
   1104         },
   1105       ],
   1106       "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.
   1107     },
   1108   ],
   1109   "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.
   1110     { # A rule to be applied in a Policy.
   1111       "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
   1112         { # Specifies what kind of log the caller must write
   1113           "counter": { # Options for counters # Counter options.
   1114             "field": "A String", # The field value to attribute.
   1115             "metric": "A String", # The metric to update.
   1116           },
   1117           "cloudAudit": { # Write a Cloud Audit log # Cloud audit options.
   1118             "logName": "A String", # The log_name to populate in the Cloud Audit Record.
   1119           },
   1120         },
   1121       ],
   1122       "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
   1123         "A String",
   1124       ],
   1125       "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.
   1126         "A String",
   1127       ],
   1128       "action": "A String", # Required
   1129       "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.
   1130         "A String",
   1131       ],
   1132       "conditions": [ # Additional restrictions that must be met
   1133         { # A condition to be met.
   1134           "iam": "A String", # Trusted attributes supplied by the IAM system.
   1135           "svc": "A String", # Trusted attributes discharged by the service.
   1136           "value": "A String", # DEPRECATED. Use 'values' instead.
   1137           "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
   1138           "values": [ # The objects of the condition. This is mutually exclusive with 'value'.
   1139             "A String",
   1140           ],
   1141           "op": "A String", # An operator to apply the subject with.
   1142         },
   1143       ],
   1144       "description": "A String", # Human-readable description of the rule.
   1145     },
   1146   ],
   1147   "version": 42, # Version of the `Policy`. The default version is 0.
   1148   "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.
   1149       # 
   1150       # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
   1151   "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.
   1152     { # Associates `members` with a `role`.
   1153       "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
   1154       "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
   1155           #
   1156           # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
   1157           #
   1158           # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
   1159           #
   1160           # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice (a] gmail.com` or `joe (a] example.com`.
   1161           #
   1162           #
   1163           #
   1164           # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app (a] appspot.gserviceaccount.com`.
   1165           #
   1166           # * `group:{emailid}`: An email address that represents a Google group. For example, `admins (a] example.com`.
   1167           #
   1168           #
   1169           #
   1170           # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.
   1171         "A String",
   1172       ],
   1173     },
   1174   ],
   1175   "iamOwned": True or False,
   1176 }
   1177 
   1178 
   1179 Returns:
   1180   An object of the form:
   1181 
   1182     { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.
   1183       #
   1184       #
   1185       #
   1186       # 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.
   1187       #
   1188       # **Example**
   1189       #
   1190       # { "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"] } ] }
   1191       #
   1192       # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam).
   1193     "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
   1194       { # 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.
   1195           #
   1196           # 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.
   1197           #
   1198           # Example Policy with multiple AuditConfigs:
   1199           #
   1200           # { "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" ] } ] } ] }
   1201           #
   1202           # 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.
   1203         "exemptedMembers": [
   1204           "A String",
   1205         ],
   1206         "auditLogConfigs": [ # The configuration for logging of each type of permission.
   1207           { # Provides the configuration for logging a type of permissions. Example:
   1208               #
   1209               # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo (a] gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
   1210               #
   1211               # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo (a] gmail.com from DATA_READ logging.
   1212             "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
   1213               "A String",
   1214             ],
   1215             "logType": "A String", # The log type that this config enables.
   1216           },
   1217         ],
   1218         "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.
   1219       },
   1220     ],
   1221     "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.
   1222       { # A rule to be applied in a Policy.
   1223         "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
   1224           { # Specifies what kind of log the caller must write
   1225             "counter": { # Options for counters # Counter options.
   1226               "field": "A String", # The field value to attribute.
   1227               "metric": "A String", # The metric to update.
   1228             },
   1229             "cloudAudit": { # Write a Cloud Audit log # Cloud audit options.
   1230               "logName": "A String", # The log_name to populate in the Cloud Audit Record.
   1231             },
   1232           },
   1233         ],
   1234         "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
   1235           "A String",
   1236         ],
   1237         "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.
   1238           "A String",
   1239         ],
   1240         "action": "A String", # Required
   1241         "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.
   1242           "A String",
   1243         ],
   1244         "conditions": [ # Additional restrictions that must be met
   1245           { # A condition to be met.
   1246             "iam": "A String", # Trusted attributes supplied by the IAM system.
   1247             "svc": "A String", # Trusted attributes discharged by the service.
   1248             "value": "A String", # DEPRECATED. Use 'values' instead.
   1249             "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
   1250             "values": [ # The objects of the condition. This is mutually exclusive with 'value'.
   1251               "A String",
   1252             ],
   1253             "op": "A String", # An operator to apply the subject with.
   1254           },
   1255         ],
   1256         "description": "A String", # Human-readable description of the rule.
   1257       },
   1258     ],
   1259     "version": 42, # Version of the `Policy`. The default version is 0.
   1260     "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.
   1261         #
   1262         # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
   1263     "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.
   1264       { # Associates `members` with a `role`.
   1265         "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
   1266         "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
   1267             #
   1268             # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
   1269             #
   1270             # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
   1271             #
   1272             # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice (a] gmail.com` or `joe (a] example.com`.
   1273             #
   1274             #
   1275             #
   1276             # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app (a] appspot.gserviceaccount.com`.
   1277             #
   1278             # * `group:{emailid}`: An email address that represents a Google group. For example, `admins (a] example.com`.
   1279             #
   1280             #
   1281             #
   1282             # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.
   1283           "A String",
   1284         ],
   1285       },
   1286     ],
   1287     "iamOwned": True or False,
   1288   }</pre>
   1289 </div>
   1290 
   1291 <div class="method">
   1292     <code class="details" id="setLabels">setLabels(project, zone, resource, body, requestId=None)</code>
   1293   <pre>Sets the labels on a disk. To learn more about labels, read the Labeling or Tagging Resources documentation.
   1294 
   1295 Args:
   1296   project: string, Project ID for this request. (required)
   1297   zone: string, The name of the zone for this request. (required)
   1298   resource: string, Name of the resource for this request. (required)
   1299   body: object, The request body. (required)
   1300     The object takes the form of:
   1301 
   1302 {
   1303     "labelFingerprint": "A String", # The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint.
   1304     "labels": { # The labels to set for this resource.
   1305       "a_key": "A String",
   1306     },
   1307   }
   1308 
   1309   requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
   1310 
   1311 Returns:
   1312   An object of the form:
   1313 
   1314     { # An Operation resource, used to manage asynchronous API requests.
   1315     "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
   1316     "clientOperationId": "A String", # [Output Only] Reserved for future use.
   1317     "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
   1318     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
   1319     "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
   1320     "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
   1321     "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
   1322     "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
   1323     "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.
   1324     "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.
   1325     "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
   1326     "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
   1327     "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
   1328     "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
   1329       {
   1330         "message": "A String", # [Output Only] A human-readable description of the warning code.
   1331         "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.
   1332         "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
   1333             # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
   1334           {
   1335             "value": "A String", # [Output Only] A warning data value corresponding to the key.
   1336             "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).
   1337           },
   1338         ],
   1339       },
   1340     ],
   1341     "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com.
   1342     "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
   1343     "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
   1344     "name": "A String", # [Output Only] Name of the resource.
   1345     "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
   1346     "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
   1347       "errors": [ # [Output Only] The array of errors encountered while processing this operation.
   1348         {
   1349           "message": "A String", # [Output Only] An optional, human-readable error message.
   1350           "code": "A String", # [Output Only] The error type identifier for this error.
   1351           "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
   1352         },
   1353       ],
   1354     },
   1355     "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
   1356     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
   1357     "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.
   1358   }</pre>
   1359 </div>
   1360 
   1361 <div class="method">
   1362     <code class="details" id="testIamPermissions">testIamPermissions(project, zone, resource, body)</code>
   1363   <pre>Returns permissions that a caller has on the specified resource.
   1364 
   1365 Args:
   1366   project: string, Project ID for this request. (required)
   1367   zone: string, The name of the zone for this request. (required)
   1368   resource: string, Name of the resource for this request. (required)
   1369   body: object, The request body. (required)
   1370     The object takes the form of:
   1371 
   1372 {
   1373     "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.
   1374       "A String",
   1375     ],
   1376   }
   1377 
   1378 
   1379 Returns:
   1380   An object of the form:
   1381 
   1382     {
   1383     "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
   1384       "A String",
   1385     ],
   1386   }</pre>
   1387 </div>
   1388 
   1389 </body></html>