• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<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.regionCommitments.html">regionCommitments</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 commitments.</p>
80<p class="toc_element">
81  <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p>
82<p class="firstline">Retrieves the next page of results.</p>
83<p class="toc_element">
84  <code><a href="#get">get(project, region, commitment)</a></code></p>
85<p class="firstline">Returns the specified commitment resource. Gets a list of available commitments by making a list() request.</p>
86<p class="toc_element">
87  <code><a href="#insert">insert(project, region, body, requestId=None)</a></code></p>
88<p class="firstline">Creates a commitment in the specified project using the data included in the request.</p>
89<p class="toc_element">
90  <code><a href="#list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
91<p class="firstline">Retrieves a list of commitments contained within the specified region.</p>
92<p class="toc_element">
93  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
96  <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body)</a></code></p>
97<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
98<p class="toc_element">
99  <code><a href="#updateReservations">updateReservations(project, region, commitment, body, requestId=None)</a></code></p>
100<p class="firstline">Update the shape of reservations for GPUS/Local SSDs of reservations within the commitments.</p>
101<h3>Method Details</h3>
102<div class="method">
103    <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
104  <pre>Retrieves an aggregated list of commitments.
105
106Args:
107  project: string, Project ID for this request. (required)
108  orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
109
110You 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.
111
112Currently, only sorting by name or creationTimestamp desc is supported.
113  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)
114  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.
115  filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.
116
117For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.
118
119You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
120
121To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true).
122
123Returns:
124  An object of the form:
125
126    {
127    "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.
128    "kind": "compute#commitmentAggregatedList", # [Output Only] Type of resource. Always compute#commitmentAggregatedList for aggregated lists of commitments.
129    "items": { # A list of CommitmentsScopedList resources.
130      "a_key": { # [Output Only] Name of the scope containing this set of commitments.
131        "warning": { # [Output Only] Informational warning which replaces the list of commitments when the list is empty.
132          "message": "A String", # [Output Only] A human-readable description of the warning code.
133          "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.
134          "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
135              # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
136            {
137              "value": "A String", # [Output Only] A warning data value corresponding to the key.
138              "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).
139            },
140          ],
141        },
142        "commitments": [ # [Output Only] A list of commitments contained in this scope.
143          { # Represents a regional Commitment resource.
144                #
145                # Creating a commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts. (== resource_for beta.regionCommitments ==) (== resource_for v1.regionCommitments ==)
146              "status": "A String", # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
147              "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
148              "kind": "compute#commitment", # [Output Only] Type of the resource. Always compute#commitment for commitments.
149              "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status.
150              "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
151              "startTimestamp": "A String", # [Output Only] Commitment start time in RFC3339 text format.
152              "reservations": [ # List of reservations for this commitment.
153                { # Reservation resource NextID: 13
154                  "status": "A String", # [Output Only] The status of the reservation.
155                  "kind": "compute#reservation", # [Output Only] Type of the resource. Always compute#reservations for reservations.
156                  "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
157                  "specificReservationRequired": True or False, # Indicates whether the reservation can be consumed by VMs with "any reservation" defined. If the field is set, then only VMs that target the reservation by name using --reservation-affinity can consume this reservation.
158                  "commitment": "A String", # [OutputOnly] Full or partial url for parent commitment for reservations which are tied to a commitment.
159                  "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
160                  "specificReservation": { # This reservation type allows to pre allocate specific instance configuration. # Reservation for instances with specific machine shapes.
161                    "count": "A String", # Specifies number of resources that are allocated.
162                    "instanceProperties": { # Properties of the SKU instances being reserved. # The instance properties for this specific sku reservation.
163                      "minCpuPlatform": "A String", # Minimum cpu platform the reservation.
164                      "machineType": "A String", # Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.
165                      "guestAccelerators": [ # Specifies accelerator type and count.
166                        { # A specification of the type and number of accelerator cards attached to the instance.
167                          "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance.
168                          "acceleratorType": "A String", # Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
169                        },
170                      ],
171                      "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.
172                        {
173                          "interface": "A String", # Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance.
174                          "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB.
175                        },
176                      ],
177                    },
178                    "inUseCount": "A String", # [OutputOnly] Indicates how many resource are in use.
179                  },
180                  "zone": "A String", # Zone in which the reservation resides, must be provided if reservation is created with commitment creation.
181                  "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
182                  "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
183                  "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
184                  "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
185                },
186              ],
187              "region": "A String", # [Output Only] URL of the region where this commitment may be used.
188              "endTimestamp": "A String", # [Output Only] Commitment end time in RFC3339 text format.
189              "plan": "A String", # The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
190              "type": "A String", # The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines.
191              "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
192              "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
193              "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
194              "resources": [ # A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
195                { # Commitment for a particular resource (a Commitment is composed of one or more of these).
196                  "acceleratorType": "A String", # Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
197                  "type": "A String", # Type of resource for which this commitment applies. Possible values are VCPU and MEMORY
198                  "amount": "A String", # The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.
199                },
200              ],
201              "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.
202            },
203        ],
204      },
205    },
206    "warning": { # [Output Only] Informational warning message.
207      "message": "A String", # [Output Only] A human-readable description of the warning code.
208      "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.
209      "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
210          # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
211        {
212          "value": "A String", # [Output Only] A warning data value corresponding to the key.
213          "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).
214        },
215      ],
216    },
217    "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
218    "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
219  }</pre>
220</div>
221
222<div class="method">
223    <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
224  <pre>Retrieves the next page of results.
225
226Args:
227  previous_request: The request for the previous page. (required)
228  previous_response: The response from the request for the previous page. (required)
229
230Returns:
231  A request object that you can call 'execute()' on to request the next
232  page. Returns None if there are no more items in the collection.
233    </pre>
234</div>
235
236<div class="method">
237    <code class="details" id="get">get(project, region, commitment)</code>
238  <pre>Returns the specified commitment resource. Gets a list of available commitments by making a list() request.
239
240Args:
241  project: string, Project ID for this request. (required)
242  region: string, Name of the region for this request. (required)
243  commitment: string, Name of the commitment to return. (required)
244
245Returns:
246  An object of the form:
247
248    { # Represents a regional Commitment resource.
249        #
250        # Creating a commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts. (== resource_for beta.regionCommitments ==) (== resource_for v1.regionCommitments ==)
251      "status": "A String", # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
252      "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
253      "kind": "compute#commitment", # [Output Only] Type of the resource. Always compute#commitment for commitments.
254      "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status.
255      "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
256      "startTimestamp": "A String", # [Output Only] Commitment start time in RFC3339 text format.
257      "reservations": [ # List of reservations for this commitment.
258        { # Reservation resource NextID: 13
259          "status": "A String", # [Output Only] The status of the reservation.
260          "kind": "compute#reservation", # [Output Only] Type of the resource. Always compute#reservations for reservations.
261          "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
262          "specificReservationRequired": True or False, # Indicates whether the reservation can be consumed by VMs with "any reservation" defined. If the field is set, then only VMs that target the reservation by name using --reservation-affinity can consume this reservation.
263          "commitment": "A String", # [OutputOnly] Full or partial url for parent commitment for reservations which are tied to a commitment.
264          "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
265          "specificReservation": { # This reservation type allows to pre allocate specific instance configuration. # Reservation for instances with specific machine shapes.
266            "count": "A String", # Specifies number of resources that are allocated.
267            "instanceProperties": { # Properties of the SKU instances being reserved. # The instance properties for this specific sku reservation.
268              "minCpuPlatform": "A String", # Minimum cpu platform the reservation.
269              "machineType": "A String", # Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.
270              "guestAccelerators": [ # Specifies accelerator type and count.
271                { # A specification of the type and number of accelerator cards attached to the instance.
272                  "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance.
273                  "acceleratorType": "A String", # Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
274                },
275              ],
276              "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.
277                {
278                  "interface": "A String", # Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance.
279                  "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB.
280                },
281              ],
282            },
283            "inUseCount": "A String", # [OutputOnly] Indicates how many resource are in use.
284          },
285          "zone": "A String", # Zone in which the reservation resides, must be provided if reservation is created with commitment creation.
286          "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
287          "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
288          "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
289          "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
290        },
291      ],
292      "region": "A String", # [Output Only] URL of the region where this commitment may be used.
293      "endTimestamp": "A String", # [Output Only] Commitment end time in RFC3339 text format.
294      "plan": "A String", # The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
295      "type": "A String", # The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines.
296      "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
297      "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
298      "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
299      "resources": [ # A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
300        { # Commitment for a particular resource (a Commitment is composed of one or more of these).
301          "acceleratorType": "A String", # Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
302          "type": "A String", # Type of resource for which this commitment applies. Possible values are VCPU and MEMORY
303          "amount": "A String", # The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.
304        },
305      ],
306      "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.
307    }</pre>
308</div>
309
310<div class="method">
311    <code class="details" id="insert">insert(project, region, body, requestId=None)</code>
312  <pre>Creates a commitment in the specified project using the data included in the request.
313
314Args:
315  project: string, Project ID for this request. (required)
316  region: string, Name of the region for this request. (required)
317  body: object, The request body. (required)
318    The object takes the form of:
319
320{ # Represents a regional Commitment resource.
321      #
322      # Creating a commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts. (== resource_for beta.regionCommitments ==) (== resource_for v1.regionCommitments ==)
323    "status": "A String", # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
324    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
325    "kind": "compute#commitment", # [Output Only] Type of the resource. Always compute#commitment for commitments.
326    "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status.
327    "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
328    "startTimestamp": "A String", # [Output Only] Commitment start time in RFC3339 text format.
329    "reservations": [ # List of reservations for this commitment.
330      { # Reservation resource NextID: 13
331        "status": "A String", # [Output Only] The status of the reservation.
332        "kind": "compute#reservation", # [Output Only] Type of the resource. Always compute#reservations for reservations.
333        "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
334        "specificReservationRequired": True or False, # Indicates whether the reservation can be consumed by VMs with "any reservation" defined. If the field is set, then only VMs that target the reservation by name using --reservation-affinity can consume this reservation.
335        "commitment": "A String", # [OutputOnly] Full or partial url for parent commitment for reservations which are tied to a commitment.
336        "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
337        "specificReservation": { # This reservation type allows to pre allocate specific instance configuration. # Reservation for instances with specific machine shapes.
338          "count": "A String", # Specifies number of resources that are allocated.
339          "instanceProperties": { # Properties of the SKU instances being reserved. # The instance properties for this specific sku reservation.
340            "minCpuPlatform": "A String", # Minimum cpu platform the reservation.
341            "machineType": "A String", # Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.
342            "guestAccelerators": [ # Specifies accelerator type and count.
343              { # A specification of the type and number of accelerator cards attached to the instance.
344                "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance.
345                "acceleratorType": "A String", # Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
346              },
347            ],
348            "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.
349              {
350                "interface": "A String", # Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance.
351                "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB.
352              },
353            ],
354          },
355          "inUseCount": "A String", # [OutputOnly] Indicates how many resource are in use.
356        },
357        "zone": "A String", # Zone in which the reservation resides, must be provided if reservation is created with commitment creation.
358        "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
359        "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
360        "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
361        "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
362      },
363    ],
364    "region": "A String", # [Output Only] URL of the region where this commitment may be used.
365    "endTimestamp": "A String", # [Output Only] Commitment end time in RFC3339 text format.
366    "plan": "A String", # The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
367    "type": "A String", # The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines.
368    "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
369    "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
370    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
371    "resources": [ # A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
372      { # Commitment for a particular resource (a Commitment is composed of one or more of these).
373        "acceleratorType": "A String", # Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
374        "type": "A String", # Type of resource for which this commitment applies. Possible values are VCPU and MEMORY
375        "amount": "A String", # The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.
376      },
377    ],
378    "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.
379  }
380
381  requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
382
383For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
384
385The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
386
387Returns:
388  An object of the form:
389
390    { # Represents an Operation resource.
391      #
392      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
393      #
394      # Operations can be global, regional or zonal.
395      # - For global operations, use the globalOperations resource.
396      # - For regional operations, use the regionOperations resource.
397      # - For zonal operations, use the zonalOperations resource.
398      #
399      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
400    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
401    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
402    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
403    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
404    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
405    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
406    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
407    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
408    "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.
409    "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.
410    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
411    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
412    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
413    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
414      {
415        "message": "A String", # [Output Only] A human-readable description of the warning code.
416        "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.
417        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
418            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
419          {
420            "value": "A String", # [Output Only] A warning data value corresponding to the key.
421            "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).
422          },
423        ],
424      },
425    ],
426    "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
427    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
428    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
429    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
430    "name": "A String", # [Output Only] Name of the resource.
431    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
432    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
433      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
434        {
435          "message": "A String", # [Output Only] An optional, human-readable error message.
436          "code": "A String", # [Output Only] The error type identifier for this error.
437          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
438        },
439      ],
440    },
441    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
442    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
443    "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.
444  }</pre>
445</div>
446
447<div class="method">
448    <code class="details" id="list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
449  <pre>Retrieves a list of commitments contained within the specified region.
450
451Args:
452  project: string, Project ID for this request. (required)
453  region: string, Name of the region for this request. (required)
454  orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
455
456You 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.
457
458Currently, only sorting by name or creationTimestamp desc is supported.
459  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)
460  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.
461  filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.
462
463For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.
464
465You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
466
467To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true).
468
469Returns:
470  An object of the form:
471
472    { # Contains a list of Commitment resources.
473    "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.
474    "kind": "compute#commitmentList", # [Output Only] Type of resource. Always compute#commitmentList for lists of commitments.
475    "items": [ # A list of Commitment resources.
476      { # Represents a regional Commitment resource.
477            #
478            # Creating a commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts. (== resource_for beta.regionCommitments ==) (== resource_for v1.regionCommitments ==)
479          "status": "A String", # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
480          "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
481          "kind": "compute#commitment", # [Output Only] Type of the resource. Always compute#commitment for commitments.
482          "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status.
483          "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
484          "startTimestamp": "A String", # [Output Only] Commitment start time in RFC3339 text format.
485          "reservations": [ # List of reservations for this commitment.
486            { # Reservation resource NextID: 13
487              "status": "A String", # [Output Only] The status of the reservation.
488              "kind": "compute#reservation", # [Output Only] Type of the resource. Always compute#reservations for reservations.
489              "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
490              "specificReservationRequired": True or False, # Indicates whether the reservation can be consumed by VMs with "any reservation" defined. If the field is set, then only VMs that target the reservation by name using --reservation-affinity can consume this reservation.
491              "commitment": "A String", # [OutputOnly] Full or partial url for parent commitment for reservations which are tied to a commitment.
492              "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
493              "specificReservation": { # This reservation type allows to pre allocate specific instance configuration. # Reservation for instances with specific machine shapes.
494                "count": "A String", # Specifies number of resources that are allocated.
495                "instanceProperties": { # Properties of the SKU instances being reserved. # The instance properties for this specific sku reservation.
496                  "minCpuPlatform": "A String", # Minimum cpu platform the reservation.
497                  "machineType": "A String", # Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.
498                  "guestAccelerators": [ # Specifies accelerator type and count.
499                    { # A specification of the type and number of accelerator cards attached to the instance.
500                      "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance.
501                      "acceleratorType": "A String", # Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
502                    },
503                  ],
504                  "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.
505                    {
506                      "interface": "A String", # Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance.
507                      "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB.
508                    },
509                  ],
510                },
511                "inUseCount": "A String", # [OutputOnly] Indicates how many resource are in use.
512              },
513              "zone": "A String", # Zone in which the reservation resides, must be provided if reservation is created with commitment creation.
514              "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
515              "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
516              "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
517              "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
518            },
519          ],
520          "region": "A String", # [Output Only] URL of the region where this commitment may be used.
521          "endTimestamp": "A String", # [Output Only] Commitment end time in RFC3339 text format.
522          "plan": "A String", # The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
523          "type": "A String", # The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines.
524          "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
525          "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
526          "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
527          "resources": [ # A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
528            { # Commitment for a particular resource (a Commitment is composed of one or more of these).
529              "acceleratorType": "A String", # Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
530              "type": "A String", # Type of resource for which this commitment applies. Possible values are VCPU and MEMORY
531              "amount": "A String", # The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.
532            },
533          ],
534          "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.
535        },
536    ],
537    "warning": { # [Output Only] Informational warning message.
538      "message": "A String", # [Output Only] A human-readable description of the warning code.
539      "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.
540      "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
541          # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
542        {
543          "value": "A String", # [Output Only] A warning data value corresponding to the key.
544          "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).
545        },
546      ],
547    },
548    "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
549    "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
550  }</pre>
551</div>
552
553<div class="method">
554    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
555  <pre>Retrieves the next page of results.
556
557Args:
558  previous_request: The request for the previous page. (required)
559  previous_response: The response from the request for the previous page. (required)
560
561Returns:
562  A request object that you can call 'execute()' on to request the next
563  page. Returns None if there are no more items in the collection.
564    </pre>
565</div>
566
567<div class="method">
568    <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body)</code>
569  <pre>Returns permissions that a caller has on the specified resource.
570
571Args:
572  project: string, Project ID for this request. (required)
573  region: string, The name of the region for this request. (required)
574  resource: string, Name or id of the resource for this request. (required)
575  body: object, The request body. (required)
576    The object takes the form of:
577
578{
579    "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.
580      "A String",
581    ],
582  }
583
584
585Returns:
586  An object of the form:
587
588    {
589    "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
590      "A String",
591    ],
592  }</pre>
593</div>
594
595<div class="method">
596    <code class="details" id="updateReservations">updateReservations(project, region, commitment, body, requestId=None)</code>
597  <pre>Update the shape of reservations for GPUS/Local SSDs of reservations within the commitments.
598
599Args:
600  project: string, Project ID for this request. (required)
601  region: string, Name of the region for this request. (required)
602  commitment: string, Name of the commitment of which the reservation's capacities are being updated. (required)
603  body: object, The request body. (required)
604    The object takes the form of:
605
606{
607    "reservations": [ # List of reservations for the capacity move of VMs with accelerators and local ssds.
608      { # Reservation resource NextID: 13
609        "status": "A String", # [Output Only] The status of the reservation.
610        "kind": "compute#reservation", # [Output Only] Type of the resource. Always compute#reservations for reservations.
611        "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
612        "specificReservationRequired": True or False, # Indicates whether the reservation can be consumed by VMs with "any reservation" defined. If the field is set, then only VMs that target the reservation by name using --reservation-affinity can consume this reservation.
613        "commitment": "A String", # [OutputOnly] Full or partial url for parent commitment for reservations which are tied to a commitment.
614        "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
615        "specificReservation": { # This reservation type allows to pre allocate specific instance configuration. # Reservation for instances with specific machine shapes.
616          "count": "A String", # Specifies number of resources that are allocated.
617          "instanceProperties": { # Properties of the SKU instances being reserved. # The instance properties for this specific sku reservation.
618            "minCpuPlatform": "A String", # Minimum cpu platform the reservation.
619            "machineType": "A String", # Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.
620            "guestAccelerators": [ # Specifies accelerator type and count.
621              { # A specification of the type and number of accelerator cards attached to the instance.
622                "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance.
623                "acceleratorType": "A String", # Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
624              },
625            ],
626            "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.
627              {
628                "interface": "A String", # Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance.
629                "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB.
630              },
631            ],
632          },
633          "inUseCount": "A String", # [OutputOnly] Indicates how many resource are in use.
634        },
635        "zone": "A String", # Zone in which the reservation resides, must be provided if reservation is created with commitment creation.
636        "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
637        "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
638        "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource.
639        "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
640      },
641    ],
642  }
643
644  requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
645
646For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
647
648The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
649
650Returns:
651  An object of the form:
652
653    { # Represents an Operation resource.
654      #
655      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
656      #
657      # Operations can be global, regional or zonal.
658      # - For global operations, use the globalOperations resource.
659      # - For regional operations, use the regionOperations resource.
660      # - For zonal operations, use the zonalOperations resource.
661      #
662      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
663    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
664    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
665    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
666    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
667    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
668    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
669    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
670    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
671    "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.
672    "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.
673    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
674    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
675    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
676    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
677      {
678        "message": "A String", # [Output Only] A human-readable description of the warning code.
679        "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.
680        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
681            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
682          {
683            "value": "A String", # [Output Only] A warning data value corresponding to the key.
684            "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).
685          },
686        ],
687      },
688    ],
689    "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
690    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
691    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
692    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
693    "name": "A String", # [Output Only] Name of the resource.
694    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
695    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
696      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
697        {
698          "message": "A String", # [Output Only] An optional, human-readable error message.
699          "code": "A String", # [Output Only] The error type identifier for this error.
700          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
701        },
702      ],
703    },
704    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
705    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
706    "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.
707  }</pre>
708</div>
709
710</body></html>