Skip to content

Commit

Permalink
feat(compute): update the api
Browse files Browse the repository at this point in the history
#### compute:alpha

The following keys were deleted:
- schemas.Scheduling.properties.dynamicResizeProperties.$ref (Total Keys: 1)
- schemas.SchedulingDynamicResizeProperties (Total Keys: 4)

The following keys were added:
- resources.disks.methods.bulkInsert (Total Keys: 18)
- resources.regionDisks.methods.bulkInsert (Total Keys: 18)
- resources.regionSecurityPolicies.methods.patchRule.parameters.updateMask (Total Keys: 3)
- schemas.BulkInsertDiskResource (Total Keys: 3)
- schemas.HttpRouteRuleMatch.properties.pathTemplateMatch.type (Total Keys: 1)
- schemas.Project.properties.vmDnsSetting.type (Total Keys: 1)

#### compute:beta

The following keys were added:
- schemas.InstanceGroupManager.properties.instanceLifecyclePolicy.$ref (Total Keys: 1)
- schemas.InstanceGroupManagerInstanceLifecyclePolicy (Total Keys: 3)
- schemas.ManagedInstanceLastAttempt.properties.errors.properties.errors.items.properties.errorDetails.items.properties.quotaInfo.$ref (Total Keys: 1)
- schemas.Operation.properties.error.properties.errors.items.properties.errorDetails.items.properties.quotaInfo.$ref (Total Keys: 1)
- schemas.QuotaExceededInfo (Total Keys: 8)
- schemas.Scheduling.properties.maxRunDuration.$ref (Total Keys: 1)
- schemas.Scheduling.properties.terminationTime.type (Total Keys: 1)
- schemas.Subnetwork.properties.reservedInternalRange.type (Total Keys: 1)
- schemas.SubnetworkSecondaryRange.properties.reservedInternalRange.type (Total Keys: 1)

#### compute:v1

The following keys were added:
- schemas.InstanceGroupManager.properties.listManagedInstancesResults.type (Total Keys: 1)
- schemas.ManagedInstanceLastAttempt.properties.errors.properties.errors.items.properties.errorDetails.items.properties.quotaInfo.$ref (Total Keys: 1)
- schemas.Operation.properties.error.properties.errors.items.properties.errorDetails.items.properties.quotaInfo.$ref (Total Keys: 1)
- schemas.QuotaExceededInfo (Total Keys: 8)
  • Loading branch information
yoshi-automation committed Oct 25, 2022
1 parent 57822a7 commit 6ef14bc
Show file tree
Hide file tree
Showing 182 changed files with 7,203 additions and 551 deletions.
60 changes: 30 additions & 30 deletions docs/dyn/compute_alpha.backendServices.html

Large diffs are not rendered by default.

108 changes: 108 additions & 0 deletions docs/dyn/compute_alpha.disks.html
Expand Up @@ -83,6 +83,9 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#aggregatedList_next">aggregatedList_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#bulkInsert">bulkInsert(project, zone, body=None, requestId=None, x__xgafv=None)</a></code></p>
<p class="firstline">Bulk create a set of disks.</p>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
Expand Down Expand Up @@ -428,6 +431,111 @@ <h3>Method Details</h3>
</pre>
</div>

<div class="method">
<code class="details" id="bulkInsert">bulkInsert(project, zone, body=None, requestId=None, x__xgafv=None)</code>
<pre>Bulk create a set of disks.

Args:
project: string, Project ID for this request. (required)
zone: string, The name of the zone for this request. (required)
body: object, The request body.
The object takes the form of:

