blob: c75b0a66b7dfe083123df3e9b6cca41d4a026d1a [file] [log] [blame]
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="compute_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">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040084 <code><a href="#createSnapshot">createSnapshot(project, zone, disk, body, guestFlush=None, requestId=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070085<p class="firstline">Creates a snapshot of a specified persistent disk.</p>
86<p class="toc_element">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040087 <code><a href="#delete">delete(project, zone, disk, requestId=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070088<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">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040093 <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>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070097<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">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400105 <code><a href="#resize">resize(project, zone, disk, body, requestId=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700106<p class="firstline">Resizes the specified persistent disk.</p>
107<p class="toc_element">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400108 <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>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700112<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
121Args:
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
125You 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
127Currently, only sorting by name or creationTimestamp desc is supported.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400128 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)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700129 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
132The 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
134For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
135
136You 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
138To 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
140Returns:
141 An object of the form:
142
143 {
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400144 "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)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700145 "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 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400159 "labels": { # Labels to apply to this disk. These can be later modified by the setLabels method.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700160 "a_key": "A String",
161 },
162 "licenses": [ # Any applicable publicly visible licenses.
163 "A String",
164 ],
165 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
166 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
167 "users": [ # [Output Only] Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance
168 "A String",
169 ],
170 "diskEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts the disk using a customer-supplied encryption key.
171 #
172 # 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).
173 #
174 # Customer-supplied encryption keys do not protect access to metadata of the disk.
175 #
176 # 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.
177 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
178 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
179 "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
180 #
181 # The key must meet the following requirements before you can provide it to Compute Engine:
182 # - The key is wrapped using a RSA public key certificate provided by Google.
183 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Get the RSA public key certificate provided by Google at:
184 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
185 },
186 "zone": "A String", # [Output Only] URL of the zone where the disk resides.
187 "lastAttachTimestamp": "A String", # [Output Only] Last attach timestamp in RFC3339 text format.
188 "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.
189 "status": "A String", # [Output Only] The status of disk creation.
190 "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:
191 # - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
192 # - projects/project/global/snapshots/snapshot
193 # - global/snapshots/snapshot
194 "lastDetachTimestamp": "A String", # [Output Only] Last detach timestamp in RFC3339 text format.
195 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
196 "storageType": "A String", # [Deprecated] Storage type of the persistent disk.
197 "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.
198 #
199 # To see the latest fingerprint, make a get() request to retrieve a disk.
200 "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.
201 "replicaZones": [ # URLs of the zones where the disk should be replicated to. Only applicable for regional resources.
202 "A String",
203 ],
204 "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.
205 "kind": "compute#disk", # [Output Only] Type of the resource. Always compute#disk for disks.
206 "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.
207 "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.
208 #
209 # 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.
210 "region": "A String", # [Output Only] URL of the region where the disk resides. Only applicable for regional resources.
211 "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.
212 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
213 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
214 "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
215 #
216 # The key must meet the following requirements before you can provide it to Compute Engine:
217 # - The key is wrapped using a RSA public key certificate provided by Google.
218 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Get the RSA public key certificate provided by Google at:
219 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
220 },
221 "options": "A String", # Internal use only.
222 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
223 "sourceImage": "A String", # The source image used to create this disk. If the source image is deleted, this field will not be set.
224 #
225 # 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:
226 #
227 # projects/debian-cloud/global/images/family/debian-8
228 #
229 # Alternatively, use a specific version of a public operating system image:
230 #
231 # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
232 #
233 # To create a disk with a private image that you created, specify the image name in the following format:
234 #
235 # global/images/my-private-image
236 #
237 # 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:
238 #
239 # global/images/family/my-private-family
240 },
241 ],
242 "warning": { # [Output Only] Informational warning which replaces the list of disks when the list is empty.
243 "message": "A String", # [Output Only] A human-readable description of the warning code.
244 "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.
245 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
246 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
247 {
248 "value": "A String", # [Output Only] A warning data value corresponding to the key.
249 "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).
250 },
251 ],
252 },
253 },
254 },
255 "kind": "compute#diskAggregatedList", # [Output Only] Type of resource. Always compute#diskAggregatedList for aggregated lists of persistent disks.
256 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
257 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
258 }</pre>
259</div>
260
261<div class="method">
262 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
263 <pre>Retrieves the next page of results.
264
265Args:
266 previous_request: The request for the previous page. (required)
267 previous_response: The response from the request for the previous page. (required)
268
269Returns:
270 A request object that you can call 'execute()' on to request the next
271 page. Returns None if there are no more items in the collection.
272 </pre>
273</div>
274
275<div class="method">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400276 <code class="details" id="createSnapshot">createSnapshot(project, zone, disk, body, guestFlush=None, requestId=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700277 <pre>Creates a snapshot of a specified persistent disk.
278
279Args:
280 project: string, Project ID for this request. (required)
281 zone: string, The name of the zone for this request. (required)
282 disk: string, Name of the persistent disk to snapshot. (required)
283 body: object, The request body. (required)
284 The object takes the form of:
285
286{ # A persistent disk snapshot resource.
287 "status": "A String", # [Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING.
288 "kind": "compute#snapshot", # [Output Only] Type of the resource. Always compute#snapshot for Snapshot resources.
289 "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.
290 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
291 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
292 "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
293 #
294 # The key must meet the following requirements before you can provide it to Compute Engine:
295 # - The key is wrapped using a RSA public key certificate provided by Google.
296 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Get the RSA public key certificate provided by Google at:
297 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
298 },
299 "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.
300 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
301 "sourceDisk": "A String", # [Output Only] The source disk used to create this snapshot.
302 "snapshotEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts the snapshot using a customer-supplied encryption key.
303 #
304 # 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.
305 #
306 # Customer-supplied encryption keys do not protect access to metadata of the disk.
307 #
308 # 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.
309 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
310 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
311 "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
312 #
313 # The key must meet the following requirements before you can provide it to Compute Engine:
314 # - The key is wrapped using a RSA public key certificate provided by Google.
315 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Get the RSA public key certificate provided by Google at:
316 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
317 },
318 "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.
319 "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.
320 #
321 # To see the latest fingerprint, make a get() request to retrieve a snapshot.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400322 "labels": { # Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700323 "a_key": "A String",
324 },
325 "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.
326 "diskSizeGb": "A String", # [Output Only] Size of the snapshot, specified in GB.
327 "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).
328 "A String",
329 ],
330 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
331 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
332 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
333 "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.
334 }
335
336 guestFlush: boolean, A parameter
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400337 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700338
339Returns:
340 An object of the form:
341
342 { # An Operation resource, used to manage asynchronous API requests.
343 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
344 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400345 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700346 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
347 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
348 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
349 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
350 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
351 "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.
352 "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.
353 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
354 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
355 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
356 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
357 {
358 "message": "A String", # [Output Only] A human-readable description of the warning code.
359 "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.
360 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
361 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
362 {
363 "value": "A String", # [Output Only] A warning data value corresponding to the key.
364 "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).
365 },
366 ],
367 },
368 ],
369 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
370 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
371 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
372 "name": "A String", # [Output Only] Name of the resource.
373 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
374 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
375 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
376 {
377 "message": "A String", # [Output Only] An optional, human-readable error message.
378 "code": "A String", # [Output Only] The error type identifier for this error.
379 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
380 },
381 ],
382 },
383 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
384 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800385 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700386 }</pre>
387</div>
388
389<div class="method">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400390 <code class="details" id="delete">delete(project, zone, disk, requestId=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700391 <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.
392
393Args:
394 project: string, Project ID for this request. (required)
395 zone: string, The name of the zone for this request. (required)
396 disk: string, Name of the persistent disk to delete. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400397 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700398
399Returns:
400 An object of the form:
401
402 { # An Operation resource, used to manage asynchronous API requests.
403 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
404 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400405 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700406 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
407 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
408 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
409 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
410 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
411 "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.
412 "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.
413 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
414 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
415 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
416 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
417 {
418 "message": "A String", # [Output Only] A human-readable description of the warning code.
419 "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.
420 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
421 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
422 {
423 "value": "A String", # [Output Only] A warning data value corresponding to the key.
424 "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).
425 },
426 ],
427 },
428 ],
429 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
430 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
431 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
432 "name": "A String", # [Output Only] Name of the resource.
433 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
434 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
435 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
436 {
437 "message": "A String", # [Output Only] An optional, human-readable error message.
438 "code": "A String", # [Output Only] The error type identifier for this error.
439 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
440 },
441 ],
442 },
443 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
444 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800445 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700446 }</pre>
447</div>
448
449<div class="method">
450 <code class="details" id="get">get(project, zone, disk)</code>
451 <pre>Returns a specified persistent disk. Get a list of available persistent disks by making a list() request.
452
453Args:
454 project: string, Project ID for this request. (required)
455 zone: string, The name of the zone for this request. (required)
456 disk: string, Name of the persistent disk to return. (required)
457
458Returns:
459 An object of the form:
460
461 { # A Disk resource.
462 "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.
463 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
464 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
465 "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
466 #
467 # The key must meet the following requirements before you can provide it to Compute Engine:
468 # - The key is wrapped using a RSA public key certificate provided by Google.
469 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Get the RSA public key certificate provided by Google at:
470 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
471 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400472 "labels": { # Labels to apply to this disk. These can be later modified by the setLabels method.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700473 "a_key": "A String",
474 },
475 "licenses": [ # Any applicable publicly visible licenses.
476 "A String",
477 ],
478 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
479 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
480 "users": [ # [Output Only] Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance
481 "A String",
482 ],
483 "diskEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts the disk using a customer-supplied encryption key.
484 #
485 # 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).
486 #
487 # Customer-supplied encryption keys do not protect access to metadata of the disk.
488 #
489 # 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.
490 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
491 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
492 "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
493 #
494 # The key must meet the following requirements before you can provide it to Compute Engine:
495 # - The key is wrapped using a RSA public key certificate provided by Google.
496 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Get the RSA public key certificate provided by Google at:
497 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
498 },
499 "zone": "A String", # [Output Only] URL of the zone where the disk resides.
500 "lastAttachTimestamp": "A String", # [Output Only] Last attach timestamp in RFC3339 text format.
501 "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.
502 "status": "A String", # [Output Only] The status of disk creation.
503 "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:
504 # - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
505 # - projects/project/global/snapshots/snapshot
506 # - global/snapshots/snapshot
507 "lastDetachTimestamp": "A String", # [Output Only] Last detach timestamp in RFC3339 text format.
508 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
509 "storageType": "A String", # [Deprecated] Storage type of the persistent disk.
510 "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.
511 #
512 # To see the latest fingerprint, make a get() request to retrieve a disk.
513 "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.
514 "replicaZones": [ # URLs of the zones where the disk should be replicated to. Only applicable for regional resources.
515 "A String",
516 ],
517 "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.
518 "kind": "compute#disk", # [Output Only] Type of the resource. Always compute#disk for disks.
519 "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.
520 "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.
521 #
522 # 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.
523 "region": "A String", # [Output Only] URL of the region where the disk resides. Only applicable for regional resources.
524 "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.
525 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
526 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
527 "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
528 #
529 # The key must meet the following requirements before you can provide it to Compute Engine:
530 # - The key is wrapped using a RSA public key certificate provided by Google.
531 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Get the RSA public key certificate provided by Google at:
532 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
533 },
534 "options": "A String", # Internal use only.
535 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
536 "sourceImage": "A String", # The source image used to create this disk. If the source image is deleted, this field will not be set.
537 #
538 # 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:
539 #
540 # projects/debian-cloud/global/images/family/debian-8
541 #
542 # Alternatively, use a specific version of a public operating system image:
543 #
544 # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
545 #
546 # To create a disk with a private image that you created, specify the image name in the following format:
547 #
548 # global/images/my-private-image
549 #
550 # 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:
551 #
552 # global/images/family/my-private-family
553 }</pre>
554</div>
555
556<div class="method">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400557 <code class="details" id="getIamPolicy">getIamPolicy(project, zone, resource)</code>
558 <pre>Gets the access control policy for a resource. May be empty if no such policy or resource exists.
559
560Args:
561 project: string, Project ID for this request. (required)
562 zone: string, The name of the zone for this request. (required)
563 resource: string, Name of the resource for this request. (required)
564
565Returns:
566 An object of the form:
567
568 { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.
569 #
570 #
571 #
572 # 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.
573 #
574 # **Example**
575 #
576 # { "bindings": [ { "role": "roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role": "roles/viewer", "members": ["user:sean@example.com"] } ] }
577 #
578 # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam).
579 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
580 { # Specifies the audit configuration for a service. It consists of which permission types are logged, and what identities, if any, are exempted from logging. An AuditConifg must have one or more AuditLogConfigs.
581 #
582 # 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. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice@googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } ] } ] } For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.com from DATA_WRITE logging.
583 "exemptedMembers": [
584 "A String",
585 ],
586 "auditLogConfigs": [ # The configuration for logging of each type of permission.
587 { # Provides the configuration for logging a type of permissions. Example:
588 #
589 # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
590 #
591 # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail.com from DATA_READ logging.
592 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
593 "A String",
594 ],
595 "logType": "A String", # The log type that this config enables.
596 },
597 ],
598 "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `resourcemanager`, `storage`, `compute`. `allServices` is a special value that covers all services.
599 },
600 ],
601 "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.
602 { # A rule to be applied in a Policy.
603 "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
604 { # Specifies what kind of log the caller must write
605 "counter": { # Options for counters # Counter options.
606 "field": "A String", # The field value to attribute.
607 "metric": "A String", # The metric to update.
608 },
609 },
610 ],
611 "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
612 "A String",
613 ],
614 "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.
615 "A String",
616 ],
617 "action": "A String", # Required
618 "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.
619 "A String",
620 ],
621 "conditions": [ # Additional restrictions that must be met
622 { # A condition to be met.
623 "iam": "A String", # Trusted attributes supplied by the IAM system.
624 "svc": "A String", # Trusted attributes discharged by the service.
625 "value": "A String", # DEPRECATED. Use 'values' instead.
626 "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
627 "values": [ # The objects of the condition. This is mutually exclusive with 'value'.
628 "A String",
629 ],
630 "op": "A String", # An operator to apply the subject with.
631 },
632 ],
633 "description": "A String", # Human-readable description of the rule.
634 },
635 ],
636 "version": 42, # Version of the `Policy`. The default version is 0.
637 "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.
638 #
639 # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
640 "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.
641 { # Associates `members` with a `role`.
642 "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
643 "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
644 #
645 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
646 #
647 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
648 #
649 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` or `joe@example.com`.
650 #
651 #
652 #
653 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
654 #
655 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
656 #
657 # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.
658 "A String",
659 ],
660 },
661 ],
662 "iamOwned": True or False,
663 }</pre>
664</div>
665
666<div class="method">
667 <code class="details" id="insert">insert(project, zone, body, requestId=None, sourceImage=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700668 <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.
669
670Args:
671 project: string, Project ID for this request. (required)
672 zone: string, The name of the zone for this request. (required)
673 body: object, The request body. (required)
674 The object takes the form of:
675
676{ # A Disk resource.
677 "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.
678 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
679 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
680 "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
681 #
682 # The key must meet the following requirements before you can provide it to Compute Engine:
683 # - The key is wrapped using a RSA public key certificate provided by Google.
684 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Get the RSA public key certificate provided by Google at:
685 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
686 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400687 "labels": { # Labels to apply to this disk. These can be later modified by the setLabels method.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700688 "a_key": "A String",
689 },
690 "licenses": [ # Any applicable publicly visible licenses.
691 "A String",
692 ],
693 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
694 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
695 "users": [ # [Output Only] Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance
696 "A String",
697 ],
698 "diskEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts the disk using a customer-supplied encryption key.
699 #
700 # 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).
701 #
702 # Customer-supplied encryption keys do not protect access to metadata of the disk.
703 #
704 # 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.
705 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
706 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
707 "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
708 #
709 # The key must meet the following requirements before you can provide it to Compute Engine:
710 # - The key is wrapped using a RSA public key certificate provided by Google.
711 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Get the RSA public key certificate provided by Google at:
712 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
713 },
714 "zone": "A String", # [Output Only] URL of the zone where the disk resides.
715 "lastAttachTimestamp": "A String", # [Output Only] Last attach timestamp in RFC3339 text format.
716 "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.
717 "status": "A String", # [Output Only] The status of disk creation.
718 "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:
719 # - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
720 # - projects/project/global/snapshots/snapshot
721 # - global/snapshots/snapshot
722 "lastDetachTimestamp": "A String", # [Output Only] Last detach timestamp in RFC3339 text format.
723 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
724 "storageType": "A String", # [Deprecated] Storage type of the persistent disk.
725 "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.
726 #
727 # To see the latest fingerprint, make a get() request to retrieve a disk.
728 "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.
729 "replicaZones": [ # URLs of the zones where the disk should be replicated to. Only applicable for regional resources.
730 "A String",
731 ],
732 "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.
733 "kind": "compute#disk", # [Output Only] Type of the resource. Always compute#disk for disks.
734 "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.
735 "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.
736 #
737 # 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.
738 "region": "A String", # [Output Only] URL of the region where the disk resides. Only applicable for regional resources.
739 "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.
740 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
741 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
742 "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
743 #
744 # The key must meet the following requirements before you can provide it to Compute Engine:
745 # - The key is wrapped using a RSA public key certificate provided by Google.
746 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Get the RSA public key certificate provided by Google at:
747 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
748 },
749 "options": "A String", # Internal use only.
750 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
751 "sourceImage": "A String", # The source image used to create this disk. If the source image is deleted, this field will not be set.
752 #
753 # 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:
754 #
755 # projects/debian-cloud/global/images/family/debian-8
756 #
757 # Alternatively, use a specific version of a public operating system image:
758 #
759 # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
760 #
761 # To create a disk with a private image that you created, specify the image name in the following format:
762 #
763 # global/images/my-private-image
764 #
765 # 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:
766 #
767 # global/images/family/my-private-family
768 }
769
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400770 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700771 sourceImage: string, Optional. Source image to restore onto a disk.
772
773Returns:
774 An object of the form:
775
776 { # An Operation resource, used to manage asynchronous API requests.
777 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
778 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400779 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700780 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
781 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
782 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
783 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
784 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
785 "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.
786 "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.
787 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
788 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
789 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
790 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
791 {
792 "message": "A String", # [Output Only] A human-readable description of the warning code.
793 "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.
794 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
795 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
796 {
797 "value": "A String", # [Output Only] A warning data value corresponding to the key.
798 "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).
799 },
800 ],
801 },
802 ],
803 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
804 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
805 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
806 "name": "A String", # [Output Only] Name of the resource.
807 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
808 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
809 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
810 {
811 "message": "A String", # [Output Only] An optional, human-readable error message.
812 "code": "A String", # [Output Only] The error type identifier for this error.
813 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
814 },
815 ],
816 },
817 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
818 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800819 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700820 }</pre>
821</div>
822
823<div class="method">
824 <code class="details" id="list">list(project, zone, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
825 <pre>Retrieves a list of persistent disks contained within the specified zone.
826
827Args:
828 project: string, Project ID for this request. (required)
829 zone: string, The name of the zone for this request. (required)
830 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
831
832You 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.
833
834Currently, only sorting by name or creationTimestamp desc is supported.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400835 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)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700836 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.
837 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.
838
839The 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.
840
841For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
842
843You 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.
844
845To 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.
846
847Returns:
848 An object of the form:
849
850 { # A list of Disk resources.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400851 "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.
852 "items": [ # A list of Disk resources.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700853 { # A Disk resource.
854 "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.
855 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
856 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
857 "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
858 #
859 # The key must meet the following requirements before you can provide it to Compute Engine:
860 # - The key is wrapped using a RSA public key certificate provided by Google.
861 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Get the RSA public key certificate provided by Google at:
862 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
863 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400864 "labels": { # Labels to apply to this disk. These can be later modified by the setLabels method.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700865 "a_key": "A String",
866 },
867 "licenses": [ # Any applicable publicly visible licenses.
868 "A String",
869 ],
870 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
871 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
872 "users": [ # [Output Only] Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance
873 "A String",
874 ],
875 "diskEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts the disk using a customer-supplied encryption key.
876 #
877 # 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).
878 #
879 # Customer-supplied encryption keys do not protect access to metadata of the disk.
880 #
881 # 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.
882 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
883 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
884 "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
885 #
886 # The key must meet the following requirements before you can provide it to Compute Engine:
887 # - The key is wrapped using a RSA public key certificate provided by Google.
888 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Get the RSA public key certificate provided by Google at:
889 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
890 },
891 "zone": "A String", # [Output Only] URL of the zone where the disk resides.
892 "lastAttachTimestamp": "A String", # [Output Only] Last attach timestamp in RFC3339 text format.
893 "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.
894 "status": "A String", # [Output Only] The status of disk creation.
895 "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:
896 # - https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
897 # - projects/project/global/snapshots/snapshot
898 # - global/snapshots/snapshot
899 "lastDetachTimestamp": "A String", # [Output Only] Last detach timestamp in RFC3339 text format.
900 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
901 "storageType": "A String", # [Deprecated] Storage type of the persistent disk.
902 "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.
903 #
904 # To see the latest fingerprint, make a get() request to retrieve a disk.
905 "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.
906 "replicaZones": [ # URLs of the zones where the disk should be replicated to. Only applicable for regional resources.
907 "A String",
908 ],
909 "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.
910 "kind": "compute#disk", # [Output Only] Type of the resource. Always compute#disk for disks.
911 "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.
912 "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.
913 #
914 # 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.
915 "region": "A String", # [Output Only] URL of the region where the disk resides. Only applicable for regional resources.
916 "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.
917 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
918 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
919 "rsaEncryptedKey": "A String", # Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
920 #
921 # The key must meet the following requirements before you can provide it to Compute Engine:
922 # - The key is wrapped using a RSA public key certificate provided by Google.
923 # - After being wrapped, the key must be encoded in RFC 4648 base64 encoding. Get the RSA public key certificate provided by Google at:
924 # https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem
925 },
926 "options": "A String", # Internal use only.
927 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
928 "sourceImage": "A String", # The source image used to create this disk. If the source image is deleted, this field will not be set.
929 #
930 # 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:
931 #
932 # projects/debian-cloud/global/images/family/debian-8
933 #
934 # Alternatively, use a specific version of a public operating system image:
935 #
936 # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
937 #
938 # To create a disk with a private image that you created, specify the image name in the following format:
939 #
940 # global/images/my-private-image
941 #
942 # 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:
943 #
944 # global/images/family/my-private-family
945 },
946 ],
947 "kind": "compute#diskList", # [Output Only] Type of resource. Always compute#diskList for lists of disks.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400948 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700949 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
950 }</pre>
951</div>
952
953<div class="method">
954 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
955 <pre>Retrieves the next page of results.
956
957Args:
958 previous_request: The request for the previous page. (required)
959 previous_response: The response from the request for the previous page. (required)
960
961Returns:
962 A request object that you can call 'execute()' on to request the next
963 page. Returns None if there are no more items in the collection.
964 </pre>
965</div>
966
967<div class="method">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400968 <code class="details" id="resize">resize(project, zone, disk, body, requestId=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700969 <pre>Resizes the specified persistent disk.
970
971Args:
972 project: string, Project ID for this request. (required)
973 zone: string, The name of the zone for this request. (required)
974 disk: string, The name of the persistent disk. (required)
975 body: object, The request body. (required)
976 The object takes the form of:
977
978{
979 "sizeGb": "A String", # The new size of the persistent disk, which is specified in GB.
980 }
981
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400982 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700983
984Returns:
985 An object of the form:
986
987 { # An Operation resource, used to manage asynchronous API requests.
988 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
989 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400990 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700991 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
992 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
993 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
994 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
995 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
996 "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.
997 "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.
998 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
999 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1000 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
1001 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1002 {
1003 "message": "A String", # [Output Only] A human-readable description of the warning code.
1004 "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.
1005 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1006 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
1007 {
1008 "value": "A String", # [Output Only] A warning data value corresponding to the key.
1009 "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).
1010 },
1011 ],
1012 },
1013 ],
1014 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
1015 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1016 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
1017 "name": "A String", # [Output Only] Name of the resource.
1018 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
1019 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1020 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
1021 {
1022 "message": "A String", # [Output Only] An optional, human-readable error message.
1023 "code": "A String", # [Output Only] The error type identifier for this error.
1024 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1025 },
1026 ],
1027 },
1028 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1029 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001030 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001031 }</pre>
1032</div>
1033
1034<div class="method">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001035 <code class="details" id="setIamPolicy">setIamPolicy(project, zone, resource, body)</code>
1036 <pre>Sets the access control policy on the specified resource. Replaces any existing policy.
1037
1038Args:
1039 project: string, Project ID for this request. (required)
1040 zone: string, The name of the zone for this request. (required)
1041 resource: string, Name of the resource for this request. (required)
1042 body: object, The request body. (required)
1043 The object takes the form of:
1044
1045{ # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.
1046 #
1047 #
1048 #
1049 # 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.
1050 #
1051 # **Example**
1052 #
1053 # { "bindings": [ { "role": "roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role": "roles/viewer", "members": ["user:sean@example.com"] } ] }
1054 #
1055 # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam).
1056 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
1057 { # Specifies the audit configuration for a service. It consists of which permission types are logged, and what identities, if any, are exempted from logging. An AuditConifg must have one or more AuditLogConfigs.
1058 #
1059 # 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. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice@googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } ] } ] } For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.com from DATA_WRITE logging.
1060 "exemptedMembers": [
1061 "A String",
1062 ],
1063 "auditLogConfigs": [ # The configuration for logging of each type of permission.
1064 { # Provides the configuration for logging a type of permissions. Example:
1065 #
1066 # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
1067 #
1068 # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail.com from DATA_READ logging.
1069 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
1070 "A String",
1071 ],
1072 "logType": "A String", # The log type that this config enables.
1073 },
1074 ],
1075 "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `resourcemanager`, `storage`, `compute`. `allServices` is a special value that covers all services.
1076 },
1077 ],
1078 "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.
1079 { # A rule to be applied in a Policy.
1080 "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
1081 { # Specifies what kind of log the caller must write
1082 "counter": { # Options for counters # Counter options.
1083 "field": "A String", # The field value to attribute.
1084 "metric": "A String", # The metric to update.
1085 },
1086 },
1087 ],
1088 "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
1089 "A String",
1090 ],
1091 "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.
1092 "A String",
1093 ],
1094 "action": "A String", # Required
1095 "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.
1096 "A String",
1097 ],
1098 "conditions": [ # Additional restrictions that must be met
1099 { # A condition to be met.
1100 "iam": "A String", # Trusted attributes supplied by the IAM system.
1101 "svc": "A String", # Trusted attributes discharged by the service.
1102 "value": "A String", # DEPRECATED. Use 'values' instead.
1103 "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
1104 "values": [ # The objects of the condition. This is mutually exclusive with 'value'.
1105 "A String",
1106 ],
1107 "op": "A String", # An operator to apply the subject with.
1108 },
1109 ],
1110 "description": "A String", # Human-readable description of the rule.
1111 },
1112 ],
1113 "version": 42, # Version of the `Policy`. The default version is 0.
1114 "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.
1115 #
1116 # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
1117 "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.
1118 { # Associates `members` with a `role`.
1119 "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1120 "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
1121 #
1122 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
1123 #
1124 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
1125 #
1126 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` or `joe@example.com`.
1127 #
1128 #
1129 #
1130 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
1131 #
1132 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
1133 #
1134 # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.
1135 "A String",
1136 ],
1137 },
1138 ],
1139 "iamOwned": True or False,
1140}
1141
1142
1143Returns:
1144 An object of the form:
1145
1146 { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.
1147 #
1148 #
1149 #
1150 # 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.
1151 #
1152 # **Example**
1153 #
1154 # { "bindings": [ { "role": "roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role": "roles/viewer", "members": ["user:sean@example.com"] } ] }
1155 #
1156 # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam).
1157 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
1158 { # Specifies the audit configuration for a service. It consists of which permission types are logged, and what identities, if any, are exempted from logging. An AuditConifg must have one or more AuditLogConfigs.
1159 #
1160 # 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. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice@googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } ] } ] } For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.com from DATA_WRITE logging.
1161 "exemptedMembers": [
1162 "A String",
1163 ],
1164 "auditLogConfigs": [ # The configuration for logging of each type of permission.
1165 { # Provides the configuration for logging a type of permissions. Example:
1166 #
1167 # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
1168 #
1169 # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail.com from DATA_READ logging.
1170 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
1171 "A String",
1172 ],
1173 "logType": "A String", # The log type that this config enables.
1174 },
1175 ],
1176 "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `resourcemanager`, `storage`, `compute`. `allServices` is a special value that covers all services.
1177 },
1178 ],
1179 "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.
1180 { # A rule to be applied in a Policy.
1181 "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
1182 { # Specifies what kind of log the caller must write
1183 "counter": { # Options for counters # Counter options.
1184 "field": "A String", # The field value to attribute.
1185 "metric": "A String", # The metric to update.
1186 },
1187 },
1188 ],
1189 "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
1190 "A String",
1191 ],
1192 "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.
1193 "A String",
1194 ],
1195 "action": "A String", # Required
1196 "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.
1197 "A String",
1198 ],
1199 "conditions": [ # Additional restrictions that must be met
1200 { # A condition to be met.
1201 "iam": "A String", # Trusted attributes supplied by the IAM system.
1202 "svc": "A String", # Trusted attributes discharged by the service.
1203 "value": "A String", # DEPRECATED. Use 'values' instead.
1204 "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
1205 "values": [ # The objects of the condition. This is mutually exclusive with 'value'.
1206 "A String",
1207 ],
1208 "op": "A String", # An operator to apply the subject with.
1209 },
1210 ],
1211 "description": "A String", # Human-readable description of the rule.
1212 },
1213 ],
1214 "version": 42, # Version of the `Policy`. The default version is 0.
1215 "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.
1216 #
1217 # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
1218 "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.
1219 { # Associates `members` with a `role`.
1220 "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1221 "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
1222 #
1223 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
1224 #
1225 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
1226 #
1227 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` or `joe@example.com`.
1228 #
1229 #
1230 #
1231 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
1232 #
1233 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
1234 #
1235 # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.
1236 "A String",
1237 ],
1238 },
1239 ],
1240 "iamOwned": True or False,
1241 }</pre>
1242</div>
1243
1244<div class="method">
1245 <code class="details" id="setLabels">setLabels(project, zone, resource, body, requestId=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001246 <pre>Sets the labels on a disk. To learn more about labels, read the Labeling or Tagging Resources documentation.
1247
1248Args:
1249 project: string, Project ID for this request. (required)
1250 zone: string, The name of the zone for this request. (required)
1251 resource: string, Name of the resource for this request. (required)
1252 body: object, The request body. (required)
1253 The object takes the form of:
1254
1255{
1256 "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.
1257 "labels": { # The labels to set for this resource.
1258 "a_key": "A String",
1259 },
1260 }
1261
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001262 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001263
1264Returns:
1265 An object of the form:
1266
1267 { # An Operation resource, used to manage asynchronous API requests.
1268 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1269 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001270 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001271 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1272 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
1273 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1274 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
1275 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
1276 "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.
1277 "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.
1278 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
1279 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1280 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
1281 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1282 {
1283 "message": "A String", # [Output Only] A human-readable description of the warning code.
1284 "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.
1285 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1286 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
1287 {
1288 "value": "A String", # [Output Only] A warning data value corresponding to the key.
1289 "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).
1290 },
1291 ],
1292 },
1293 ],
1294 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
1295 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1296 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
1297 "name": "A String", # [Output Only] Name of the resource.
1298 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
1299 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1300 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
1301 {
1302 "message": "A String", # [Output Only] An optional, human-readable error message.
1303 "code": "A String", # [Output Only] The error type identifier for this error.
1304 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1305 },
1306 ],
1307 },
1308 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1309 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001310 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001311 }</pre>
1312</div>
1313
1314<div class="method">
1315 <code class="details" id="testIamPermissions">testIamPermissions(project, zone, resource, body)</code>
1316 <pre>Returns permissions that a caller has on the specified resource.
1317
1318Args:
1319 project: string, Project ID for this request. (required)
1320 zone: string, The name of the zone for this request. (required)
1321 resource: string, Name of the resource for this request. (required)
1322 body: object, The request body. (required)
1323 The object takes the form of:
1324
1325{
1326 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.
1327 "A String",
1328 ],
1329 }
1330
1331
1332Returns:
1333 An object of the form:
1334
1335 {
1336 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1337 "A String",
1338 ],
1339 }</pre>
1340</div>
1341
1342</body></html>