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.regionDisks.html">regionDisks</a></h1>
     76 <h2>Instance Methods</h2>
     77 <p class="toc_element">
     78   <code><a href="#createSnapshot">createSnapshot(project, region, disk, body, guestFlush=None, requestId=None)</a></code></p>
     79 <p class="firstline">Creates a snapshot of this regional disk.</p>
     80 <p class="toc_element">
     81   <code><a href="#delete">delete(project, region, disk, requestId=None)</a></code></p>
     82 <p class="firstline">Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of 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>
     83 <p class="toc_element">
     84   <code><a href="#get">get(project, region, disk)</a></code></p>
     85 <p class="firstline">Returns a specified regional persistent disk.</p>
     86 <p class="toc_element">
     87   <code><a href="#insert">insert(project, region, body, requestId=None, sourceImage=None)</a></code></p>
     88 <p class="firstline">Creates a persistent regional disk in the specified project using the data included in the request.</p>
     89 <p class="toc_element">
     90   <code><a href="#list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
     91 <p class="firstline">Retrieves the list of persistent disks contained within the specified region.</p>
     92 <p class="toc_element">
     93   <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
     94 <p class="firstline">Retrieves the next page of results.</p>
     95 <p class="toc_element">
     96   <code><a href="#resize">resize(project, region, disk, body, requestId=None)</a></code></p>
     97 <p class="firstline">Resizes the specified regional persistent disk.</p>
     98 <p class="toc_element">
     99   <code><a href="#setLabels">setLabels(project, region, resource, body, requestId=None)</a></code></p>
    100 <p class="firstline">Sets the labels on the target regional disk.</p>
    101 <p class="toc_element">
    102   <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body)</a></code></p>
    103 <p class="firstline">Returns permissions that a caller has on the specified resource.</p>
    104 <h3>Method Details</h3>
    105 <div class="method">
    106     <code class="details" id="createSnapshot">createSnapshot(project, region, disk, body, guestFlush=None, requestId=None)</code>
    107   <pre>Creates a snapshot of this regional disk.
    108 
    109 Args:
    110   project: string, Project ID for this request. (required)
    111   region: string, Name of the region for this request. (required)
    112   disk: string, Name of the regional persistent disk to snapshot. (required)
    113   body: object, The request body. (required)
    114     The object takes the form of:
    115 
    116 { # A persistent disk snapshot resource.
    117     "status": "A String", # [Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING.
    118     "kind": "compute#snapshot", # [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources.
    119     "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.
    120       "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    121       "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    122       "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    123           #
    124           # The key must meet the following requirements before you can provide it to Compute Engine:
    125           # - The key is wrapped using a RSA public key certificate provided by Google.
    126           # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    127           # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    128       "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    129     },
    130     "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.
    131     "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    132     "sourceDisk": "A String", # [Output Only] The source disk used to create this snapshot.
    133     "snapshotEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts the snapshot using a customer-supplied encryption key.
    134         # 
    135         # 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.
    136         # 
    137         # Customer-supplied encryption keys do not protect access to metadata of the disk.
    138         # 
    139         # 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.
    140       "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    141       "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    142       "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    143           #
    144           # The key must meet the following requirements before you can provide it to Compute Engine:
    145           # - The key is wrapped using a RSA public key certificate provided by Google.
    146           # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    147           # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    148       "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    149     },
    150     "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.
    151     "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.
    152         # 
    153         # To see the latest fingerprint, make a get() request to retrieve a snapshot.
    154     "labels": { # Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
    155       "a_key": "A String",
    156     },
    157     "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.
    158     "diskSizeGb": "A String", # [Output Only] Size of the snapshot, specified in GB.
    159     "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).
    160       "A String",
    161     ],
    162     "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
    163     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    164     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    165     "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.
    166   }
    167 
    168   guestFlush: boolean, A parameter
    169   requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
    170 
    171 Returns:
    172   An object of the form:
    173 
    174     { # An Operation resource, used to manage asynchronous API requests.
    175     "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
    176     "clientOperationId": "A String", # [Output Only] Reserved for future use.
    177     "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
    178     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    179     "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
    180     "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
    181     "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
    182     "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
    183     "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.
    184     "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.
    185     "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
    186     "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
    187     "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
    188     "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
    189       {
    190         "message": "A String", # [Output Only] A human-readable description of the warning code.
    191         "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.
    192         "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
    193             # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    194           {
    195             "value": "A String", # [Output Only] A warning data value corresponding to the key.
    196             "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).
    197           },
    198         ],
    199       },
    200     ],
    201     "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com.
    202     "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
    203     "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
    204     "name": "A String", # [Output Only] Name of the resource.
    205     "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
    206     "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
    207       "errors": [ # [Output Only] The array of errors encountered while processing this operation.
    208         {
    209           "message": "A String", # [Output Only] An optional, human-readable error message.
    210           "code": "A String", # [Output Only] The error type identifier for this error.
    211           "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
    212         },
    213       ],
    214     },
    215     "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
    216     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    217     "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.
    218   }</pre>
    219 </div>
    220 
    221 <div class="method">
    222     <code class="details" id="delete">delete(project, region, disk, requestId=None)</code>
    223   <pre>Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of 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.
    224 
    225 Args:
    226   project: string, Project ID for this request. (required)
    227   region: string, Name of the region for this request. (required)
    228   disk: string, Name of the regional persistent disk to delete. (required)
    229   requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
    230 
    231 Returns:
    232   An object of the form:
    233 
    234     { # An Operation resource, used to manage asynchronous API requests.
    235     "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
    236     "clientOperationId": "A String", # [Output Only] Reserved for future use.
    237     "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
    238     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    239     "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
    240     "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
    241     "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
    242     "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
    243     "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.
    244     "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.
    245     "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
    246     "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
    247     "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
    248     "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
    249       {
    250         "message": "A String", # [Output Only] A human-readable description of the warning code.
    251         "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.
    252         "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
    253             # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    254           {
    255             "value": "A String", # [Output Only] A warning data value corresponding to the key.
    256             "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).
    257           },
    258         ],
    259       },
    260     ],
    261     "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com.
    262     "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
    263     "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
    264     "name": "A String", # [Output Only] Name of the resource.
    265     "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
    266     "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
    267       "errors": [ # [Output Only] The array of errors encountered while processing this operation.
    268         {
    269           "message": "A String", # [Output Only] An optional, human-readable error message.
    270           "code": "A String", # [Output Only] The error type identifier for this error.
    271           "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
    272         },
    273       ],
    274     },
    275     "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
    276     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    277     "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.
    278   }</pre>
    279 </div>
    280 
    281 <div class="method">
    282     <code class="details" id="get">get(project, region, disk)</code>
    283   <pre>Returns a specified regional persistent disk.
    284 
    285 Args:
    286   project: string, Project ID for this request. (required)
    287   region: string, Name of the region for this request. (required)
    288   disk: string, Name of the regional persistent disk to return. (required)
    289 
    290 Returns:
    291   An object of the form:
    292 
    293     { # A Disk resource.
    294       "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.
    295         "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    296         "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    297         "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    298             #
    299             # The key must meet the following requirements before you can provide it to Compute Engine:
    300             # - The key is wrapped using a RSA public key certificate provided by Google.
    301             # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    302             # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    303         "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    304       },
    305       "labels": { # Labels to apply to this disk. These can be later modified by the setLabels method.
    306         "a_key": "A String",
    307       },
    308       "licenses": [ # Any applicable publicly visible licenses.
    309         "A String",
    310       ],
    311       "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
    312       "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    313       "users": [ # [Output Only] Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance
    314         "A String",
    315       ],
    316       "diskEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts the disk using a customer-supplied encryption key.
    317           #
    318           # 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).
    319           #
    320           # Customer-supplied encryption keys do not protect access to metadata of the disk.
    321           #
    322           # 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.
    323         "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    324         "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    325         "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    326             #
    327             # The key must meet the following requirements before you can provide it to Compute Engine:
    328             # - The key is wrapped using a RSA public key certificate provided by Google.
    329             # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    330             # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    331         "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    332       },
    333       "zone": "A String", # [Output Only] URL of the zone where the disk resides.
    334       "lastAttachTimestamp": "A String", # [Output Only] Last attach timestamp in RFC3339 text format.
    335       "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.
    336       "status": "A String", # [Output Only] The status of disk creation.
    337       "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:
    338           # - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
    339           # - projects/project/global/snapshots/snapshot
    340           # - global/snapshots/snapshot
    341       "lastDetachTimestamp": "A String", # [Output Only] Last detach timestamp in RFC3339 text format.
    342       "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    343       "storageType": "A String", # [Deprecated] Storage type of the persistent disk.
    344       "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.
    345           #
    346           # To see the latest fingerprint, make a get() request to retrieve a disk.
    347       "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.
    348       "replicaZones": [ # URLs of the zones where the disk should be replicated to. Only applicable for regional resources.
    349         "A String",
    350       ],
    351       "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.
    352       "kind": "compute#disk", # [Output Only] Type of the resource. Always compute#disk for disks.
    353       "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.
    354       "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.
    355           #
    356           # 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.
    357       "region": "A String", # [Output Only] URL of the region where the disk resides. Only applicable for regional resources.
    358       "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.
    359         "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    360         "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    361         "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    362             #
    363             # The key must meet the following requirements before you can provide it to Compute Engine:
    364             # - The key is wrapped using a RSA public key certificate provided by Google.
    365             # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    366             # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    367         "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    368       },
    369       "options": "A String", # Internal use only.
    370       "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
    371       "sourceImage": "A String", # The source image used to create this disk. If the source image is deleted, this field will not be set.
    372           #
    373           # 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:
    374           #
    375           # projects/debian-cloud/global/images/family/debian-8
    376           #
    377           # Alternatively, use a specific version of a public operating system image:
    378           #
    379           # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
    380           #
    381           # To create a disk with a private image that you created, specify the image name in the following format:
    382           #
    383           # global/images/my-private-image
    384           #
    385           # 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:
    386           #
    387           # global/images/family/my-private-family
    388     }</pre>
    389 </div>
    390 
    391 <div class="method">
    392     <code class="details" id="insert">insert(project, region, body, requestId=None, sourceImage=None)</code>
    393   <pre>Creates a persistent regional disk in the specified project using the data included in the request.
    394 
    395 Args:
    396   project: string, Project ID for this request. (required)
    397   region: string, Name of the region for this request. (required)
    398   body: object, The request body. (required)
    399     The object takes the form of:
    400 
    401 { # A Disk resource.
    402     "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.
    403       "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    404       "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    405       "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    406           #
    407           # The key must meet the following requirements before you can provide it to Compute Engine:
    408           # - The key is wrapped using a RSA public key certificate provided by Google.
    409           # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    410           # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    411       "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    412     },
    413     "labels": { # Labels to apply to this disk. These can be later modified by the setLabels method.
    414       "a_key": "A String",
    415     },
    416     "licenses": [ # Any applicable publicly visible licenses.
    417       "A String",
    418     ],
    419     "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
    420     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    421     "users": [ # [Output Only] Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance
    422       "A String",
    423     ],
    424     "diskEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts the disk using a customer-supplied encryption key.
    425         # 
    426         # 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).
    427         # 
    428         # Customer-supplied encryption keys do not protect access to metadata of the disk.
    429         # 
    430         # 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.
    431       "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    432       "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    433       "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    434           #
    435           # The key must meet the following requirements before you can provide it to Compute Engine:
    436           # - The key is wrapped using a RSA public key certificate provided by Google.
    437           # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    438           # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    439       "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    440     },
    441     "zone": "A String", # [Output Only] URL of the zone where the disk resides.
    442     "lastAttachTimestamp": "A String", # [Output Only] Last attach timestamp in RFC3339 text format.
    443     "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.
    444     "status": "A String", # [Output Only] The status of disk creation.
    445     "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:
    446         # - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
    447         # - projects/project/global/snapshots/snapshot
    448         # - global/snapshots/snapshot
    449     "lastDetachTimestamp": "A String", # [Output Only] Last detach timestamp in RFC3339 text format.
    450     "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    451     "storageType": "A String", # [Deprecated] Storage type of the persistent disk.
    452     "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.
    453         # 
    454         # To see the latest fingerprint, make a get() request to retrieve a disk.
    455     "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.
    456     "replicaZones": [ # URLs of the zones where the disk should be replicated to. Only applicable for regional resources.
    457       "A String",
    458     ],
    459     "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.
    460     "kind": "compute#disk", # [Output Only] Type of the resource. Always compute#disk for disks.
    461     "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.
    462     "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.
    463         # 
    464         # 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.
    465     "region": "A String", # [Output Only] URL of the region where the disk resides. Only applicable for regional resources.
    466     "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.
    467       "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    468       "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    469       "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    470           #
    471           # The key must meet the following requirements before you can provide it to Compute Engine:
    472           # - The key is wrapped using a RSA public key certificate provided by Google.
    473           # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    474           # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    475       "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    476     },
    477     "options": "A String", # Internal use only.
    478     "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
    479     "sourceImage": "A String", # The source image used to create this disk. If the source image is deleted, this field will not be set.
    480         # 
    481         # 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:
    482         # 
    483         # projects/debian-cloud/global/images/family/debian-8
    484         # 
    485         # Alternatively, use a specific version of a public operating system image:
    486         # 
    487         # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
    488         # 
    489         # To create a disk with a private image that you created, specify the image name in the following format:
    490         # 
    491         # global/images/my-private-image
    492         # 
    493         # 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:
    494         # 
    495         # global/images/family/my-private-family
    496   }
    497 
    498   requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
    499   sourceImage: string, Optional. Source image to restore onto a disk.
    500 
    501 Returns:
    502   An object of the form:
    503 
    504     { # An Operation resource, used to manage asynchronous API requests.
    505     "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
    506     "clientOperationId": "A String", # [Output Only] Reserved for future use.
    507     "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
    508     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    509     "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
    510     "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
    511     "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
    512     "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
    513     "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.
    514     "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.
    515     "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
    516     "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
    517     "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
    518     "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
    519       {
    520         "message": "A String", # [Output Only] A human-readable description of the warning code.
    521         "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.
    522         "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
    523             # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    524           {
    525             "value": "A String", # [Output Only] A warning data value corresponding to the key.
    526             "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).
    527           },
    528         ],
    529       },
    530     ],
    531     "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com.
    532     "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
    533     "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
    534     "name": "A String", # [Output Only] Name of the resource.
    535     "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
    536     "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
    537       "errors": [ # [Output Only] The array of errors encountered while processing this operation.
    538         {
    539           "message": "A String", # [Output Only] An optional, human-readable error message.
    540           "code": "A String", # [Output Only] The error type identifier for this error.
    541           "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
    542         },
    543       ],
    544     },
    545     "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
    546     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    547     "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.
    548   }</pre>
    549 </div>
    550 
    551 <div class="method">
    552     <code class="details" id="list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
    553   <pre>Retrieves the list of persistent disks contained within the specified region.
    554 
    555 Args:
    556   project: string, Project ID for this request. (required)
    557   region: string, Name of the region for this request. (required)
    558   orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
    559 
    560 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.
    561 
    562 Currently, only sorting by name or creationTimestamp desc is supported.
    563   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)
    564   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.
    565   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.
    566 
    567 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.
    568 
    569 For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
    570 
    571 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.
    572 
    573 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.
    574 
    575 Returns:
    576   An object of the form:
    577 
    578     { # A list of Disk resources.
    579     "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.
    580     "items": [ # A list of Disk resources.
    581       { # A Disk resource.
    582           "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.
    583             "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    584             "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    585             "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    586                 #
    587                 # The key must meet the following requirements before you can provide it to Compute Engine:
    588                 # - The key is wrapped using a RSA public key certificate provided by Google.
    589                 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    590                 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    591             "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    592           },
    593           "labels": { # Labels to apply to this disk. These can be later modified by the setLabels method.
    594             "a_key": "A String",
    595           },
    596           "licenses": [ # Any applicable publicly visible licenses.
    597             "A String",
    598           ],
    599           "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
    600           "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    601           "users": [ # [Output Only] Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance
    602             "A String",
    603           ],
    604           "diskEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts the disk using a customer-supplied encryption key.
    605               #
    606               # 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).
    607               #
    608               # Customer-supplied encryption keys do not protect access to metadata of the disk.
    609               #
    610               # 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.
    611             "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    612             "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    613             "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    614                 #
    615                 # The key must meet the following requirements before you can provide it to Compute Engine:
    616                 # - The key is wrapped using a RSA public key certificate provided by Google.
    617                 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    618                 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    619             "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    620           },
    621           "zone": "A String", # [Output Only] URL of the zone where the disk resides.
    622           "lastAttachTimestamp": "A String", # [Output Only] Last attach timestamp in RFC3339 text format.
    623           "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.
    624           "status": "A String", # [Output Only] The status of disk creation.
    625           "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:
    626               # - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
    627               # - projects/project/global/snapshots/snapshot
    628               # - global/snapshots/snapshot
    629           "lastDetachTimestamp": "A String", # [Output Only] Last detach timestamp in RFC3339 text format.
    630           "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    631           "storageType": "A String", # [Deprecated] Storage type of the persistent disk.
    632           "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.
    633               #
    634               # To see the latest fingerprint, make a get() request to retrieve a disk.
    635           "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.
    636           "replicaZones": [ # URLs of the zones where the disk should be replicated to. Only applicable for regional resources.
    637             "A String",
    638           ],
    639           "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.
    640           "kind": "compute#disk", # [Output Only] Type of the resource. Always compute#disk for disks.
    641           "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.
    642           "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.
    643               #
    644               # 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.
    645           "region": "A String", # [Output Only] URL of the region where the disk resides. Only applicable for regional resources.
    646           "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.
    647             "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
    648             "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
    649             "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    650                 #
    651                 # The key must meet the following requirements before you can provide it to Compute Engine:
    652                 # - The key is wrapped using a RSA public key certificate provided by Google.
    653                 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding.  Get the RSA public key certificate provided by Google at:
    654                 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
    655             "kmsKeyName": "A String", # The name of the encryption key that is stored in Google Cloud KMS.
    656           },
    657           "options": "A String", # Internal use only.
    658           "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
    659           "sourceImage": "A String", # The source image used to create this disk. If the source image is deleted, this field will not be set.
    660               #
    661               # 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:
    662               #
    663               # projects/debian-cloud/global/images/family/debian-8
    664               #
    665               # Alternatively, use a specific version of a public operating system image:
    666               #
    667               # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
    668               #
    669               # To create a disk with a private image that you created, specify the image name in the following format:
    670               #
    671               # global/images/my-private-image
    672               #
    673               # 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:
    674               #
    675               # global/images/family/my-private-family
    676         },
    677     ],
    678     "kind": "compute#diskList", # [Output Only] Type of resource. Always compute#diskList for lists of disks.
    679     "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
    680     "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
    681   }</pre>
    682 </div>
    683 
    684 <div class="method">
    685     <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
    686   <pre>Retrieves the next page of results.
    687 
    688 Args:
    689   previous_request: The request for the previous page. (required)
    690   previous_response: The response from the request for the previous page. (required)
    691 
    692 Returns:
    693   A request object that you can call 'execute()' on to request the next
    694   page. Returns None if there are no more items in the collection.
    695     </pre>
    696 </div>
    697 
    698 <div class="method">
    699     <code class="details" id="resize">resize(project, region, disk, body, requestId=None)</code>
    700   <pre>Resizes the specified regional persistent disk.
    701 
    702 Args:
    703   project: string, The project ID for this request. (required)
    704   region: string, Name of the region for this request. (required)
    705   disk: string, Name of the regional persistent disk. (required)
    706   body: object, The request body. (required)
    707     The object takes the form of:
    708 
    709 {
    710     "sizeGb": "A String", # The new size of the regional persistent disk, which is specified in GB.
    711   }
    712 
    713   requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
    714 
    715 Returns:
    716   An object of the form:
    717 
    718     { # An Operation resource, used to manage asynchronous API requests.
    719     "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
    720     "clientOperationId": "A String", # [Output Only] Reserved for future use.
    721     "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
    722     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    723     "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
    724     "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
    725     "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
    726     "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
    727     "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.
    728     "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.
    729     "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
    730     "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
    731     "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
    732     "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
    733       {
    734         "message": "A String", # [Output Only] A human-readable description of the warning code.
    735         "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.
    736         "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
    737             # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    738           {
    739             "value": "A String", # [Output Only] A warning data value corresponding to the key.
    740             "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).
    741           },
    742         ],
    743       },
    744     ],
    745     "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com.
    746     "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
    747     "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
    748     "name": "A String", # [Output Only] Name of the resource.
    749     "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
    750     "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
    751       "errors": [ # [Output Only] The array of errors encountered while processing this operation.
    752         {
    753           "message": "A String", # [Output Only] An optional, human-readable error message.
    754           "code": "A String", # [Output Only] The error type identifier for this error.
    755           "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
    756         },
    757       ],
    758     },
    759     "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
    760     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    761     "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.
    762   }</pre>
    763 </div>
    764 
    765 <div class="method">
    766     <code class="details" id="setLabels">setLabels(project, region, resource, body, requestId=None)</code>
    767   <pre>Sets the labels on the target regional disk.
    768 
    769 Args:
    770   project: string, Project ID for this request. (required)
    771   region: string, The region for this request. (required)
    772   resource: string, Name of the resource for this request. (required)
    773   body: object, The request body. (required)
    774     The object takes the form of:
    775 
    776 {
    777     "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.
    778     "labels": { # The labels to set for this resource.
    779       "a_key": "A String",
    780     },
    781   }
    782 
    783   requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
    784 
    785 Returns:
    786   An object of the form:
    787 
    788     { # An Operation resource, used to manage asynchronous API requests.
    789     "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
    790     "clientOperationId": "A String", # [Output Only] Reserved for future use.
    791     "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
    792     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    793     "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
    794     "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
    795     "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
    796     "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
    797     "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.
    798     "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.
    799     "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
    800     "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
    801     "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
    802     "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
    803       {
    804         "message": "A String", # [Output Only] A human-readable description of the warning code.
    805         "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.
    806         "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
    807             # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    808           {
    809             "value": "A String", # [Output Only] A warning data value corresponding to the key.
    810             "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).
    811           },
    812         ],
    813       },
    814     ],
    815     "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com.
    816     "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
    817     "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
    818     "name": "A String", # [Output Only] Name of the resource.
    819     "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
    820     "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
    821       "errors": [ # [Output Only] The array of errors encountered while processing this operation.
    822         {
    823           "message": "A String", # [Output Only] An optional, human-readable error message.
    824           "code": "A String", # [Output Only] The error type identifier for this error.
    825           "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
    826         },
    827       ],
    828     },
    829     "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
    830     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    831     "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.
    832   }</pre>
    833 </div>
    834 
    835 <div class="method">
    836     <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body)</code>
    837   <pre>Returns permissions that a caller has on the specified resource.
    838 
    839 Args:
    840   project: string, Project ID for this request. (required)
    841   region: string, The name of the region for this request. (required)
    842   resource: string, Name of the resource for this request. (required)
    843   body: object, The request body. (required)
    844     The object takes the form of:
    845 
    846 {
    847     "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.
    848       "A String",
    849     ],
    850   }
    851 
    852 
    853 Returns:
    854   An object of the form:
    855 
    856     {
    857     "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
    858       "A String",
    859     ],
    860   }</pre>
    861 </div>
    862 
    863 </body></html>