{ # A transient resource used in compute.disks.bulkInsert and compute.regionDisks.bulkInsert. It is only used to process requests and is not persisted.
&quot;sourceConsistencyGroupPolicy&quot;: &quot;A String&quot;, # The URL of the DiskConsistencyGroupPolicy for the group of disks to clone. This may be a full or partial URL, such as: - https://www.googleapis.com/compute/v1/projects/project/regions/region /resourcePolicies/resourcePolicy - projects/project/regions/region/resourcePolicies/resourcePolicy - regions/region/resourcePolicies/resourcePolicy
}

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).
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # 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.
&quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
&quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
&quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
&quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
&quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
&quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
{
&quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
&quot;errorDetails&quot;: [ # [Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
{
&quot;errorInfo&quot;: { # Describes the cause of the error with structured details. Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it is not enabled: { &quot;reason&quot;: &quot;API_DISABLED&quot; &quot;domain&quot;: &quot;googleapis.com&quot; &quot;metadata&quot;: { &quot;resource&quot;: &quot;projects/123&quot;, &quot;service&quot;: &quot;pubsub.googleapis.com&quot; } } This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: { &quot;reason&quot;: &quot;STOCKOUT&quot; &quot;domain&quot;: &quot;spanner.googleapis.com&quot;, &quot;metadata&quot;: { &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot; } }
&quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is &quot;googleapis.com&quot;.
&quot;metadatas&quot;: { # Additional structured details about this error. Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {&quot;instanceLimit&quot;: &quot;100/request&quot;}, should be returned as, {&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}, if the client exceeds the number of instances that can be created in a single (batch) request.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match /[A-Z0-9_]+/.
},
&quot;help&quot;: { # Provides links to documentation or for performing an out of band action. For example, if a quota check failed with an error indicating the calling project hasn&#x27;t enabled the accessed service, this can contain a URL pointing directly to the right place in the developer console to flip the bit.
&quot;links&quot;: [ # URL(s) pointing to additional information on handling the current error.
{ # Describes a URL link.
&quot;description&quot;: &quot;A String&quot;, # Describes what the link offers.
&quot;url&quot;: &quot;A String&quot;, # The URL of the link.
},
],
},
&quot;localizedMessage&quot;: { # Provides a localized error message that is safe to return to the user which can be attached to an RPC error.
&quot;locale&quot;: &quot;A String&quot;, # The locale used following the specification defined at https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: &quot;en-US&quot;, &quot;fr-CH&quot;, &quot;es-MX&quot;
&quot;message&quot;: &quot;A String&quot;, # The localized error message in the above locale.
},
&quot;quotaInfo&quot;: { # Additional details for quota exceeded error for resource quota.
&quot;dimensions&quot;: { # The map holding related quota dimensions.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;limit&quot;: 3.14, # Current effective quota limit. The limit&#x27;s unit depends on the quota type or metric.
&quot;limitName&quot;: &quot;A String&quot;, # The name of the quota limit.
&quot;metricName&quot;: &quot;A String&quot;, # The Compute Engine quota metric name.
},
},
],
&quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
&quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
},
],
},
&quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
&quot;httpErrorStatusCode&quot;: 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.
&quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
&quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
&quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
&quot;metadata&quot;: { # [Output Only] Service-specific metadata attached to this operation.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
&quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
&quot;operationGroupId&quot;: &quot;A String&quot;, # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request.
&quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
&quot;progress&quot;: 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.
&quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
&quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
&quot;selfLinkWithId&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource with the resource id.
&quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
&quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
&quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
&quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
&quot;targetLink&quot;: &quot;A String&quot;, # [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.
&quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
&quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
{
&quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
&quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
{
&quot;key&quot;: &quot;A String&quot;, # [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).
&quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
},
],
&quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
},
],
&quot;zone&quot;: &quot;A String&quot;, # [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="close">close()</code>
<pre>Close httplib2 connections.</pre>
Expand Down
10 changes: 5 additions & 5 deletions docs/dyn/compute_alpha.futureReservations.html
Expand Up @@ -174,7 +174,7 @@ <h3>Method Details</h3>
&quot;locationHint&quot;: &quot;A String&quot;, # 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.
&quot;machineType&quot;: &quot;A String&quot;, # 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.
&quot;maintenanceFreezeDurationHours&quot;: 42, # Specifies the number of hours after reservation creation where instances using the reservation won&#x27;t be scheduled for maintenance.
&quot;maintenanceInterval&quot;: &quot;A String&quot;, # For more information about maintenance intervals, see Setting maintenance intervals.
&quot;maintenanceInterval&quot;: &quot;A String&quot;, # Specifies the frequency of planned maintenance events. The accepted values are: `PERIODIC`.
&quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum cpu platform the reservation.
},
&quot;sourceInstanceTemplate&quot;: &quot;A String&quot;, # The instance template that will be used to populate the ReservedInstanceProperties of the future reservation
Expand Down Expand Up @@ -509,7 +509,7 @@ <h3>Method Details</h3>
&quot;locationHint&quot;: &quot;A String&quot;, # 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.
&quot;machineType&quot;: &quot;A String&quot;, # 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.
&quot;maintenanceFreezeDurationHours&quot;: 42, # Specifies the number of hours after reservation creation where instances using the reservation won&#x27;t be scheduled for maintenance.
&quot;maintenanceInterval&quot;: &quot;A String&quot;, # For more information about maintenance intervals, see Setting maintenance intervals.
&quot;maintenanceInterval&quot;: &quot;A String&quot;, # Specifies the frequency of planned maintenance events. The accepted values are: `PERIODIC`.
&quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum cpu platform the reservation.
},
&quot;sourceInstanceTemplate&quot;: &quot;A String&quot;, # The instance template that will be used to populate the ReservedInstanceProperties of the future reservation
Expand Down Expand Up @@ -591,7 +591,7 @@ <h3>Method Details</h3>
&quot;locationHint&quot;: &quot;A String&quot;, # 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.
&quot;machineType&quot;: &quot;A String&quot;, # 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.
&quot;maintenanceFreezeDurationHours&quot;: 42, # Specifies the number of hours after reservation creation where instances using the reservation won&#x27;t be scheduled for maintenance.
&quot;maintenanceInterval&quot;: &quot;A String&quot;, # For more information about maintenance intervals, see Setting maintenance intervals.
&quot;maintenanceInterval&quot;: &quot;A String&quot;, # Specifies the frequency of planned maintenance events. The accepted values are: `PERIODIC`.
&quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum cpu platform the reservation.
},
&quot;sourceInstanceTemplate&quot;: &quot;A String&quot;, # The instance template that will be used to populate the ReservedInstanceProperties of the future reservation
Expand Down Expand Up @@ -777,7 +777,7 @@ <h3>Method Details</h3>
&quot;locationHint&quot;: &quot;A String&quot;, # 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.
&quot;machineType&quot;: &quot;A String&quot;, # 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.
&quot;maintenanceFreezeDurationHours&quot;: 42, # Specifies the number of hours after reservation creation where instances using the reservation won&#x27;t be scheduled for maintenance.
&quot;maintenanceInterval&quot;: &quot;A String&quot;, # For more information about maintenance intervals, see Setting maintenance intervals.
&quot;maintenanceInterval&quot;: &quot;A String&quot;, # Specifies the frequency of planned maintenance events. The accepted values are: `PERIODIC`.
&quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum cpu platform the reservation.
},
&quot;sourceInstanceTemplate&quot;: &quot;A String&quot;, # The instance template that will be used to populate the ReservedInstanceProperties of the future reservation
Expand Down Expand Up @@ -892,7 +892,7 @@ <h3>Method Details</h3>
&quot;locationHint&quot;: &quot;A String&quot;, # 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.
&quot;machineType&quot;: &quot;A String&quot;, # 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.
&quot;maintenanceFreezeDurationHours&quot;: 42, # Specifies the number of hours after reservation creation where instances using the reservation won&#x27;t be scheduled for maintenance.
&quot;maintenanceInterval&quot;: &quot;A String&quot;, # For more information about maintenance intervals, see Setting maintenance intervals.
&quot;maintenanceInterval&quot;: &quot;A String&quot;, # Specifies the frequency of planned maintenance events. The accepted values are: `PERIODIC`.
&quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum cpu platform the reservation.
},
&quot;sourceInstanceTemplate&quot;: &quot;A String&quot;, # The instance template that will be used to populate the ReservedInstanceProperties of the future reservation
Expand Down

0 comments on commit 6ef14bc

Please sign in to comment.