-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#### compute:alpha The following keys were added: - resources.backendServices.methods.getIamPolicy (Total Keys: 17) - resources.backendServices.methods.setIamPolicy (Total Keys: 15) - resources.instances.methods.performMaintenance (Total Keys: 20) - resources.networkFirewallPolicies.methods.addRule.parameters.maxPriority (Total Keys: 3) - resources.networkFirewallPolicies.methods.addRule.parameters.minPriority (Total Keys: 3) - resources.regionBackendServices.methods.getIamPolicy (Total Keys: 21) - resources.regionBackendServices.methods.setIamPolicy (Total Keys: 19) - resources.regionInstances.methods.recommendLocations (Total Keys: 15) - resources.regionNetworkFirewallPolicies.methods.addRule.parameters.maxPriority (Total Keys: 3) - resources.regionNetworkFirewallPolicies.methods.addRule.parameters.minPriority (Total Keys: 3) - schemas.LocationPolicy.properties.targetShape.type (Total Keys: 1) - schemas.RegionInstancesRecommendLocationsResource (Total Keys: 5) - schemas.RegionInstancesRecommendLocationsResponse (Total Keys: 12) - schemas.ResourceStatus.properties.upcomingMaintenance.$ref (Total Keys: 1) - schemas.ResourceStatusUpcomingMaintenance (Total Keys: 3) #### compute:beta The following keys were added: - resources.backendServices.methods.getIamPolicy (Total Keys: 17) - resources.backendServices.methods.setIamPolicy (Total Keys: 15) - resources.regionBackendServices.methods.getIamPolicy (Total Keys: 21) - resources.regionBackendServices.methods.setIamPolicy (Total Keys: 19)
- Loading branch information
1 parent
ecced37
commit b8ce275
Showing
27 changed files
with
4,473 additions
and
276 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,6 +143,9 @@ <h2>Instance Methods</h2> | |
<p class="toc_element"> | ||
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> | ||
<p class="firstline">Retrieves the next page of results.</p> | ||
<p class="toc_element"> | ||
<code><a href="#performMaintenance">performMaintenance(project, zone, instance, requestId=None)</a></code></p> | ||
<p class="firstline">Perform a manual maintenance on the instance.</p> | ||
<p class="toc_element"> | ||
<code><a href="#removeResourcePolicies">removeResourcePolicies(project, zone, instance, body=None, requestId=None)</a></code></p> | ||
<p class="firstline">Removes resource policies from an instance.</p> | ||
|
@@ -808,6 +811,9 @@ <h3>Method Details</h3> | |
"scheduling": { | ||
"availabilityDomain": 42, # Specifies the availability domain (AD), which this instance should be scheduled on. The AD belongs to the spread GroupPlacementPolicy resource policy that has been assigned to the instance. Specify a value between 1-max count of availability domains in your GroupPlacementPolicy. See go/placement-policy-extension for more details. | ||
}, | ||
"upcomingMaintenance": { | ||
"canReschedule": True or False, # Indicates if the maintenance can be customer triggered. See go/sf-ctm-design for more details | ||
}, | ||
}, | ||
"satisfiesPzs": True or False, # [Output Only] Reserved for future use. | ||
"scheduling": { # Sets the scheduling options for an Instance. NextID: 21 # Sets the scheduling options for this instance. | ||
|
@@ -1560,6 +1566,9 @@ <h3>Method Details</h3> | |
"scheduling": { | ||
"availabilityDomain": 42, # Specifies the availability domain (AD), which this instance should be scheduled on. The AD belongs to the spread GroupPlacementPolicy resource policy that has been assigned to the instance. Specify a value between 1-max count of availability domains in your GroupPlacementPolicy. See go/placement-policy-extension for more details. | ||
}, | ||
"upcomingMaintenance": { | ||
"canReschedule": True or False, # Indicates if the maintenance can be customer triggered. See go/sf-ctm-design for more details | ||
}, | ||
}, | ||
"satisfiesPzs": True or False, # [Output Only] Reserved for future use. | ||
"scheduling": { # Sets the scheduling options for an Instance. NextID: 21 # Sets the scheduling options for this instance. | ||
|
@@ -2010,6 +2019,7 @@ <h3>Method Details</h3> | |
"preference": "A String", # Preference for a given location: ALLOW or DENY. | ||
}, | ||
}, | ||
"targetShape": "A String", # Strategy for distributing VMs across zones in a region. | ||
}, | ||
"minCount": "A String", # The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted. | ||
"namePattern": "A String", # The string pattern used for the names of the VMs. Either name_pattern or per_instance_properties must be set. The pattern should contain one continuous sequence of placeholder hash characters (#) with each character corresponding to one digit of the generated instance name. Example: name_pattern of inst-#### will generate instance names such as inst-0001, inst-0002, ... . If there already exist instance(s) whose names match the name pattern in the same project and zone, then the generated instance numbers will start after the biggest existing number. For example, if there exists an instance with name inst-0050, then instance names generated using the pattern inst-#### will be inst-0051, inst-0052, etc. The name pattern placeholder #...# can contain up to 18 characters. | ||
|
@@ -2716,6 +2726,9 @@ <h3>Method Details</h3> | |
"scheduling": { | ||
"availabilityDomain": 42, # Specifies the availability domain (AD), which this instance should be scheduled on. The AD belongs to the spread GroupPlacementPolicy resource policy that has been assigned to the instance. Specify a value between 1-max count of availability domains in your GroupPlacementPolicy. See go/placement-policy-extension for more details. | ||
}, | ||
"upcomingMaintenance": { | ||
"canReschedule": True or False, # Indicates if the maintenance can be customer triggered. See go/sf-ctm-design for more details | ||
}, | ||
}, | ||
"satisfiesPzs": True or False, # [Output Only] Reserved for future use. | ||
"scheduling": { # Sets the scheduling options for an Instance. NextID: 21 # Sets the scheduling options for this instance. | ||
|
@@ -3751,6 +3764,9 @@ <h3>Method Details</h3> | |
"scheduling": { | ||
"availabilityDomain": 42, # Specifies the availability domain (AD), which this instance should be scheduled on. The AD belongs to the spread GroupPlacementPolicy resource policy that has been assigned to the instance. Specify a value between 1-max count of availability domains in your GroupPlacementPolicy. See go/placement-policy-extension for more details. | ||
}, | ||
"upcomingMaintenance": { | ||
"canReschedule": True or False, # Indicates if the maintenance can be customer triggered. See go/sf-ctm-design for more details | ||
}, | ||
}, | ||
"satisfiesPzs": True or False, # [Output Only] Reserved for future use. | ||
"scheduling": { # Sets the scheduling options for an Instance. NextID: 21 # Sets the scheduling options for this instance. | ||
|
@@ -4310,6 +4326,9 @@ <h3>Method Details</h3> | |
"scheduling": { | ||
"availabilityDomain": 42, # Specifies the availability domain (AD), which this instance should be scheduled on. The AD belongs to the spread GroupPlacementPolicy resource policy that has been assigned to the instance. Specify a value between 1-max count of availability domains in your GroupPlacementPolicy. See go/placement-policy-extension for more details. | ||
}, | ||
"upcomingMaintenance": { | ||
"canReschedule": True or False, # Indicates if the maintenance can be customer triggered. See go/sf-ctm-design for more details | ||
}, | ||
}, | ||
"satisfiesPzs": True or False, # [Output Only] Reserved for future use. | ||
"scheduling": { # Sets the scheduling options for an Instance. NextID: 21 # Sets the scheduling options for this instance. | ||
|
@@ -4502,6 +4521,85 @@ <h3>Method Details</h3> | |
</pre> | ||
</div> | ||
|
||
<div class="method"> | ||
<code class="details" id="performMaintenance">performMaintenance(project, zone, instance, requestId=None)</code> | ||
<pre>Perform a manual maintenance on the instance. | ||
|
||
Args: | ||
project: string, Project ID for this request. (required) | ||
zone: string, The name of the zone for this request. (required) | ||
instance: string, Name of the instance scoping this request. (required) | ||
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). | ||
|
||
Returns: | ||
An object of the form: | ||
|
||
{ # Represents an Operation resource. | ||
# | ||
# Google Compute Engine has three Operation resources: | ||
# | ||
# * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/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. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==) | ||
"clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. | ||
"creationTimestamp": "A String", # [Deprecated] This field is deprecated. | ||
"description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. | ||
"endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. | ||
"error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. | ||
"errors": [ # [Output Only] The array of errors encountered while processing this operation. | ||
{ | ||
"code": "A String", # [Output Only] The error type identifier for this error. | ||
"location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. | ||
"message": "A String", # [Output Only] An optional, human-readable error message. | ||
}, | ||
], | ||
}, | ||
"httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. | ||
"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. | ||
"id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. | ||
"insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. | ||
"kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. | ||
"name": "A String", # [Output Only] Name of the operation. | ||
"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. | ||
"operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. | ||
"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. | ||
"region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. | ||
"selfLink": "A String", # [Output Only] Server-defined URL for the resource. | ||
"selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. | ||
"startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. | ||
"status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. | ||
"statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. | ||
"targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. | ||
"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. | ||
"user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. | ||
"warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. | ||
{ | ||
"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. | ||
"data": [ # [Output Only] Metadata about this warning in key: value format. For example: | ||
# "data": [ { "key": "scope", "value": "zones/us-east1-d" } | ||
{ | ||
"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). | ||
"value": "A String", # [Output Only] A warning data value corresponding to the key. | ||
}, | ||
], | ||
"message": "A String", # [Output Only] A human-readable description of the warning code. | ||
}, | ||
], | ||
"zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. | ||
}</pre> | ||
</div> | ||
|
||
<div class="method"> | ||
<code class="details" id="removeResourcePolicies">removeResourcePolicies(project, zone, instance, body=None, requestId=None)</code> | ||
<pre>Removes resource policies from an instance. | ||
|
@@ -7225,6 +7323,9 @@ <h3>Method Details</h3> | |
"scheduling": { | ||
"availabilityDomain": 42, # Specifies the availability domain (AD), which this instance should be scheduled on. The AD belongs to the spread GroupPlacementPolicy resource policy that has been assigned to the instance. Specify a value between 1-max count of availability domains in your GroupPlacementPolicy. See go/placement-policy-extension for more details. | ||
}, | ||
"upcomingMaintenance": { | ||
"canReschedule": True or False, # Indicates if the maintenance can be customer triggered. See go/sf-ctm-design for more details | ||
}, | ||
}, | ||
"satisfiesPzs": True or False, # [Output Only] Reserved for future use. | ||
"scheduling": { # Sets the scheduling options for an Instance. NextID: 21 # Sets the scheduling options for this instance. | ||
|
Oops, something went wrong.