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.reservations.html">reservations</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 reservations.</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="#delete">delete(project, zone, reservation, requestId=None, x__xgafv=None)</a></code></p> 88<p class="firstline">Deletes the specified reservation.</p> 89<p class="toc_element"> 90 <code><a href="#get">get(project, zone, reservation, x__xgafv=None)</a></code></p> 91<p class="firstline">Retrieves information about the specified reservation.</p> 92<p class="toc_element"> 93 <code><a href="#getIamPolicy">getIamPolicy(project, zone, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</a></code></p> 94<p class="firstline">Gets the access control policy for a resource. May be empty if no such policy or resource exists.</p> 95<p class="toc_element"> 96 <code><a href="#insert">insert(project, zone, body=None, requestId=None, x__xgafv=None)</a></code></p> 97<p class="firstline">Creates a new reservation. For more information, read Reserving zonal resources.</p> 98<p class="toc_element"> 99 <code><a href="#list">list(project, zone, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p> 100<p class="firstline">A list of all the reservations that have been configured for the specified project in specified zone.</p> 101<p class="toc_element"> 102 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 103<p class="firstline">Retrieves the next page of results.</p> 104<p class="toc_element"> 105 <code><a href="#resize">resize(project, zone, reservation, body=None, requestId=None, x__xgafv=None)</a></code></p> 106<p class="firstline">Resizes the reservation (applicable to standalone reservations only). For more information, read Modifying reservations.</p> 107<p class="toc_element"> 108 <code><a href="#setIamPolicy">setIamPolicy(project, zone, resource, body=None, x__xgafv=None)</a></code></p> 109<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.</p> 110<p class="toc_element"> 111 <code><a href="#testIamPermissions">testIamPermissions(project, zone, resource, body=None, x__xgafv=None)</a></code></p> 112<p class="firstline">Returns permissions that a caller has on the specified resource.</p> 113<p class="toc_element"> 114 <code><a href="#update">update(project, zone, reservation, body=None, paths=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p> 115<p class="firstline">Update share settings of the reservation.</p> 116<h3>Method Details</h3> 117<div class="method"> 118 <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code> 119 <pre>Retrieves an aggregated list of reservations. 120 121Args: 122 project: string, Project ID for this request. (required) 123 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) ``` 124 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. 125 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`) 126 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. 127 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. 128 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 129 x__xgafv: string, V1 error format. 130 Allowed values 131 1 - v1 error format 132 2 - v2 error format 133 134Returns: 135 An object of the form: 136 137 { # Contains a list of reservations. 138 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 139 "items": { # A list of Allocation resources. 140 "a_key": { # Name of the scope containing this set of reservations. 141 "reservations": [ # A list of reservations contained in this scope. 142 { # 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. 143 "commitment": "A String", # [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. 144 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 145 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 146 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 147 "kind": "compute#reservation", # [Output Only] Type of the resource. Always compute#reservations for reservations. 148 "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. 149 "satisfiesPzs": True or False, # [Output Only] Reserved for future use. 150 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 151 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 152 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # Share-settings for shared-reservation 153 "folderMap": { # A map of folder id and folder config to specify consumer projects for this shared-reservation. This is only valid when share_type's value is DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS. Folder id should be a string of number, and without "folders/" prefix. 154 "a_key": { # Config for each folder in the share settings. 155 "folderId": "A String", # The folder ID, should be same as the key of this folder config in the parent map. Folder id should be a string of number, and without "folders/" prefix. 156 }, 157 }, 158 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 159 "a_key": { # Config for each project in the share settings. 160 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 161 }, 162 }, 163 "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. 164 "A String", 165 ], 166 "shareType": "A String", # Type of sharing for this shared-reservation 167 }, 168 "specificReservation": { # This reservation type allows to pre allocate specific instance configuration. Next ID: 5 # Reservation for instances with specific machine shapes. 169 "assuredCount": "A String", # [Output Only] Indicates how many instances are actually usable currently. 170 "count": "A String", # Specifies the number of resources that are allocated. 171 "inUseCount": "A String", # [Output Only] Indicates how many instances are in use. 172 "instanceProperties": { # Properties of the SKU instances being reserved. Next ID: 9 # The instance properties for the reservation. 173 "guestAccelerators": [ # Specifies accelerator type and count. 174 { # A specification of the type and number of accelerator cards attached to the instance. 175 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 176 "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. 177 }, 178 ], 179 "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. 180 { 181 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB. 182 "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. 183 }, 184 ], 185 "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. 186 "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. 187 "maintenanceFreezeDurationHours": 42, # Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. 188 "maintenanceInterval": "A String", # For more information about maintenance intervals, see Setting maintenance intervals. 189 "minCpuPlatform": "A String", # Minimum cpu platform the reservation. 190 }, 191 }, 192 "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. 193 "status": "A String", # [Output Only] The status of the reservation. 194 "zone": "A String", # Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment. 195 }, 196 ], 197 "warning": { # Informational warning which replaces the list of reservations when the list is empty. 198 "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. 199 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 200 { 201 "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). 202 "value": "A String", # [Output Only] A warning data value corresponding to the key. 203 }, 204 ], 205 "message": "A String", # [Output Only] A human-readable description of the warning code. 206 }, 207 }, 208 }, 209 "kind": "compute#reservationAggregatedList", # Type of resource. 210 "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. 211 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 212 "unreachables": [ # [Output Only] Unreachable resources. 213 "A String", 214 ], 215 "warning": { # [Output Only] Informational warning message. 216 "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. 217 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 218 { 219 "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). 220 "value": "A String", # [Output Only] A warning data value corresponding to the key. 221 }, 222 ], 223 "message": "A String", # [Output Only] A human-readable description of the warning code. 224 }, 225}</pre> 226</div> 227 228<div class="method"> 229 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code> 230 <pre>Retrieves the next page of results. 231 232Args: 233 previous_request: The request for the previous page. (required) 234 previous_response: The response from the request for the previous page. (required) 235 236Returns: 237 A request object that you can call 'execute()' on to request the next 238 page. Returns None if there are no more items in the collection. 239 </pre> 240</div> 241 242<div class="method"> 243 <code class="details" id="close">close()</code> 244 <pre>Close httplib2 connections.</pre> 245</div> 246 247<div class="method"> 248 <code class="details" id="delete">delete(project, zone, reservation, requestId=None, x__xgafv=None)</code> 249 <pre>Deletes the specified reservation. 250 251Args: 252 project: string, Project ID for this request. (required) 253 zone: string, Name of the zone for this request. (required) 254 reservation: string, Name of the reservation to delete. (required) 255 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). 256 x__xgafv: string, V1 error format. 257 Allowed values 258 1 - v1 error format 259 2 - v2 error format 260 261Returns: 262 An object of the form: 263 264 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/alpha/globalOperations) * [Regional](/compute/docs/reference/rest/alpha/regionOperations) * [Zonal](/compute/docs/reference/rest/alpha/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. 265 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 266 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 267 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 268 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 269 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 270 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 271 { 272 "code": "A String", # [Output Only] The error type identifier for this error. 273 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 274 "message": "A String", # [Output Only] An optional, human-readable error message. 275 }, 276 ], 277 }, 278 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 279 "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. 280 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 281 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 282 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 283 "metadata": { # [Output Only] Service-specific metadata attached to this operation. 284 "a_key": "", # Properties of the object. Contains field @type with type URL. 285 }, 286 "name": "A String", # [Output Only] Name of the operation. 287 "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. 288 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 289 "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. 290 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 291 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 292 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 293 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 294 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 295 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 296 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 297 "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. 298 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 299 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 300 { 301 "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. 302 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 303 { 304 "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). 305 "value": "A String", # [Output Only] A warning data value corresponding to the key. 306 }, 307 ], 308 "message": "A String", # [Output Only] A human-readable description of the warning code. 309 }, 310 ], 311 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 312}</pre> 313</div> 314 315<div class="method"> 316 <code class="details" id="get">get(project, zone, reservation, x__xgafv=None)</code> 317 <pre>Retrieves information about the specified reservation. 318 319Args: 320 project: string, Project ID for this request. (required) 321 zone: string, Name of the zone for this request. (required) 322 reservation: string, Name of the reservation to retrieve. (required) 323 x__xgafv: string, V1 error format. 324 Allowed values 325 1 - v1 error format 326 2 - v2 error format 327 328Returns: 329 An object of the form: 330 331 { # 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. 332 "commitment": "A String", # [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. 333 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 334 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 335 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 336 "kind": "compute#reservation", # [Output Only] Type of the resource. Always compute#reservations for reservations. 337 "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. 338 "satisfiesPzs": True or False, # [Output Only] Reserved for future use. 339 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 340 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 341 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # Share-settings for shared-reservation 342 "folderMap": { # A map of folder id and folder config to specify consumer projects for this shared-reservation. This is only valid when share_type's value is DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS. Folder id should be a string of number, and without "folders/" prefix. 343 "a_key": { # Config for each folder in the share settings. 344 "folderId": "A String", # The folder ID, should be same as the key of this folder config in the parent map. Folder id should be a string of number, and without "folders/" prefix. 345 }, 346 }, 347 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 348 "a_key": { # Config for each project in the share settings. 349 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 350 }, 351 }, 352 "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. 353 "A String", 354 ], 355 "shareType": "A String", # Type of sharing for this shared-reservation 356 }, 357 "specificReservation": { # This reservation type allows to pre allocate specific instance configuration. Next ID: 5 # Reservation for instances with specific machine shapes. 358 "assuredCount": "A String", # [Output Only] Indicates how many instances are actually usable currently. 359 "count": "A String", # Specifies the number of resources that are allocated. 360 "inUseCount": "A String", # [Output Only] Indicates how many instances are in use. 361 "instanceProperties": { # Properties of the SKU instances being reserved. Next ID: 9 # The instance properties for the reservation. 362 "guestAccelerators": [ # Specifies accelerator type and count. 363 { # A specification of the type and number of accelerator cards attached to the instance. 364 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 365 "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. 366 }, 367 ], 368 "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. 369 { 370 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB. 371 "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. 372 }, 373 ], 374 "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. 375 "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. 376 "maintenanceFreezeDurationHours": 42, # Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. 377 "maintenanceInterval": "A String", # For more information about maintenance intervals, see Setting maintenance intervals. 378 "minCpuPlatform": "A String", # Minimum cpu platform the reservation. 379 }, 380 }, 381 "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. 382 "status": "A String", # [Output Only] The status of the reservation. 383 "zone": "A String", # Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment. 384}</pre> 385</div> 386 387<div class="method"> 388 <code class="details" id="getIamPolicy">getIamPolicy(project, zone, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</code> 389 <pre>Gets the access control policy for a resource. May be empty if no such policy or resource exists. 390 391Args: 392 project: string, Project ID for this request. (required) 393 zone: string, The name of the zone for this request. (required) 394 resource: string, Name or id of the resource for this request. (required) 395 optionsRequestedPolicyVersion: integer, Requested IAM Policy version. 396 x__xgafv: string, V1 error format. 397 Allowed values 398 1 - v1 error format 399 2 - v2 error format 400 401Returns: 402 An object of the form: 403 404 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). 405 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. 406 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:[email protected]" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging. 407 "auditLogConfigs": [ # The configuration for logging of each type of permission. 408 { # Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging. 409 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. 410 "A String", 411 ], 412 "ignoreChildExemptions": True or False, # This is deprecated and has no effect. Do not use. 413 "logType": "A String", # The log type that this config enables. 414 }, 415 ], 416 "exemptedMembers": [ # This is deprecated and has no effect. Do not use. 417 "A String", 418 ], 419 "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services. 420 }, 421 ], 422 "bindings": [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. 423 { # Associates `members`, or principals, with a `role`. 424 "bindingId": "A String", # This is deprecated and has no effect. Do not use. 425 "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 426 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 427 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. 428 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 429 "title": "A String", # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. 430 }, 431 "members": [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. 432 "A String", 433 ], 434 "role": "A String", # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 435 }, 436 ], 437 "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. 438 "rules": [ # This is deprecated and has no effect. Do not use. 439 { # This is deprecated and has no effect. Do not use. 440 "action": "A String", # This is deprecated and has no effect. Do not use. 441 "conditions": [ # This is deprecated and has no effect. Do not use. 442 { # This is deprecated and has no effect. Do not use. 443 "iam": "A String", # This is deprecated and has no effect. Do not use. 444 "op": "A String", # This is deprecated and has no effect. Do not use. 445 "svc": "A String", # This is deprecated and has no effect. Do not use. 446 "sys": "A String", # This is deprecated and has no effect. Do not use. 447 "values": [ # This is deprecated and has no effect. Do not use. 448 "A String", 449 ], 450 }, 451 ], 452 "description": "A String", # This is deprecated and has no effect. Do not use. 453 "ins": [ # This is deprecated and has no effect. Do not use. 454 "A String", 455 ], 456 "logConfigs": [ # This is deprecated and has no effect. Do not use. 457 { # This is deprecated and has no effect. Do not use. 458 "cloudAudit": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 459 "authorizationLoggingOptions": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 460 "permissionType": "A String", # This is deprecated and has no effect. Do not use. 461 }, 462 "logName": "A String", # This is deprecated and has no effect. Do not use. 463 }, 464 "counter": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 465 "customFields": [ # This is deprecated and has no effect. Do not use. 466 { # This is deprecated and has no effect. Do not use. 467 "name": "A String", # This is deprecated and has no effect. Do not use. 468 "value": "A String", # This is deprecated and has no effect. Do not use. 469 }, 470 ], 471 "field": "A String", # This is deprecated and has no effect. Do not use. 472 "metric": "A String", # This is deprecated and has no effect. Do not use. 473 }, 474 "dataAccess": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 475 "logMode": "A String", # This is deprecated and has no effect. Do not use. 476 }, 477 }, 478 ], 479 "notIns": [ # This is deprecated and has no effect. Do not use. 480 "A String", 481 ], 482 "permissions": [ # This is deprecated and has no effect. Do not use. 483 "A String", 484 ], 485 }, 486 ], 487 "version": 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 488}</pre> 489</div> 490 491<div class="method"> 492 <code class="details" id="insert">insert(project, zone, body=None, requestId=None, x__xgafv=None)</code> 493 <pre>Creates a new reservation. For more information, read Reserving zonal resources. 494 495Args: 496 project: string, Project ID for this request. (required) 497 zone: string, Name of the zone for this request. (required) 498 body: object, The request body. 499 The object takes the form of: 500 501{ # 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. 502 "commitment": "A String", # [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. 503 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 504 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 505 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 506 "kind": "compute#reservation", # [Output Only] Type of the resource. Always compute#reservations for reservations. 507 "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. 508 "satisfiesPzs": True or False, # [Output Only] Reserved for future use. 509 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 510 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 511 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # Share-settings for shared-reservation 512 "folderMap": { # A map of folder id and folder config to specify consumer projects for this shared-reservation. This is only valid when share_type's value is DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS. Folder id should be a string of number, and without "folders/" prefix. 513 "a_key": { # Config for each folder in the share settings. 514 "folderId": "A String", # The folder ID, should be same as the key of this folder config in the parent map. Folder id should be a string of number, and without "folders/" prefix. 515 }, 516 }, 517 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 518 "a_key": { # Config for each project in the share settings. 519 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 520 }, 521 }, 522 "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. 523 "A String", 524 ], 525 "shareType": "A String", # Type of sharing for this shared-reservation 526 }, 527 "specificReservation": { # This reservation type allows to pre allocate specific instance configuration. Next ID: 5 # Reservation for instances with specific machine shapes. 528 "assuredCount": "A String", # [Output Only] Indicates how many instances are actually usable currently. 529 "count": "A String", # Specifies the number of resources that are allocated. 530 "inUseCount": "A String", # [Output Only] Indicates how many instances are in use. 531 "instanceProperties": { # Properties of the SKU instances being reserved. Next ID: 9 # The instance properties for the reservation. 532 "guestAccelerators": [ # Specifies accelerator type and count. 533 { # A specification of the type and number of accelerator cards attached to the instance. 534 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 535 "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. 536 }, 537 ], 538 "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. 539 { 540 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB. 541 "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. 542 }, 543 ], 544 "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. 545 "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. 546 "maintenanceFreezeDurationHours": 42, # Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. 547 "maintenanceInterval": "A String", # For more information about maintenance intervals, see Setting maintenance intervals. 548 "minCpuPlatform": "A String", # Minimum cpu platform the reservation. 549 }, 550 }, 551 "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. 552 "status": "A String", # [Output Only] The status of the reservation. 553 "zone": "A String", # Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment. 554} 555 556 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). 557 x__xgafv: string, V1 error format. 558 Allowed values 559 1 - v1 error format 560 2 - v2 error format 561 562Returns: 563 An object of the form: 564 565 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/alpha/globalOperations) * [Regional](/compute/docs/reference/rest/alpha/regionOperations) * [Zonal](/compute/docs/reference/rest/alpha/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. 566 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 567 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 568 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 569 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 570 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 571 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 572 { 573 "code": "A String", # [Output Only] The error type identifier for this error. 574 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 575 "message": "A String", # [Output Only] An optional, human-readable error message. 576 }, 577 ], 578 }, 579 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 580 "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. 581 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 582 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 583 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 584 "metadata": { # [Output Only] Service-specific metadata attached to this operation. 585 "a_key": "", # Properties of the object. Contains field @type with type URL. 586 }, 587 "name": "A String", # [Output Only] Name of the operation. 588 "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. 589 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 590 "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. 591 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 592 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 593 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 594 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 595 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 596 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 597 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 598 "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. 599 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 600 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 601 { 602 "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. 603 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 604 { 605 "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). 606 "value": "A String", # [Output Only] A warning data value corresponding to the key. 607 }, 608 ], 609 "message": "A String", # [Output Only] A human-readable description of the warning code. 610 }, 611 ], 612 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 613}</pre> 614</div> 615 616<div class="method"> 617 <code class="details" id="list">list(project, zone, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code> 618 <pre>A list of all the reservations that have been configured for the specified project in specified zone. 619 620Args: 621 project: string, Project ID for this request. (required) 622 zone: string, Name of the zone for this request. (required) 623 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) ``` 624 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`) 625 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. 626 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. 627 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 628 x__xgafv: string, V1 error format. 629 Allowed values 630 1 - v1 error format 631 2 - v2 error format 632 633Returns: 634 An object of the form: 635 636 { 637 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 638 "items": [ # [Output Only] A list of Allocation resources. 639 { # 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. 640 "commitment": "A String", # [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. 641 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 642 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 643 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 644 "kind": "compute#reservation", # [Output Only] Type of the resource. Always compute#reservations for reservations. 645 "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. 646 "satisfiesPzs": True or False, # [Output Only] Reserved for future use. 647 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 648 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 649 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # Share-settings for shared-reservation 650 "folderMap": { # A map of folder id and folder config to specify consumer projects for this shared-reservation. This is only valid when share_type's value is DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS. Folder id should be a string of number, and without "folders/" prefix. 651 "a_key": { # Config for each folder in the share settings. 652 "folderId": "A String", # The folder ID, should be same as the key of this folder config in the parent map. Folder id should be a string of number, and without "folders/" prefix. 653 }, 654 }, 655 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 656 "a_key": { # Config for each project in the share settings. 657 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 658 }, 659 }, 660 "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. 661 "A String", 662 ], 663 "shareType": "A String", # Type of sharing for this shared-reservation 664 }, 665 "specificReservation": { # This reservation type allows to pre allocate specific instance configuration. Next ID: 5 # Reservation for instances with specific machine shapes. 666 "assuredCount": "A String", # [Output Only] Indicates how many instances are actually usable currently. 667 "count": "A String", # Specifies the number of resources that are allocated. 668 "inUseCount": "A String", # [Output Only] Indicates how many instances are in use. 669 "instanceProperties": { # Properties of the SKU instances being reserved. Next ID: 9 # The instance properties for the reservation. 670 "guestAccelerators": [ # Specifies accelerator type and count. 671 { # A specification of the type and number of accelerator cards attached to the instance. 672 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 673 "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. 674 }, 675 ], 676 "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. 677 { 678 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB. 679 "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. 680 }, 681 ], 682 "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. 683 "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. 684 "maintenanceFreezeDurationHours": 42, # Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. 685 "maintenanceInterval": "A String", # For more information about maintenance intervals, see Setting maintenance intervals. 686 "minCpuPlatform": "A String", # Minimum cpu platform the reservation. 687 }, 688 }, 689 "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. 690 "status": "A String", # [Output Only] The status of the reservation. 691 "zone": "A String", # Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment. 692 }, 693 ], 694 "kind": "compute#reservationList", # [Output Only] Type of resource.Always compute#reservationsList for listsof reservations 695 "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. 696 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 697 "warning": { # [Output Only] Informational warning message. 698 "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. 699 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 700 { 701 "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). 702 "value": "A String", # [Output Only] A warning data value corresponding to the key. 703 }, 704 ], 705 "message": "A String", # [Output Only] A human-readable description of the warning code. 706 }, 707}</pre> 708</div> 709 710<div class="method"> 711 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 712 <pre>Retrieves the next page of results. 713 714Args: 715 previous_request: The request for the previous page. (required) 716 previous_response: The response from the request for the previous page. (required) 717 718Returns: 719 A request object that you can call 'execute()' on to request the next 720 page. Returns None if there are no more items in the collection. 721 </pre> 722</div> 723 724<div class="method"> 725 <code class="details" id="resize">resize(project, zone, reservation, body=None, requestId=None, x__xgafv=None)</code> 726 <pre>Resizes the reservation (applicable to standalone reservations only). For more information, read Modifying reservations. 727 728Args: 729 project: string, Project ID for this request. (required) 730 zone: string, Name of the zone for this request. (required) 731 reservation: string, Name of the reservation to update. (required) 732 body: object, The request body. 733 The object takes the form of: 734 735{ 736 "specificSkuCount": "A String", # Number of allocated resources can be resized with minimum = 1 and maximum = 1000. 737} 738 739 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). 740 x__xgafv: string, V1 error format. 741 Allowed values 742 1 - v1 error format 743 2 - v2 error format 744 745Returns: 746 An object of the form: 747 748 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/alpha/globalOperations) * [Regional](/compute/docs/reference/rest/alpha/regionOperations) * [Zonal](/compute/docs/reference/rest/alpha/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. 749 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 750 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 751 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 752 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 753 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 754 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 755 { 756 "code": "A String", # [Output Only] The error type identifier for this error. 757 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 758 "message": "A String", # [Output Only] An optional, human-readable error message. 759 }, 760 ], 761 }, 762 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 763 "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. 764 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 765 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 766 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 767 "metadata": { # [Output Only] Service-specific metadata attached to this operation. 768 "a_key": "", # Properties of the object. Contains field @type with type URL. 769 }, 770 "name": "A String", # [Output Only] Name of the operation. 771 "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. 772 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 773 "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. 774 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 775 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 776 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 777 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 778 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 779 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 780 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 781 "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. 782 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 783 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 784 { 785 "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. 786 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 787 { 788 "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). 789 "value": "A String", # [Output Only] A warning data value corresponding to the key. 790 }, 791 ], 792 "message": "A String", # [Output Only] A human-readable description of the warning code. 793 }, 794 ], 795 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 796}</pre> 797</div> 798 799<div class="method"> 800 <code class="details" id="setIamPolicy">setIamPolicy(project, zone, resource, body=None, x__xgafv=None)</code> 801 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. 802 803Args: 804 project: string, Project ID for this request. (required) 805 zone: string, The name of the zone for this request. (required) 806 resource: string, Name or id of the resource for this request. (required) 807 body: object, The request body. 808 The object takes the form of: 809 810{ 811 "bindings": [ # Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings. 812 { # Associates `members`, or principals, with a `role`. 813 "bindingId": "A String", # This is deprecated and has no effect. Do not use. 814 "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 815 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 816 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. 817 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 818 "title": "A String", # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. 819 }, 820 "members": [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. 821 "A String", 822 ], 823 "role": "A String", # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 824 }, 825 ], 826 "etag": "A String", # Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag. 827 "policy": { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them. 828 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. 829 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:[email protected]" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging. 830 "auditLogConfigs": [ # The configuration for logging of each type of permission. 831 { # Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging. 832 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. 833 "A String", 834 ], 835 "ignoreChildExemptions": True or False, # This is deprecated and has no effect. Do not use. 836 "logType": "A String", # The log type that this config enables. 837 }, 838 ], 839 "exemptedMembers": [ # This is deprecated and has no effect. Do not use. 840 "A String", 841 ], 842 "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services. 843 }, 844 ], 845 "bindings": [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. 846 { # Associates `members`, or principals, with a `role`. 847 "bindingId": "A String", # This is deprecated and has no effect. Do not use. 848 "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 849 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 850 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. 851 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 852 "title": "A String", # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. 853 }, 854 "members": [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. 855 "A String", 856 ], 857 "role": "A String", # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 858 }, 859 ], 860 "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. 861 "rules": [ # This is deprecated and has no effect. Do not use. 862 { # This is deprecated and has no effect. Do not use. 863 "action": "A String", # This is deprecated and has no effect. Do not use. 864 "conditions": [ # This is deprecated and has no effect. Do not use. 865 { # This is deprecated and has no effect. Do not use. 866 "iam": "A String", # This is deprecated and has no effect. Do not use. 867 "op": "A String", # This is deprecated and has no effect. Do not use. 868 "svc": "A String", # This is deprecated and has no effect. Do not use. 869 "sys": "A String", # This is deprecated and has no effect. Do not use. 870 "values": [ # This is deprecated and has no effect. Do not use. 871 "A String", 872 ], 873 }, 874 ], 875 "description": "A String", # This is deprecated and has no effect. Do not use. 876 "ins": [ # This is deprecated and has no effect. Do not use. 877 "A String", 878 ], 879 "logConfigs": [ # This is deprecated and has no effect. Do not use. 880 { # This is deprecated and has no effect. Do not use. 881 "cloudAudit": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 882 "authorizationLoggingOptions": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 883 "permissionType": "A String", # This is deprecated and has no effect. Do not use. 884 }, 885 "logName": "A String", # This is deprecated and has no effect. Do not use. 886 }, 887 "counter": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 888 "customFields": [ # This is deprecated and has no effect. Do not use. 889 { # This is deprecated and has no effect. Do not use. 890 "name": "A String", # This is deprecated and has no effect. Do not use. 891 "value": "A String", # This is deprecated and has no effect. Do not use. 892 }, 893 ], 894 "field": "A String", # This is deprecated and has no effect. Do not use. 895 "metric": "A String", # This is deprecated and has no effect. Do not use. 896 }, 897 "dataAccess": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 898 "logMode": "A String", # This is deprecated and has no effect. Do not use. 899 }, 900 }, 901 ], 902 "notIns": [ # This is deprecated and has no effect. Do not use. 903 "A String", 904 ], 905 "permissions": [ # This is deprecated and has no effect. Do not use. 906 "A String", 907 ], 908 }, 909 ], 910 "version": 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 911 }, 912} 913 914 x__xgafv: string, V1 error format. 915 Allowed values 916 1 - v1 error format 917 2 - v2 error format 918 919Returns: 920 An object of the form: 921 922 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). 923 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. 924 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:[email protected]" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging. 925 "auditLogConfigs": [ # The configuration for logging of each type of permission. 926 { # Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging. 927 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. 928 "A String", 929 ], 930 "ignoreChildExemptions": True or False, # This is deprecated and has no effect. Do not use. 931 "logType": "A String", # The log type that this config enables. 932 }, 933 ], 934 "exemptedMembers": [ # This is deprecated and has no effect. Do not use. 935 "A String", 936 ], 937 "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services. 938 }, 939 ], 940 "bindings": [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. 941 { # Associates `members`, or principals, with a `role`. 942 "bindingId": "A String", # This is deprecated and has no effect. Do not use. 943 "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 944 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 945 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. 946 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 947 "title": "A String", # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. 948 }, 949 "members": [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. 950 "A String", 951 ], 952 "role": "A String", # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 953 }, 954 ], 955 "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. 956 "rules": [ # This is deprecated and has no effect. Do not use. 957 { # This is deprecated and has no effect. Do not use. 958 "action": "A String", # This is deprecated and has no effect. Do not use. 959 "conditions": [ # This is deprecated and has no effect. Do not use. 960 { # This is deprecated and has no effect. Do not use. 961 "iam": "A String", # This is deprecated and has no effect. Do not use. 962 "op": "A String", # This is deprecated and has no effect. Do not use. 963 "svc": "A String", # This is deprecated and has no effect. Do not use. 964 "sys": "A String", # This is deprecated and has no effect. Do not use. 965 "values": [ # This is deprecated and has no effect. Do not use. 966 "A String", 967 ], 968 }, 969 ], 970 "description": "A String", # This is deprecated and has no effect. Do not use. 971 "ins": [ # This is deprecated and has no effect. Do not use. 972 "A String", 973 ], 974 "logConfigs": [ # This is deprecated and has no effect. Do not use. 975 { # This is deprecated and has no effect. Do not use. 976 "cloudAudit": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 977 "authorizationLoggingOptions": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 978 "permissionType": "A String", # This is deprecated and has no effect. Do not use. 979 }, 980 "logName": "A String", # This is deprecated and has no effect. Do not use. 981 }, 982 "counter": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 983 "customFields": [ # This is deprecated and has no effect. Do not use. 984 { # This is deprecated and has no effect. Do not use. 985 "name": "A String", # This is deprecated and has no effect. Do not use. 986 "value": "A String", # This is deprecated and has no effect. Do not use. 987 }, 988 ], 989 "field": "A String", # This is deprecated and has no effect. Do not use. 990 "metric": "A String", # This is deprecated and has no effect. Do not use. 991 }, 992 "dataAccess": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 993 "logMode": "A String", # This is deprecated and has no effect. Do not use. 994 }, 995 }, 996 ], 997 "notIns": [ # This is deprecated and has no effect. Do not use. 998 "A String", 999 ], 1000 "permissions": [ # This is deprecated and has no effect. Do not use. 1001 "A String", 1002 ], 1003 }, 1004 ], 1005 "version": 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 1006}</pre> 1007</div> 1008 1009<div class="method"> 1010 <code class="details" id="testIamPermissions">testIamPermissions(project, zone, resource, body=None, x__xgafv=None)</code> 1011 <pre>Returns permissions that a caller has on the specified resource. 1012 1013Args: 1014 project: string, Project ID for this request. (required) 1015 zone: string, The name of the zone for this request. (required) 1016 resource: string, Name or id of the resource for this request. (required) 1017 body: object, The request body. 1018 The object takes the form of: 1019 1020{ 1021 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. 1022 "A String", 1023 ], 1024} 1025 1026 x__xgafv: string, V1 error format. 1027 Allowed values 1028 1 - v1 error format 1029 2 - v2 error format 1030 1031Returns: 1032 An object of the form: 1033 1034 { 1035 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. 1036 "A String", 1037 ], 1038}</pre> 1039</div> 1040 1041<div class="method"> 1042 <code class="details" id="update">update(project, zone, reservation, body=None, paths=None, requestId=None, updateMask=None, x__xgafv=None)</code> 1043 <pre>Update share settings of the reservation. 1044 1045Args: 1046 project: string, Project ID for this request. (required) 1047 zone: string, Name of the zone for this request. (required) 1048 reservation: string, Name of the reservation to update. (required) 1049 body: object, The request body. 1050 The object takes the form of: 1051 1052{ # 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. 1053 "commitment": "A String", # [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. 1054 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 1055 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 1056 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1057 "kind": "compute#reservation", # [Output Only] Type of the resource. Always compute#reservations for reservations. 1058 "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. 1059 "satisfiesPzs": True or False, # [Output Only] Reserved for future use. 1060 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 1061 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 1062 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # Share-settings for shared-reservation 1063 "folderMap": { # A map of folder id and folder config to specify consumer projects for this shared-reservation. This is only valid when share_type's value is DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS. Folder id should be a string of number, and without "folders/" prefix. 1064 "a_key": { # Config for each folder in the share settings. 1065 "folderId": "A String", # The folder ID, should be same as the key of this folder config in the parent map. Folder id should be a string of number, and without "folders/" prefix. 1066 }, 1067 }, 1068 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 1069 "a_key": { # Config for each project in the share settings. 1070 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 1071 }, 1072 }, 1073 "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. 1074 "A String", 1075 ], 1076 "shareType": "A String", # Type of sharing for this shared-reservation 1077 }, 1078 "specificReservation": { # This reservation type allows to pre allocate specific instance configuration. Next ID: 5 # Reservation for instances with specific machine shapes. 1079 "assuredCount": "A String", # [Output Only] Indicates how many instances are actually usable currently. 1080 "count": "A String", # Specifies the number of resources that are allocated. 1081 "inUseCount": "A String", # [Output Only] Indicates how many instances are in use. 1082 "instanceProperties": { # Properties of the SKU instances being reserved. Next ID: 9 # The instance properties for the reservation. 1083 "guestAccelerators": [ # Specifies accelerator type and count. 1084 { # A specification of the type and number of accelerator cards attached to the instance. 1085 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 1086 "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. 1087 }, 1088 ], 1089 "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. 1090 { 1091 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB. 1092 "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. 1093 }, 1094 ], 1095 "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. 1096 "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. 1097 "maintenanceFreezeDurationHours": 42, # Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. 1098 "maintenanceInterval": "A String", # For more information about maintenance intervals, see Setting maintenance intervals. 1099 "minCpuPlatform": "A String", # Minimum cpu platform the reservation. 1100 }, 1101 }, 1102 "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. 1103 "status": "A String", # [Output Only] The status of the reservation. 1104 "zone": "A String", # Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment. 1105} 1106 1107 paths: string, A parameter (repeated) 1108 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). 1109 updateMask: string, Update_mask indicates fields to be updated as part of this request. 1110 x__xgafv: string, V1 error format. 1111 Allowed values 1112 1 - v1 error format 1113 2 - v2 error format 1114 1115Returns: 1116 An object of the form: 1117 1118 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/alpha/globalOperations) * [Regional](/compute/docs/reference/rest/alpha/regionOperations) * [Zonal](/compute/docs/reference/rest/alpha/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. 1119 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 1120 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 1121 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 1122 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 1123 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 1124 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 1125 { 1126 "code": "A String", # [Output Only] The error type identifier for this error. 1127 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 1128 "message": "A String", # [Output Only] An optional, human-readable error message. 1129 }, 1130 ], 1131 }, 1132 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 1133 "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. 1134 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 1135 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 1136 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 1137 "metadata": { # [Output Only] Service-specific metadata attached to this operation. 1138 "a_key": "", # Properties of the object. Contains field @type with type URL. 1139 }, 1140 "name": "A String", # [Output Only] Name of the operation. 1141 "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. 1142 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 1143 "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. 1144 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 1145 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1146 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 1147 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 1148 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 1149 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 1150 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 1151 "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. 1152 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 1153 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1154 { 1155 "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. 1156 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 1157 { 1158 "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). 1159 "value": "A String", # [Output Only] A warning data value corresponding to the key. 1160 }, 1161 ], 1162 "message": "A String", # [Output Only] A human-readable description of the warning code. 1163 }, 1164 ], 1165 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 1166}</pre> 1167</div> 1168 1169</body></html>