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.futureReservations.html">futureReservations</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 future 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="#cancel">cancel(project, zone, futureReservation, requestId=None, x__xgafv=None)</a></code></p> 85<p class="firstline">Cancel the specified future reservation.</p> 86<p class="toc_element"> 87 <code><a href="#close">close()</a></code></p> 88<p class="firstline">Close httplib2 connections.</p> 89<p class="toc_element"> 90 <code><a href="#delete">delete(project, zone, futureReservation, requestId=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Deletes the specified future reservation.</p> 92<p class="toc_element"> 93 <code><a href="#get">get(project, zone, futureReservation, x__xgafv=None)</a></code></p> 94<p class="firstline">Retrieves information about the specified future reservation.</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 Future Reservation.</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 future 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="#update">update(project, zone, futureReservation, body=None, paths=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p> 106<p class="firstline">Updates the specified future reservation.</p> 107<h3>Method Details</h3> 108<div class="method"> 109 <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code> 110 <pre>Retrieves an aggregated list of future reservations. 111 112Args: 113 project: string, Project ID for this request. (required) 114 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` 115 includeAllScopes: boolean, Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. 116 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) 117 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 118 pageToken: string, Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. 119 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 120 x__xgafv: string, V1 error format. 121 Allowed values 122 1 - v1 error format 123 2 - v2 error format 124 125Returns: 126 An object of the form: 127 128 { # Contains a list of future reservations. 129 "etag": "A String", 130 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 131 "items": { # A list of Future reservation resources. 132 "a_key": { # Name of the scope containing this set of future reservations. 133 "futureReservations": [ # A list of future reservations contained in this scope. 134 { 135 "creationTimestamp": "A String", # [Output Only] The creation timestamp for this future reservation in RFC3339 text format. 136 "description": "A String", # An optional description of this resource. Provide this property when you create the future reservation. 137 "id": "A String", # [Output Only] A unique identifier for this future reservation. The server defines this identifier. 138 "kind": "compute#futureReservation", 139 "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. 140 "namePrefix": "A String", # Name prefix for the reservations to be created at the time of delivery. The name prefix must comply with RFC1035. Maximum allowed length for name prefix is 20. Automatically created reservations name format will be -date-####. 141 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 142 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 143 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # List of Projects/Folders to share with. 144 "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. 145 "a_key": { # Config for each folder in the share settings. 146 "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. 147 }, 148 }, 149 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 150 "a_key": { # Config for each project in the share settings. 151 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 152 }, 153 }, 154 "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. 155 "A String", 156 ], 157 "shareType": "A String", # Type of sharing for this shared-reservation 158 }, 159 "specificSkuProperties": { # Future Reservation configuration to indicate instance properties and total count. 160 "instanceProperties": { # Properties of the SKU instances being reserved. Next ID: 9 # Properties of the SKU instances being reserved. 161 "guestAccelerators": [ # Specifies accelerator type and count. 162 { # A specification of the type and number of accelerator cards attached to the instance. 163 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 164 "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. 165 }, 166 ], 167 "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. 168 { 169 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB. 170 "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. 171 }, 172 ], 173 "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. 174 "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. 175 "maintenanceFreezeDurationHours": 42, # Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. 176 "maintenanceInterval": "A String", # For more information about maintenance intervals, see Setting maintenance intervals. 177 "minCpuPlatform": "A String", # Minimum cpu platform the reservation. 178 }, 179 "totalCount": "A String", # Total number of instances for which capacity assurance is requested at a future time period. 180 }, 181 "status": { # [Output only] Represents status related to the future reservation. # [Output only] Status of the Future Reservation 182 "autoCreatedReservations": [ # Fully qualified urls of the automatically created reservations at start_time. 183 "A String", 184 ], 185 "fulfilledCount": "A String", # This count indicates the fulfilled capacity so far. This is set during "PROVISIONING" state. This count also includes capacity delivered as part of existing matching reservations. 186 "lockTime": "A String", # Time when Future Reservation would become LOCKED, after which no modifications to Future Reservation will be allowed. Applicable only after the Future Reservation is in the APPROVED state. The lock_time is an RFC3339 string. The procurement_status will transition to PROCURING state at this time. 187 "procurementStatus": "A String", # Current state of this Future Reservation 188 }, 189 "timeWindow": { # Time window for this Future Reservation. 190 "duration": { # A Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". Range is approximately 10,000 years. 191 "nanos": 42, # Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. 192 "seconds": "A String", # Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years 193 }, 194 "endTime": "A String", 195 "startTime": "A String", # Start time of the Future Reservation. The start_time is an RFC3339 string. 196 }, 197 "zone": "A String", # [Output Only] URL of the Zone where this future reservation resides. 198 }, 199 ], 200 "warning": { # Informational warning which replaces the list of future reservations when the list is empty. 201 "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. 202 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 203 { 204 "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). 205 "value": "A String", # [Output Only] A warning data value corresponding to the key. 206 }, 207 ], 208 "message": "A String", # [Output Only] A human-readable description of the warning code. 209 }, 210 }, 211 }, 212 "kind": "compute#futureReservationsAggregatedListResponse", 213 "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. 214 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 215 "unreachables": [ # [Output Only] Unreachable resources. 216 "A String", 217 ], 218 "warning": { # [Output Only] Informational warning message. 219 "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. 220 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 221 { 222 "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). 223 "value": "A String", # [Output Only] A warning data value corresponding to the key. 224 }, 225 ], 226 "message": "A String", # [Output Only] A human-readable description of the warning code. 227 }, 228}</pre> 229</div> 230 231<div class="method"> 232 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code> 233 <pre>Retrieves the next page of results. 234 235Args: 236 previous_request: The request for the previous page. (required) 237 previous_response: The response from the request for the previous page. (required) 238 239Returns: 240 A request object that you can call 'execute()' on to request the next 241 page. Returns None if there are no more items in the collection. 242 </pre> 243</div> 244 245<div class="method"> 246 <code class="details" id="cancel">cancel(project, zone, futureReservation, requestId=None, x__xgafv=None)</code> 247 <pre>Cancel the specified future reservation. 248 249Args: 250 project: string, Project ID for this request. (required) 251 zone: string, Name of the zone for this request. Name should conform to RFC1035. (required) 252 futureReservation: string, Name of the future reservation to retrieve. Name should conform to RFC1035. (required) 253 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). 254 x__xgafv: string, V1 error format. 255 Allowed values 256 1 - v1 error format 257 2 - v2 error format 258 259Returns: 260 An object of the form: 261 262 { # 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. 263 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 264 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 265 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 266 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 267 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 268 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 269 { 270 "code": "A String", # [Output Only] The error type identifier for this error. 271 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 272 "message": "A String", # [Output Only] An optional, human-readable error message. 273 }, 274 ], 275 }, 276 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 277 "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. 278 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 279 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 280 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 281 "metadata": { # [Output Only] Service-specific metadata attached to this operation. 282 "a_key": "", # Properties of the object. Contains field @type with type URL. 283 }, 284 "name": "A String", # [Output Only] Name of the operation. 285 "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. 286 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 287 "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. 288 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 289 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 290 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 291 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 292 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 293 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 294 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 295 "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. 296 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 297 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 298 { 299 "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. 300 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 301 { 302 "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). 303 "value": "A String", # [Output Only] A warning data value corresponding to the key. 304 }, 305 ], 306 "message": "A String", # [Output Only] A human-readable description of the warning code. 307 }, 308 ], 309 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 310}</pre> 311</div> 312 313<div class="method"> 314 <code class="details" id="close">close()</code> 315 <pre>Close httplib2 connections.</pre> 316</div> 317 318<div class="method"> 319 <code class="details" id="delete">delete(project, zone, futureReservation, requestId=None, x__xgafv=None)</code> 320 <pre>Deletes the specified future reservation. 321 322Args: 323 project: string, Project ID for this request. (required) 324 zone: string, Name of the zone for this request. Name should conform to RFC1035. (required) 325 futureReservation: string, Name of the future reservation to retrieve. Name should conform to RFC1035. (required) 326 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). 327 x__xgafv: string, V1 error format. 328 Allowed values 329 1 - v1 error format 330 2 - v2 error format 331 332Returns: 333 An object of the form: 334 335 { # 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. 336 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 337 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 338 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 339 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 340 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 341 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 342 { 343 "code": "A String", # [Output Only] The error type identifier for this error. 344 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 345 "message": "A String", # [Output Only] An optional, human-readable error message. 346 }, 347 ], 348 }, 349 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 350 "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. 351 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 352 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 353 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 354 "metadata": { # [Output Only] Service-specific metadata attached to this operation. 355 "a_key": "", # Properties of the object. Contains field @type with type URL. 356 }, 357 "name": "A String", # [Output Only] Name of the operation. 358 "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. 359 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 360 "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. 361 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 362 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 363 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 364 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 365 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 366 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 367 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 368 "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. 369 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 370 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 371 { 372 "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. 373 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 374 { 375 "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). 376 "value": "A String", # [Output Only] A warning data value corresponding to the key. 377 }, 378 ], 379 "message": "A String", # [Output Only] A human-readable description of the warning code. 380 }, 381 ], 382 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 383}</pre> 384</div> 385 386<div class="method"> 387 <code class="details" id="get">get(project, zone, futureReservation, x__xgafv=None)</code> 388 <pre>Retrieves information about the specified future reservation. 389 390Args: 391 project: string, Project ID for this request. (required) 392 zone: string, Name of the zone for this request. Name should conform to RFC1035. (required) 393 futureReservation: string, Name of the future reservation to retrieve. Name should conform to RFC1035. (required) 394 x__xgafv: string, V1 error format. 395 Allowed values 396 1 - v1 error format 397 2 - v2 error format 398 399Returns: 400 An object of the form: 401 402 { 403 "creationTimestamp": "A String", # [Output Only] The creation timestamp for this future reservation in RFC3339 text format. 404 "description": "A String", # An optional description of this resource. Provide this property when you create the future reservation. 405 "id": "A String", # [Output Only] A unique identifier for this future reservation. The server defines this identifier. 406 "kind": "compute#futureReservation", 407 "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. 408 "namePrefix": "A String", # Name prefix for the reservations to be created at the time of delivery. The name prefix must comply with RFC1035. Maximum allowed length for name prefix is 20. Automatically created reservations name format will be -date-####. 409 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 410 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 411 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # List of Projects/Folders to share with. 412 "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. 413 "a_key": { # Config for each folder in the share settings. 414 "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. 415 }, 416 }, 417 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 418 "a_key": { # Config for each project in the share settings. 419 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 420 }, 421 }, 422 "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. 423 "A String", 424 ], 425 "shareType": "A String", # Type of sharing for this shared-reservation 426 }, 427 "specificSkuProperties": { # Future Reservation configuration to indicate instance properties and total count. 428 "instanceProperties": { # Properties of the SKU instances being reserved. Next ID: 9 # Properties of the SKU instances being reserved. 429 "guestAccelerators": [ # Specifies accelerator type and count. 430 { # A specification of the type and number of accelerator cards attached to the instance. 431 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 432 "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. 433 }, 434 ], 435 "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. 436 { 437 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB. 438 "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. 439 }, 440 ], 441 "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. 442 "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. 443 "maintenanceFreezeDurationHours": 42, # Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. 444 "maintenanceInterval": "A String", # For more information about maintenance intervals, see Setting maintenance intervals. 445 "minCpuPlatform": "A String", # Minimum cpu platform the reservation. 446 }, 447 "totalCount": "A String", # Total number of instances for which capacity assurance is requested at a future time period. 448 }, 449 "status": { # [Output only] Represents status related to the future reservation. # [Output only] Status of the Future Reservation 450 "autoCreatedReservations": [ # Fully qualified urls of the automatically created reservations at start_time. 451 "A String", 452 ], 453 "fulfilledCount": "A String", # This count indicates the fulfilled capacity so far. This is set during "PROVISIONING" state. This count also includes capacity delivered as part of existing matching reservations. 454 "lockTime": "A String", # Time when Future Reservation would become LOCKED, after which no modifications to Future Reservation will be allowed. Applicable only after the Future Reservation is in the APPROVED state. The lock_time is an RFC3339 string. The procurement_status will transition to PROCURING state at this time. 455 "procurementStatus": "A String", # Current state of this Future Reservation 456 }, 457 "timeWindow": { # Time window for this Future Reservation. 458 "duration": { # A Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". Range is approximately 10,000 years. 459 "nanos": 42, # Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. 460 "seconds": "A String", # Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years 461 }, 462 "endTime": "A String", 463 "startTime": "A String", # Start time of the Future Reservation. The start_time is an RFC3339 string. 464 }, 465 "zone": "A String", # [Output Only] URL of the Zone where this future reservation resides. 466}</pre> 467</div> 468 469<div class="method"> 470 <code class="details" id="insert">insert(project, zone, body=None, requestId=None, x__xgafv=None)</code> 471 <pre>Creates a new Future Reservation. 472 473Args: 474 project: string, Project ID for this request. (required) 475 zone: string, Name of the zone for this request. Name should conform to RFC1035. (required) 476 body: object, The request body. 477 The object takes the form of: 478 479{ 480 "creationTimestamp": "A String", # [Output Only] The creation timestamp for this future reservation in RFC3339 text format. 481 "description": "A String", # An optional description of this resource. Provide this property when you create the future reservation. 482 "id": "A String", # [Output Only] A unique identifier for this future reservation. The server defines this identifier. 483 "kind": "compute#futureReservation", 484 "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. 485 "namePrefix": "A String", # Name prefix for the reservations to be created at the time of delivery. The name prefix must comply with RFC1035. Maximum allowed length for name prefix is 20. Automatically created reservations name format will be -date-####. 486 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 487 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 488 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # List of Projects/Folders to share with. 489 "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. 490 "a_key": { # Config for each folder in the share settings. 491 "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. 492 }, 493 }, 494 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 495 "a_key": { # Config for each project in the share settings. 496 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 497 }, 498 }, 499 "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. 500 "A String", 501 ], 502 "shareType": "A String", # Type of sharing for this shared-reservation 503 }, 504 "specificSkuProperties": { # Future Reservation configuration to indicate instance properties and total count. 505 "instanceProperties": { # Properties of the SKU instances being reserved. Next ID: 9 # Properties of the SKU instances being reserved. 506 "guestAccelerators": [ # Specifies accelerator type and count. 507 { # A specification of the type and number of accelerator cards attached to the instance. 508 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 509 "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. 510 }, 511 ], 512 "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. 513 { 514 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB. 515 "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. 516 }, 517 ], 518 "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. 519 "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. 520 "maintenanceFreezeDurationHours": 42, # Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. 521 "maintenanceInterval": "A String", # For more information about maintenance intervals, see Setting maintenance intervals. 522 "minCpuPlatform": "A String", # Minimum cpu platform the reservation. 523 }, 524 "totalCount": "A String", # Total number of instances for which capacity assurance is requested at a future time period. 525 }, 526 "status": { # [Output only] Represents status related to the future reservation. # [Output only] Status of the Future Reservation 527 "autoCreatedReservations": [ # Fully qualified urls of the automatically created reservations at start_time. 528 "A String", 529 ], 530 "fulfilledCount": "A String", # This count indicates the fulfilled capacity so far. This is set during "PROVISIONING" state. This count also includes capacity delivered as part of existing matching reservations. 531 "lockTime": "A String", # Time when Future Reservation would become LOCKED, after which no modifications to Future Reservation will be allowed. Applicable only after the Future Reservation is in the APPROVED state. The lock_time is an RFC3339 string. The procurement_status will transition to PROCURING state at this time. 532 "procurementStatus": "A String", # Current state of this Future Reservation 533 }, 534 "timeWindow": { # Time window for this Future Reservation. 535 "duration": { # A Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". Range is approximately 10,000 years. 536 "nanos": 42, # Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. 537 "seconds": "A String", # Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years 538 }, 539 "endTime": "A String", 540 "startTime": "A String", # Start time of the Future Reservation. The start_time is an RFC3339 string. 541 }, 542 "zone": "A String", # [Output Only] URL of the Zone where this future reservation resides. 543} 544 545 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). 546 x__xgafv: string, V1 error format. 547 Allowed values 548 1 - v1 error format 549 2 - v2 error format 550 551Returns: 552 An object of the form: 553 554 { # 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. 555 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 556 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 557 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 558 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 559 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 560 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 561 { 562 "code": "A String", # [Output Only] The error type identifier for this error. 563 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 564 "message": "A String", # [Output Only] An optional, human-readable error message. 565 }, 566 ], 567 }, 568 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 569 "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. 570 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 571 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 572 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 573 "metadata": { # [Output Only] Service-specific metadata attached to this operation. 574 "a_key": "", # Properties of the object. Contains field @type with type URL. 575 }, 576 "name": "A String", # [Output Only] Name of the operation. 577 "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. 578 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 579 "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. 580 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 581 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 582 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 583 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 584 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 585 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 586 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 587 "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. 588 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 589 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 590 { 591 "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. 592 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 593 { 594 "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). 595 "value": "A String", # [Output Only] A warning data value corresponding to the key. 596 }, 597 ], 598 "message": "A String", # [Output Only] A human-readable description of the warning code. 599 }, 600 ], 601 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 602}</pre> 603</div> 604 605<div class="method"> 606 <code class="details" id="list">list(project, zone, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code> 607 <pre>A list of all the future reservations that have been configured for the specified project in specified zone. 608 609Args: 610 project: string, Project ID for this request. (required) 611 zone: string, Name of the zone for this request. Name should conform to RFC1035. (required) 612 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) ``` 613 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`) 614 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. 615 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. 616 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 617 x__xgafv: string, V1 error format. 618 Allowed values 619 1 - v1 error format 620 2 - v2 error format 621 622Returns: 623 An object of the form: 624 625 { 626 "etag": "A String", 627 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 628 "items": [ # [Output Only] A list of future reservation resources. 629 { 630 "creationTimestamp": "A String", # [Output Only] The creation timestamp for this future reservation in RFC3339 text format. 631 "description": "A String", # An optional description of this resource. Provide this property when you create the future reservation. 632 "id": "A String", # [Output Only] A unique identifier for this future reservation. The server defines this identifier. 633 "kind": "compute#futureReservation", 634 "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. 635 "namePrefix": "A String", # Name prefix for the reservations to be created at the time of delivery. The name prefix must comply with RFC1035. Maximum allowed length for name prefix is 20. Automatically created reservations name format will be -date-####. 636 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 637 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 638 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # List of Projects/Folders to share with. 639 "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. 640 "a_key": { # Config for each folder in the share settings. 641 "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. 642 }, 643 }, 644 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 645 "a_key": { # Config for each project in the share settings. 646 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 647 }, 648 }, 649 "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. 650 "A String", 651 ], 652 "shareType": "A String", # Type of sharing for this shared-reservation 653 }, 654 "specificSkuProperties": { # Future Reservation configuration to indicate instance properties and total count. 655 "instanceProperties": { # Properties of the SKU instances being reserved. Next ID: 9 # Properties of the SKU instances being reserved. 656 "guestAccelerators": [ # Specifies accelerator type and count. 657 { # A specification of the type and number of accelerator cards attached to the instance. 658 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 659 "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. 660 }, 661 ], 662 "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. 663 { 664 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB. 665 "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. 666 }, 667 ], 668 "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. 669 "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. 670 "maintenanceFreezeDurationHours": 42, # Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. 671 "maintenanceInterval": "A String", # For more information about maintenance intervals, see Setting maintenance intervals. 672 "minCpuPlatform": "A String", # Minimum cpu platform the reservation. 673 }, 674 "totalCount": "A String", # Total number of instances for which capacity assurance is requested at a future time period. 675 }, 676 "status": { # [Output only] Represents status related to the future reservation. # [Output only] Status of the Future Reservation 677 "autoCreatedReservations": [ # Fully qualified urls of the automatically created reservations at start_time. 678 "A String", 679 ], 680 "fulfilledCount": "A String", # This count indicates the fulfilled capacity so far. This is set during "PROVISIONING" state. This count also includes capacity delivered as part of existing matching reservations. 681 "lockTime": "A String", # Time when Future Reservation would become LOCKED, after which no modifications to Future Reservation will be allowed. Applicable only after the Future Reservation is in the APPROVED state. The lock_time is an RFC3339 string. The procurement_status will transition to PROCURING state at this time. 682 "procurementStatus": "A String", # Current state of this Future Reservation 683 }, 684 "timeWindow": { # Time window for this Future Reservation. 685 "duration": { # A Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". Range is approximately 10,000 years. 686 "nanos": 42, # Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. 687 "seconds": "A String", # Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years 688 }, 689 "endTime": "A String", 690 "startTime": "A String", # Start time of the Future Reservation. The start_time is an RFC3339 string. 691 }, 692 "zone": "A String", # [Output Only] URL of the Zone where this future reservation resides. 693 }, 694 ], 695 "kind": "compute#futureReservationsListResponse", 696 "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. 697 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 698 "unreachables": [ # [Output Only] Unreachable resources. 699 "A String", 700 ], 701 "warning": { # [Output Only] Informational warning message. 702 "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. 703 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 704 { 705 "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). 706 "value": "A String", # [Output Only] A warning data value corresponding to the key. 707 }, 708 ], 709 "message": "A String", # [Output Only] A human-readable description of the warning code. 710 }, 711}</pre> 712</div> 713 714<div class="method"> 715 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 716 <pre>Retrieves the next page of results. 717 718Args: 719 previous_request: The request for the previous page. (required) 720 previous_response: The response from the request for the previous page. (required) 721 722Returns: 723 A request object that you can call 'execute()' on to request the next 724 page. Returns None if there are no more items in the collection. 725 </pre> 726</div> 727 728<div class="method"> 729 <code class="details" id="update">update(project, zone, futureReservation, body=None, paths=None, requestId=None, updateMask=None, x__xgafv=None)</code> 730 <pre>Updates the specified future reservation. 731 732Args: 733 project: string, Project ID for this request. (required) 734 zone: string, Name of the zone for this request. Name should conform to RFC1035. (required) 735 futureReservation: string, Name of the reservation to update. Name should conform to RFC1035. (required) 736 body: object, The request body. 737 The object takes the form of: 738 739{ 740 "creationTimestamp": "A String", # [Output Only] The creation timestamp for this future reservation in RFC3339 text format. 741 "description": "A String", # An optional description of this resource. Provide this property when you create the future reservation. 742 "id": "A String", # [Output Only] A unique identifier for this future reservation. The server defines this identifier. 743 "kind": "compute#futureReservation", 744 "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. 745 "namePrefix": "A String", # Name prefix for the reservations to be created at the time of delivery. The name prefix must comply with RFC1035. Maximum allowed length for name prefix is 20. Automatically created reservations name format will be -date-####. 746 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 747 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 748 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # List of Projects/Folders to share with. 749 "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. 750 "a_key": { # Config for each folder in the share settings. 751 "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. 752 }, 753 }, 754 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 755 "a_key": { # Config for each project in the share settings. 756 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 757 }, 758 }, 759 "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. 760 "A String", 761 ], 762 "shareType": "A String", # Type of sharing for this shared-reservation 763 }, 764 "specificSkuProperties": { # Future Reservation configuration to indicate instance properties and total count. 765 "instanceProperties": { # Properties of the SKU instances being reserved. Next ID: 9 # Properties of the SKU instances being reserved. 766 "guestAccelerators": [ # Specifies accelerator type and count. 767 { # A specification of the type and number of accelerator cards attached to the instance. 768 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 769 "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. 770 }, 771 ], 772 "localSsds": [ # Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. 773 { 774 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB. 775 "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. 776 }, 777 ], 778 "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. 779 "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. 780 "maintenanceFreezeDurationHours": 42, # Specifies the number of hours after reservation creation where instances using the reservation won't be scheduled for maintenance. 781 "maintenanceInterval": "A String", # For more information about maintenance intervals, see Setting maintenance intervals. 782 "minCpuPlatform": "A String", # Minimum cpu platform the reservation. 783 }, 784 "totalCount": "A String", # Total number of instances for which capacity assurance is requested at a future time period. 785 }, 786 "status": { # [Output only] Represents status related to the future reservation. # [Output only] Status of the Future Reservation 787 "autoCreatedReservations": [ # Fully qualified urls of the automatically created reservations at start_time. 788 "A String", 789 ], 790 "fulfilledCount": "A String", # This count indicates the fulfilled capacity so far. This is set during "PROVISIONING" state. This count also includes capacity delivered as part of existing matching reservations. 791 "lockTime": "A String", # Time when Future Reservation would become LOCKED, after which no modifications to Future Reservation will be allowed. Applicable only after the Future Reservation is in the APPROVED state. The lock_time is an RFC3339 string. The procurement_status will transition to PROCURING state at this time. 792 "procurementStatus": "A String", # Current state of this Future Reservation 793 }, 794 "timeWindow": { # Time window for this Future Reservation. 795 "duration": { # A Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". Range is approximately 10,000 years. 796 "nanos": 42, # Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. 797 "seconds": "A String", # Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years 798 }, 799 "endTime": "A String", 800 "startTime": "A String", # Start time of the Future Reservation. The start_time is an RFC3339 string. 801 }, 802 "zone": "A String", # [Output Only] URL of the Zone where this future reservation resides. 803} 804 805 paths: string, A parameter (repeated) 806 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). 807 updateMask: string, update_mask indicates fields to be updated as part of this request. 808 x__xgafv: string, V1 error format. 809 Allowed values 810 1 - v1 error format 811 2 - v2 error format 812 813Returns: 814 An object of the form: 815 816 { # 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. 817 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 818 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 819 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 820 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 821 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 822 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 823 { 824 "code": "A String", # [Output Only] The error type identifier for this error. 825 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 826 "message": "A String", # [Output Only] An optional, human-readable error message. 827 }, 828 ], 829 }, 830 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 831 "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. 832 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 833 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 834 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 835 "metadata": { # [Output Only] Service-specific metadata attached to this operation. 836 "a_key": "", # Properties of the object. Contains field @type with type URL. 837 }, 838 "name": "A String", # [Output Only] Name of the operation. 839 "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. 840 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 841 "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. 842 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 843 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 844 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 845 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 846 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 847 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 848 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 849 "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. 850 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 851 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 852 { 853 "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. 854 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 855 { 856 "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). 857 "value": "A String", # [Output Only] A warning data value corresponding to the key. 858 }, 859 ], 860 "message": "A String", # [Output Only] A human-readable description of the warning code. 861 }, 862 ], 863 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 864}</pre> 865</div> 866 867</body></html>