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_beta.html">Compute Engine API</a> . <a href="compute_beta.regionCommitments.html">regionCommitments</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p> 79<p class="firstline">Retrieves an aggregated list of commitments by region.</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="#close">close()</a></code></p> 85<p class="firstline">Close httplib2 connections.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(project, region, commitment, x__xgafv=None)</a></code></p> 88<p class="firstline">Returns the specified commitment resource. Gets a list of available commitments by making a list() request.</p> 89<p class="toc_element"> 90 <code><a href="#insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Creates a commitment in the specified project using the data included in the request.</p> 92<p class="toc_element"> 93 <code><a href="#list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p> 94<p class="firstline">Retrieves a list of commitments contained within the specified region.</p> 95<p class="toc_element"> 96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 97<p class="firstline">Retrieves the next page of results.</p> 98<p class="toc_element"> 99 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</a></code></p> 100<p class="firstline">Returns permissions that a caller has on the specified resource.</p> 101<p class="toc_element"> 102 <code><a href="#update">update(project, region, commitment, body=None, paths=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p> 103<p class="firstline">Updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: auto_renew.</p> 104<p class="toc_element"> 105 <code><a href="#updateReservations">updateReservations(project, region, commitment, body=None, requestId=None, x__xgafv=None)</a></code></p> 106<p class="firstline">Transfers GPUs or local SSDs between reservations within commitments.</p> 107<h3>Method Details</h3> 108<div class="method"> 109 <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code> 110 <pre>Retrieves an aggregated list of commitments by region. 111 112Args: 113 project: string, Project ID for this request. (required) 114 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You 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. To 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) ``` 115 includeAllScopes: boolean, Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. 116 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`) 117 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 118 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. 119 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 120 x__xgafv: string, V1 error format. 121 Allowed values 122 1 - v1 error format 123 2 - v2 error format 124 125Returns: 126 An object of the form: 127 128 { 129 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 130 "items": { # A list of CommitmentsScopedList resources. 131 "a_key": { # [Output Only] Name of the scope containing this set of commitments. 132 "commitments": [ # [Output Only] A list of commitments contained in this scope. 133 { # Represents a regional Commitment resource. 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. 134 "autoRenew": True or False, # Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment. 135 "category": "A String", # The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified. 136 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 137 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 138 "endTimestamp": "A String", # [Output Only] Commitment end time in RFC3339 text format. 139 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 140 "kind": "compute#commitment", # [Output Only] Type of the resource. Always compute#commitment for commitments. 141 "licenseResource": { # Commitment for a particular license resource. # The license specification required as part of a license commitment. 142 "amount": "A String", # The number of licenses purchased. 143 "coresPerLicense": "A String", # Specifies the core range of the instance for which this license applies. 144 "license": "A String", # Any applicable license URI. 145 }, 146 "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. 147 "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). 148 "region": "A String", # [Output Only] URL of the region where this commitment may be used. 149 "reservations": [ # List of reservations in this commitment. 150 { # Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more information, read Reserving zonal resources. 151 "commitment": "A String", # [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. 152 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 153 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 154 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 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 "satisfiesPzs": True or False, # [Output Only] Reserved for future use. 158 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 159 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # Share-settings for shared-reservation 160 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 161 "a_key": { # Config for each project in the share settings. 162 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 163 }, 164 }, 165 "projects": [ # A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS. 166 "A String", 167 ], 168 "shareType": "A String", # Type of sharing for this shared-reservation 169 }, 170 "specificReservation": { # This reservation type allows to pre allocate specific instance configuration. Next ID: 5 # Reservation for instances with specific machine shapes. 171 "count": "A String", # Specifies the number of resources that are allocated. 172 "inUseCount": "A String", # [Output Only] Indicates how many instances are in use. 173 "instanceProperties": { # Properties of the SKU instances being reserved. Next ID: 9 # The instance properties for the reservation. 174 "guestAccelerators": [ # Specifies accelerator type and count. 175 { # A specification of the type and number of accelerator cards attached to the instance. 176 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 177 "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. 178 }, 179 ], 180 "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. 181 { 182 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB. 183 "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. 184 }, 185 ], 186 "locationHint": "A String", # An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API. 187 "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. 188 "maintenanceFreezeDurationHours": 42, # Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. 189 "maintenanceInterval": "A String", # For more information about maintenance intervals, see Setting maintenance intervals. 190 "minCpuPlatform": "A String", # Minimum cpu platform the reservation. 191 }, 192 }, 193 "specificReservationRequired": True or False, # Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation. 194 "status": "A String", # [Output Only] The status of the reservation. 195 "zone": "A String", # Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment. 196 }, 197 ], 198 "resources": [ # A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together. 199 { # Commitment for a particular resource (a Commitment is composed of one or more of these). 200 "acceleratorType": "A String", # Name of the accelerator type resource. Applicable only when the type is ACCELERATOR. 201 "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. 202 "type": "A String", # Type of resource for which this commitment applies. Possible values are VCPU and MEMORY 203 }, 204 ], 205 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 206 "startTimestamp": "A String", # [Output Only] Commitment start time in RFC3339 text format. 207 "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. 208 "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status. 209 "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. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines. 210 }, 211 ], 212 "warning": { # [Output Only] Informational warning which replaces the list of commitments when the list is empty. 213 "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. 214 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 215 { 216 "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). 217 "value": "A String", # [Output Only] A warning data value corresponding to the key. 218 }, 219 ], 220 "message": "A String", # [Output Only] A human-readable description of the warning code. 221 }, 222 }, 223 }, 224 "kind": "compute#commitmentAggregatedList", # [Output Only] Type of resource. Always compute#commitmentAggregatedList for aggregated lists of commitments. 225 "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. 226 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 227 "unreachables": [ # [Output Only] Unreachable resources. 228 "A String", 229 ], 230 "warning": { # [Output Only] Informational warning message. 231 "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. 232 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 233 { 234 "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). 235 "value": "A String", # [Output Only] A warning data value corresponding to the key. 236 }, 237 ], 238 "message": "A String", # [Output Only] A human-readable description of the warning code. 239 }, 240}</pre> 241</div> 242 243<div class="method"> 244 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code> 245 <pre>Retrieves the next page of results. 246 247Args: 248 previous_request: The request for the previous page. (required) 249 previous_response: The response from the request for the previous page. (required) 250 251Returns: 252 A request object that you can call 'execute()' on to request the next 253 page. Returns None if there are no more items in the collection. 254 </pre> 255</div> 256 257<div class="method"> 258 <code class="details" id="close">close()</code> 259 <pre>Close httplib2 connections.</pre> 260</div> 261 262<div class="method"> 263 <code class="details" id="get">get(project, region, commitment, x__xgafv=None)</code> 264 <pre>Returns the specified commitment resource. Gets a list of available commitments by making a list() request. 265 266Args: 267 project: string, Project ID for this request. (required) 268 region: string, Name of the region for this request. (required) 269 commitment: string, Name of the commitment to return. (required) 270 x__xgafv: string, V1 error format. 271 Allowed values 272 1 - v1 error format 273 2 - v2 error format 274 275Returns: 276 An object of the form: 277 278 { # Represents a regional Commitment resource. 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. 279 "autoRenew": True or False, # Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment. 280 "category": "A String", # The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified. 281 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 282 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 283 "endTimestamp": "A String", # [Output Only] Commitment end time in RFC3339 text format. 284 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 285 "kind": "compute#commitment", # [Output Only] Type of the resource. Always compute#commitment for commitments. 286 "licenseResource": { # Commitment for a particular license resource. # The license specification required as part of a license commitment. 287 "amount": "A String", # The number of licenses purchased. 288 "coresPerLicense": "A String", # Specifies the core range of the instance for which this license applies. 289 "license": "A String", # Any applicable license URI. 290 }, 291 "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. 292 "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). 293 "region": "A String", # [Output Only] URL of the region where this commitment may be used. 294 "reservations": [ # List of reservations in this commitment. 295 { # Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more information, read Reserving zonal resources. 296 "commitment": "A String", # [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. 297 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 298 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 299 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 300 "kind": "compute#reservation", # [Output Only] Type of the resource. Always compute#reservations for reservations. 301 "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. 302 "satisfiesPzs": True or False, # [Output Only] Reserved for future use. 303 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 304 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # Share-settings for shared-reservation 305 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 306 "a_key": { # Config for each project in the share settings. 307 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 308 }, 309 }, 310 "projects": [ # A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS. 311 "A String", 312 ], 313 "shareType": "A String", # Type of sharing for this shared-reservation 314 }, 315 "specificReservation": { # This reservation type allows to pre allocate specific instance configuration. Next ID: 5 # Reservation for instances with specific machine shapes. 316 "count": "A String", # Specifies the number of resources that are allocated. 317 "inUseCount": "A String", # [Output Only] Indicates how many instances are in use. 318 "instanceProperties": { # Properties of the SKU instances being reserved. Next ID: 9 # The instance properties for the reservation. 319 "guestAccelerators": [ # Specifies accelerator type and count. 320 { # A specification of the type and number of accelerator cards attached to the instance. 321 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 322 "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. 323 }, 324 ], 325 "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. 326 { 327 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB. 328 "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. 329 }, 330 ], 331 "locationHint": "A String", # An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API. 332 "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. 333 "maintenanceFreezeDurationHours": 42, # Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. 334 "maintenanceInterval": "A String", # For more information about maintenance intervals, see Setting maintenance intervals. 335 "minCpuPlatform": "A String", # Minimum cpu platform the reservation. 336 }, 337 }, 338 "specificReservationRequired": True or False, # Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation. 339 "status": "A String", # [Output Only] The status of the reservation. 340 "zone": "A String", # Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment. 341 }, 342 ], 343 "resources": [ # A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together. 344 { # Commitment for a particular resource (a Commitment is composed of one or more of these). 345 "acceleratorType": "A String", # Name of the accelerator type resource. Applicable only when the type is ACCELERATOR. 346 "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. 347 "type": "A String", # Type of resource for which this commitment applies. Possible values are VCPU and MEMORY 348 }, 349 ], 350 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 351 "startTimestamp": "A String", # [Output Only] Commitment start time in RFC3339 text format. 352 "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. 353 "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status. 354 "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. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines. 355}</pre> 356</div> 357 358<div class="method"> 359 <code class="details" id="insert">insert(project, region, body=None, requestId=None, x__xgafv=None)</code> 360 <pre>Creates a commitment in the specified project using the data included in the request. 361 362Args: 363 project: string, Project ID for this request. (required) 364 region: string, Name of the region for this request. (required) 365 body: object, The request body. 366 The object takes the form of: 367 368{ # Represents a regional Commitment resource. 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. 369 "autoRenew": True or False, # Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment. 370 "category": "A String", # The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified. 371 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 372 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 373 "endTimestamp": "A String", # [Output Only] Commitment end time in RFC3339 text format. 374 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 375 "kind": "compute#commitment", # [Output Only] Type of the resource. Always compute#commitment for commitments. 376 "licenseResource": { # Commitment for a particular license resource. # The license specification required as part of a license commitment. 377 "amount": "A String", # The number of licenses purchased. 378 "coresPerLicense": "A String", # Specifies the core range of the instance for which this license applies. 379 "license": "A String", # Any applicable license URI. 380 }, 381 "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. 382 "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). 383 "region": "A String", # [Output Only] URL of the region where this commitment may be used. 384 "reservations": [ # List of reservations in this commitment. 385 { # Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more information, read Reserving zonal resources. 386 "commitment": "A String", # [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. 387 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 388 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 389 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 390 "kind": "compute#reservation", # [Output Only] Type of the resource. Always compute#reservations for reservations. 391 "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. 392 "satisfiesPzs": True or False, # [Output Only] Reserved for future use. 393 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 394 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # Share-settings for shared-reservation 395 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 396 "a_key": { # Config for each project in the share settings. 397 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 398 }, 399 }, 400 "projects": [ # A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS. 401 "A String", 402 ], 403 "shareType": "A String", # Type of sharing for this shared-reservation 404 }, 405 "specificReservation": { # This reservation type allows to pre allocate specific instance configuration. Next ID: 5 # Reservation for instances with specific machine shapes. 406 "count": "A String", # Specifies the number of resources that are allocated. 407 "inUseCount": "A String", # [Output Only] Indicates how many instances are in use. 408 "instanceProperties": { # Properties of the SKU instances being reserved. Next ID: 9 # The instance properties for the reservation. 409 "guestAccelerators": [ # Specifies accelerator type and count. 410 { # A specification of the type and number of accelerator cards attached to the instance. 411 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 412 "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. 413 }, 414 ], 415 "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. 416 { 417 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB. 418 "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. 419 }, 420 ], 421 "locationHint": "A String", # An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API. 422 "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. 423 "maintenanceFreezeDurationHours": 42, # Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. 424 "maintenanceInterval": "A String", # For more information about maintenance intervals, see Setting maintenance intervals. 425 "minCpuPlatform": "A String", # Minimum cpu platform the reservation. 426 }, 427 }, 428 "specificReservationRequired": True or False, # Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation. 429 "status": "A String", # [Output Only] The status of the reservation. 430 "zone": "A String", # Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment. 431 }, 432 ], 433 "resources": [ # A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together. 434 { # Commitment for a particular resource (a Commitment is composed of one or more of these). 435 "acceleratorType": "A String", # Name of the accelerator type resource. Applicable only when the type is ACCELERATOR. 436 "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. 437 "type": "A String", # Type of resource for which this commitment applies. Possible values are VCPU and MEMORY 438 }, 439 ], 440 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 441 "startTimestamp": "A String", # [Output Only] Commitment start time in RFC3339 text format. 442 "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. 443 "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status. 444 "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. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines. 445} 446 447 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. For 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. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 448 x__xgafv: string, V1 error format. 449 Allowed values 450 1 - v1 error format 451 2 - v2 error format 452 453Returns: 454 An object of the form: 455 456 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/beta/globalOperations) * [Regional](/compute/docs/reference/rest/beta/regionOperations) * [Zonal](/compute/docs/reference/rest/beta/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 457 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 458 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 459 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 460 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 461 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 462 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 463 { 464 "code": "A String", # [Output Only] The error type identifier for this error. 465 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 466 "message": "A String", # [Output Only] An optional, human-readable error message. 467 }, 468 ], 469 }, 470 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 471 "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. 472 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 473 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 474 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 475 "name": "A String", # [Output Only] Name of the operation. 476 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 477 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 478 "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. 479 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 480 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 481 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 482 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 483 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 484 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 485 "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. 486 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 487 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 488 { 489 "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. 490 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 491 { 492 "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). 493 "value": "A String", # [Output Only] A warning data value corresponding to the key. 494 }, 495 ], 496 "message": "A String", # [Output Only] A human-readable description of the warning code. 497 }, 498 ], 499 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 500}</pre> 501</div> 502 503<div class="method"> 504 <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code> 505 <pre>Retrieves a list of commitments contained within the specified region. 506 507Args: 508 project: string, Project ID for this request. (required) 509 region: string, Name of the region for this request. (required) 510 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You 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. To 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) ``` 511 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`) 512 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 513 pageToken: string, Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. 514 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 515 x__xgafv: string, V1 error format. 516 Allowed values 517 1 - v1 error format 518 2 - v2 error format 519 520Returns: 521 An object of the form: 522 523 { # Contains a list of Commitment resources. 524 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 525 "items": [ # A list of Commitment resources. 526 { # Represents a regional Commitment resource. 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. 527 "autoRenew": True or False, # Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment. 528 "category": "A String", # The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified. 529 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 530 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 531 "endTimestamp": "A String", # [Output Only] Commitment end time in RFC3339 text format. 532 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 533 "kind": "compute#commitment", # [Output Only] Type of the resource. Always compute#commitment for commitments. 534 "licenseResource": { # Commitment for a particular license resource. # The license specification required as part of a license commitment. 535 "amount": "A String", # The number of licenses purchased. 536 "coresPerLicense": "A String", # Specifies the core range of the instance for which this license applies. 537 "license": "A String", # Any applicable license URI. 538 }, 539 "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. 540 "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). 541 "region": "A String", # [Output Only] URL of the region where this commitment may be used. 542 "reservations": [ # List of reservations in this commitment. 543 { # Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more information, read Reserving zonal resources. 544 "commitment": "A String", # [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. 545 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 546 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 547 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 548 "kind": "compute#reservation", # [Output Only] Type of the resource. Always compute#reservations for reservations. 549 "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. 550 "satisfiesPzs": True or False, # [Output Only] Reserved for future use. 551 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 552 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # Share-settings for shared-reservation 553 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 554 "a_key": { # Config for each project in the share settings. 555 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 556 }, 557 }, 558 "projects": [ # A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS. 559 "A String", 560 ], 561 "shareType": "A String", # Type of sharing for this shared-reservation 562 }, 563 "specificReservation": { # This reservation type allows to pre allocate specific instance configuration. Next ID: 5 # Reservation for instances with specific machine shapes. 564 "count": "A String", # Specifies the number of resources that are allocated. 565 "inUseCount": "A String", # [Output Only] Indicates how many instances are in use. 566 "instanceProperties": { # Properties of the SKU instances being reserved. Next ID: 9 # The instance properties for the reservation. 567 "guestAccelerators": [ # Specifies accelerator type and count. 568 { # A specification of the type and number of accelerator cards attached to the instance. 569 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 570 "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. 571 }, 572 ], 573 "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. 574 { 575 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB. 576 "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. 577 }, 578 ], 579 "locationHint": "A String", # An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API. 580 "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. 581 "maintenanceFreezeDurationHours": 42, # Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. 582 "maintenanceInterval": "A String", # For more information about maintenance intervals, see Setting maintenance intervals. 583 "minCpuPlatform": "A String", # Minimum cpu platform the reservation. 584 }, 585 }, 586 "specificReservationRequired": True or False, # Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation. 587 "status": "A String", # [Output Only] The status of the reservation. 588 "zone": "A String", # Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment. 589 }, 590 ], 591 "resources": [ # A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together. 592 { # Commitment for a particular resource (a Commitment is composed of one or more of these). 593 "acceleratorType": "A String", # Name of the accelerator type resource. Applicable only when the type is ACCELERATOR. 594 "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. 595 "type": "A String", # Type of resource for which this commitment applies. Possible values are VCPU and MEMORY 596 }, 597 ], 598 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 599 "startTimestamp": "A String", # [Output Only] Commitment start time in RFC3339 text format. 600 "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. 601 "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status. 602 "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. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines. 603 }, 604 ], 605 "kind": "compute#commitmentList", # [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. 606 "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. 607 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 608 "warning": { # [Output Only] Informational warning message. 609 "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. 610 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 611 { 612 "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). 613 "value": "A String", # [Output Only] A warning data value corresponding to the key. 614 }, 615 ], 616 "message": "A String", # [Output Only] A human-readable description of the warning code. 617 }, 618}</pre> 619</div> 620 621<div class="method"> 622 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 623 <pre>Retrieves the next page of results. 624 625Args: 626 previous_request: The request for the previous page. (required) 627 previous_response: The response from the request for the previous page. (required) 628 629Returns: 630 A request object that you can call 'execute()' on to request the next 631 page. Returns None if there are no more items in the collection. 632 </pre> 633</div> 634 635<div class="method"> 636 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body=None, x__xgafv=None)</code> 637 <pre>Returns permissions that a caller has on the specified resource. 638 639Args: 640 project: string, Project ID for this request. (required) 641 region: string, The name of the region for this request. (required) 642 resource: string, Name or id of the resource for this request. (required) 643 body: object, The request body. 644 The object takes the form of: 645 646{ 647 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. 648 "A String", 649 ], 650} 651 652 x__xgafv: string, V1 error format. 653 Allowed values 654 1 - v1 error format 655 2 - v2 error format 656 657Returns: 658 An object of the form: 659 660 { 661 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. 662 "A String", 663 ], 664}</pre> 665</div> 666 667<div class="method"> 668 <code class="details" id="update">update(project, region, commitment, body=None, paths=None, requestId=None, updateMask=None, x__xgafv=None)</code> 669 <pre>Updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: auto_renew. 670 671Args: 672 project: string, Project ID for this request. (required) 673 region: string, Name of the region for this request. (required) 674 commitment: string, Name of the commitment for which auto renew is being updated. (required) 675 body: object, The request body. 676 The object takes the form of: 677 678{ # Represents a regional Commitment resource. 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. 679 "autoRenew": True or False, # Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment. 680 "category": "A String", # The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified. 681 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 682 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 683 "endTimestamp": "A String", # [Output Only] Commitment end time in RFC3339 text format. 684 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 685 "kind": "compute#commitment", # [Output Only] Type of the resource. Always compute#commitment for commitments. 686 "licenseResource": { # Commitment for a particular license resource. # The license specification required as part of a license commitment. 687 "amount": "A String", # The number of licenses purchased. 688 "coresPerLicense": "A String", # Specifies the core range of the instance for which this license applies. 689 "license": "A String", # Any applicable license URI. 690 }, 691 "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. 692 "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). 693 "region": "A String", # [Output Only] URL of the region where this commitment may be used. 694 "reservations": [ # List of reservations in this commitment. 695 { # Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more information, read Reserving zonal resources. 696 "commitment": "A String", # [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. 697 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 698 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 699 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 700 "kind": "compute#reservation", # [Output Only] Type of the resource. Always compute#reservations for reservations. 701 "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. 702 "satisfiesPzs": True or False, # [Output Only] Reserved for future use. 703 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 704 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # Share-settings for shared-reservation 705 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 706 "a_key": { # Config for each project in the share settings. 707 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 708 }, 709 }, 710 "projects": [ # A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS. 711 "A String", 712 ], 713 "shareType": "A String", # Type of sharing for this shared-reservation 714 }, 715 "specificReservation": { # This reservation type allows to pre allocate specific instance configuration. Next ID: 5 # Reservation for instances with specific machine shapes. 716 "count": "A String", # Specifies the number of resources that are allocated. 717 "inUseCount": "A String", # [Output Only] Indicates how many instances are in use. 718 "instanceProperties": { # Properties of the SKU instances being reserved. Next ID: 9 # The instance properties for the reservation. 719 "guestAccelerators": [ # Specifies accelerator type and count. 720 { # A specification of the type and number of accelerator cards attached to the instance. 721 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 722 "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. 723 }, 724 ], 725 "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. 726 { 727 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB. 728 "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. 729 }, 730 ], 731 "locationHint": "A String", # An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API. 732 "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. 733 "maintenanceFreezeDurationHours": 42, # Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. 734 "maintenanceInterval": "A String", # For more information about maintenance intervals, see Setting maintenance intervals. 735 "minCpuPlatform": "A String", # Minimum cpu platform the reservation. 736 }, 737 }, 738 "specificReservationRequired": True or False, # Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation. 739 "status": "A String", # [Output Only] The status of the reservation. 740 "zone": "A String", # Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment. 741 }, 742 ], 743 "resources": [ # A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together. 744 { # Commitment for a particular resource (a Commitment is composed of one or more of these). 745 "acceleratorType": "A String", # Name of the accelerator type resource. Applicable only when the type is ACCELERATOR. 746 "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. 747 "type": "A String", # Type of resource for which this commitment applies. Possible values are VCPU and MEMORY 748 }, 749 ], 750 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 751 "startTimestamp": "A String", # [Output Only] Commitment start time in RFC3339 text format. 752 "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. 753 "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status. 754 "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. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines. 755} 756 757 paths: string, A parameter (repeated) 758 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. For 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. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 759 updateMask: string, update_mask indicates fields to be updated as part of this request. 760 x__xgafv: string, V1 error format. 761 Allowed values 762 1 - v1 error format 763 2 - v2 error format 764 765Returns: 766 An object of the form: 767 768 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/beta/globalOperations) * [Regional](/compute/docs/reference/rest/beta/regionOperations) * [Zonal](/compute/docs/reference/rest/beta/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 769 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 770 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 771 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 772 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 773 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 774 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 775 { 776 "code": "A String", # [Output Only] The error type identifier for this error. 777 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 778 "message": "A String", # [Output Only] An optional, human-readable error message. 779 }, 780 ], 781 }, 782 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 783 "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. 784 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 785 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 786 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 787 "name": "A String", # [Output Only] Name of the operation. 788 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 789 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 790 "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. 791 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 792 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 793 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 794 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 795 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 796 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 797 "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. 798 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 799 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 800 { 801 "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. 802 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 803 { 804 "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). 805 "value": "A String", # [Output Only] A warning data value corresponding to the key. 806 }, 807 ], 808 "message": "A String", # [Output Only] A human-readable description of the warning code. 809 }, 810 ], 811 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 812}</pre> 813</div> 814 815<div class="method"> 816 <code class="details" id="updateReservations">updateReservations(project, region, commitment, body=None, requestId=None, x__xgafv=None)</code> 817 <pre>Transfers GPUs or local SSDs between reservations within commitments. 818 819Args: 820 project: string, Project ID for this request. (required) 821 region: string, Name of the region for this request. (required) 822 commitment: string, Name of the commitment for which the reservation is being updated. (required) 823 body: object, The request body. 824 The object takes the form of: 825 826{ 827 "reservations": [ # A list of two reservations to transfer GPUs and local SSD between. 828 { # Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more information, read Reserving zonal resources. 829 "commitment": "A String", # [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. 830 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 831 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 832 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 833 "kind": "compute#reservation", # [Output Only] Type of the resource. Always compute#reservations for reservations. 834 "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. 835 "satisfiesPzs": True or False, # [Output Only] Reserved for future use. 836 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 837 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # Share-settings for shared-reservation 838 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 839 "a_key": { # Config for each project in the share settings. 840 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 841 }, 842 }, 843 "projects": [ # A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS. 844 "A String", 845 ], 846 "shareType": "A String", # Type of sharing for this shared-reservation 847 }, 848 "specificReservation": { # This reservation type allows to pre allocate specific instance configuration. Next ID: 5 # Reservation for instances with specific machine shapes. 849 "count": "A String", # Specifies the number of resources that are allocated. 850 "inUseCount": "A String", # [Output Only] Indicates how many instances are in use. 851 "instanceProperties": { # Properties of the SKU instances being reserved. Next ID: 9 # The instance properties for the reservation. 852 "guestAccelerators": [ # Specifies accelerator type and count. 853 { # A specification of the type and number of accelerator cards attached to the instance. 854 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 855 "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. 856 }, 857 ], 858 "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. 859 { 860 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB. 861 "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. 862 }, 863 ], 864 "locationHint": "A String", # An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API. 865 "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. 866 "maintenanceFreezeDurationHours": 42, # Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. 867 "maintenanceInterval": "A String", # For more information about maintenance intervals, see Setting maintenance intervals. 868 "minCpuPlatform": "A String", # Minimum cpu platform the reservation. 869 }, 870 }, 871 "specificReservationRequired": True or False, # Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation. 872 "status": "A String", # [Output Only] The status of the reservation. 873 "zone": "A String", # Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment. 874 }, 875 ], 876} 877 878 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. For 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. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 879 x__xgafv: string, V1 error format. 880 Allowed values 881 1 - v1 error format 882 2 - v2 error format 883 884Returns: 885 An object of the form: 886 887 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/beta/globalOperations) * [Regional](/compute/docs/reference/rest/beta/regionOperations) * [Zonal](/compute/docs/reference/rest/beta/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 888 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 889 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 890 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 891 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 892 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 893 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 894 { 895 "code": "A String", # [Output Only] The error type identifier for this error. 896 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 897 "message": "A String", # [Output Only] An optional, human-readable error message. 898 }, 899 ], 900 }, 901 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 902 "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. 903 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 904 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 905 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 906 "name": "A String", # [Output Only] Name of the operation. 907 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 908 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 909 "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. 910 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 911 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 912 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 913 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 914 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 915 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 916 "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. 917 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 918 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 919 { 920 "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. 921 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 922 { 923 "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). 924 "value": "A String", # [Output Only] A warning data value corresponding to the key. 925 }, 926 ], 927 "message": "A String", # [Output Only] A human-readable description of the warning code. 928 }, 929 ], 930 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 931}</pre> 932</div> 933 934</body></html>