From 262aa706a39b99020c542fae1d5f8a73eb139e33 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 6 Aug 2023 00:22:12 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2100) --- api-list.json | 15 ++ apigee/v1/apigee-api.json | 38 +++- apigee/v1/apigee-gen.go | 35 +++ .../v1/contactcenterinsights-api.json | 4 +- .../v1/contactcenterinsights-gen.go | 4 +- container/v1beta1/container-api.json | 28 +-- container/v1beta1/container-gen.go | 39 ---- tpu/v2alpha1/tpu-api.json | 56 ++++- tpu/v2alpha1/tpu-gen.go | 205 +++++++++++++++++- 9 files changed, 347 insertions(+), 77 deletions(-) diff --git a/api-list.json b/api-list.json index 6176e1a31fa..f5ed9037ec0 100644 --- a/api-list.json +++ b/api-list.json @@ -1186,6 +1186,21 @@ "documentationLink": "https://cloud.google.com/channel", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "clouddebugger:v2", + "name": "clouddebugger", + "version": "v2", + "title": "Cloud Debugger API (Deprecated)", + "description": "Examines the call stack and variables of a running application without stopping or slowing it down. (Deprecated)", + "discoveryRestUrl": "https://clouddebugger.googleapis.com/$discovery/rest?version=v2", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/debugger", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "clouddeploy:v1", diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index 9bcc4c2cf20..f1fe2fa1c33 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -9242,7 +9242,7 @@ } } }, - "revision": "20230715", + "revision": "20230724", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -9759,6 +9759,11 @@ "description": "Metadata describing the API proxy revision as a key-value map.", "type": "object" }, + "hasExtensiblePolicy": { + "description": "Output only. This field will be marked as true if revision contains any policies marked as extensible.", + "readOnly": true, + "type": "boolean" + }, "integrationEndpoints": { "description": "List of IntegrationEndpoints in the '/integration-endpoints' directory of the API proxy. This is a 'manifest' setting designed to provide visibility into the contents of the API proxy.", "items": { @@ -11167,6 +11172,21 @@ }, "type": "array" }, + "proxyDeploymentType": { + "description": "Output only. The type of the deployment (standard or extensible) Deployed proxy revision will be marked as extensible in following 2 cases. 1. The deployed proxy revision uses extensible policies. 2. If a environment supports flowhooks and flow hook is configured.", + "enum": [ + "PROXY_DEPLOYMENT_TYPE_UNSPECIFIED", + "STANDARD", + "EXTENSIBLE" + ], + "enumDescriptions": [ + "Default value till public preview. After public preview this value should not be returned.", + "Deployment will be of type Standard if only Standard proxies are used", + "Proxy will be of type Extensible if deployments uses one or more Extensible proxies" + ], + "readOnly": true, + "type": "string" + }, "revision": { "description": "API proxy revision.", "type": "string" @@ -11900,6 +11920,22 @@ ], "readOnly": true, "type": "string" + }, + "type": { + "description": "Optional. EnvironmentType selected for the environment.", + "enum": [ + "ENVIRONMENT_TYPE_UNSPECIFIED", + "BASE", + "INTERMEDIATE", + "COMPREHENSIVE" + ], + "enumDescriptions": [ + "Environment type not specified.", + "Base environment has limited capacity and capabilities and are usually used when you are getting started with Apigee or while experimenting. Refer to Apigee's public documentation for more details.", + "This is the default type and it supports API management features and higher capacity than Base environment. Refer to Apigee's public documentation for more details.", + "Comprehensive environment supports advanced capabilites and even higher capacity than Intermediate environment. Refer to Apigee's public documentation for more details." + ], + "type": "string" } }, "type": "object" diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index 4f66db8872b..2b1ad630e1a 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -2042,6 +2042,10 @@ type GoogleCloudApigeeV1ApiProxyRevision struct { // revision as a key-value map. EntityMetaDataAsProperties map[string]string `json:"entityMetaDataAsProperties,omitempty"` + // HasExtensiblePolicy: Output only. This field will be marked as true + // if revision contains any policies marked as extensible. + HasExtensiblePolicy bool `json:"hasExtensiblePolicy,omitempty"` + // IntegrationEndpoints: List of IntegrationEndpoints in the // '/integration-endpoints' directory of the API proxy. This is a // 'manifest' setting designed to provide visibility into the contents @@ -3947,6 +3951,21 @@ type GoogleCloudApigeeV1Deployment struct { // status rather than pod status. Pods []*GoogleCloudApigeeV1PodStatus `json:"pods,omitempty"` + // ProxyDeploymentType: Output only. The type of the deployment + // (standard or extensible) Deployed proxy revision will be marked as + // extensible in following 2 cases. 1. The deployed proxy revision uses + // extensible policies. 2. If a environment supports flowhooks and flow + // hook is configured. + // + // Possible values: + // "PROXY_DEPLOYMENT_TYPE_UNSPECIFIED" - Default value till public + // preview. After public preview this value should not be returned. + // "STANDARD" - Deployment will be of type Standard if only Standard + // proxies are used + // "EXTENSIBLE" - Proxy will be of type Extensible if deployments uses + // one or more Extensible proxies + ProxyDeploymentType string `json:"proxyDeploymentType,omitempty"` + // Revision: API proxy revision. Revision string `json:"revision,omitempty"` @@ -4957,6 +4976,22 @@ type GoogleCloudApigeeV1Environment struct { // "UPDATING" - The resource is being updated. State string `json:"state,omitempty"` + // Type: Optional. EnvironmentType selected for the environment. + // + // Possible values: + // "ENVIRONMENT_TYPE_UNSPECIFIED" - Environment type not specified. + // "BASE" - Base environment has limited capacity and capabilities and + // are usually used when you are getting started with Apigee or while + // experimenting. Refer to Apigee's public documentation for more + // details. + // "INTERMEDIATE" - This is the default type and it supports API + // management features and higher capacity than Base environment. Refer + // to Apigee's public documentation for more details. + // "COMPREHENSIVE" - Comprehensive environment supports advanced + // capabilites and even higher capacity than Intermediate environment. + // Refer to Apigee's public documentation for more details. + Type string `json:"type,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` diff --git a/contactcenterinsights/v1/contactcenterinsights-api.json b/contactcenterinsights/v1/contactcenterinsights-api.json index cf53ea60fc8..c7f44482d7e 100644 --- a/contactcenterinsights/v1/contactcenterinsights-api.json +++ b/contactcenterinsights/v1/contactcenterinsights-api.json @@ -1384,7 +1384,7 @@ } } }, - "revision": "20230702", + "revision": "20230803", "rootUrl": "https://contactcenterinsights.googleapis.com/", "schemas": { "GoogleCloudContactcenterinsightsV1Analysis": { @@ -5511,7 +5511,7 @@ "description": "Properties of the object. Contains field @type with type URL.", "type": "any" }, - "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", "type": "object" } }, diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index 3b40bbadbbd..3a05ac90732 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -7034,8 +7034,8 @@ type GoogleLongrunningOperation struct { // `operations/{unique_id}`. Name string `json:"name,omitempty"` - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the + // Response: The normal, successful response of the operation. If the + // original method returns no data on success, such as `Delete`, the // response is `google.protobuf.Empty`. If the original method is // standard `Get`/`Create`/`Update`, the response should be the // resource. For other methods, the response should have the type diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 5ccf5b0bffd..1a6ab47e6d2 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2565,7 +2565,7 @@ } } }, - "revision": "20230723", + "revision": "20230724", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2964,25 +2964,14 @@ "enum": [ "EVALUATION_MODE_UNSPECIFIED", "DISABLED", - "PROJECT_SINGLETON_POLICY_ENFORCE", - "POLICY_BINDINGS", - "POLICY_BINDINGS_AND_PROJECT_SINGLETON_POLICY_ENFORCE" + "PROJECT_SINGLETON_POLICY_ENFORCE" ], "enumDescriptions": [ "Default value", "Disable BinaryAuthorization", - "Enforce Kubernetes admission requests with BinaryAuthorization using the project's singleton policy. This is equivalent to setting the enabled boolean to true.", - "Use Binary Authorization with the policies specified in policy_bindings.", - "Use Binary Authorization with the policies specified in policy_bindings, and also with the project's singleton policy in enforcement mode." + "Enforce Kubernetes admission requests with BinaryAuthorization using the project's singleton policy. This is equivalent to setting the enabled boolean to true." ], "type": "string" - }, - "policyBindings": { - "description": "Optional. Binauthz policies that apply to this cluster.", - "items": { - "$ref": "PolicyBinding" - }, - "type": "array" } }, "type": "object" @@ -6202,17 +6191,6 @@ }, "type": "object" }, - "PolicyBinding": { - "description": "Binauthz policy that applies to this cluster.", - "id": "PolicyBinding", - "properties": { - "name": { - "description": "The relative resource name of the binauthz platform policy to audit. GKE platform policies have the following format: `projects/{project_number}/platforms/gke/policies/{policy_id}`.", - "type": "string" - } - }, - "type": "object" - }, "PrivateClusterConfig": { "description": "Configuration options for private clusters.", "id": "PrivateClusterConfig", diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index bed5691fad1..18543ba4dca 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -969,17 +969,8 @@ type BinaryAuthorization struct { // "PROJECT_SINGLETON_POLICY_ENFORCE" - Enforce Kubernetes admission // requests with BinaryAuthorization using the project's singleton // policy. This is equivalent to setting the enabled boolean to true. - // "POLICY_BINDINGS" - Use Binary Authorization with the policies - // specified in policy_bindings. - // "POLICY_BINDINGS_AND_PROJECT_SINGLETON_POLICY_ENFORCE" - Use Binary - // Authorization with the policies specified in policy_bindings, and - // also with the project's singleton policy in enforcement mode. EvaluationMode string `json:"evaluationMode,omitempty"` - // PolicyBindings: Optional. Binauthz policies that apply to this - // cluster. - PolicyBindings []*PolicyBinding `json:"policyBindings,omitempty"` - // ForceSendFields is a list of field names (e.g. "Enabled") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -6225,36 +6216,6 @@ func (s *PodSecurityPolicyConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PolicyBinding: Binauthz policy that applies to this cluster. -type PolicyBinding struct { - // Name: The relative resource name of the binauthz platform policy to - // audit. GKE platform policies have the following format: - // `projects/{project_number}/platforms/gke/policies/{policy_id}`. - Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *PolicyBinding) MarshalJSON() ([]byte, error) { - type NoMethod PolicyBinding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // PrivateClusterConfig: Configuration options for private clusters. type PrivateClusterConfig struct { // EnablePrivateEndpoint: Whether the master's internal IP address is diff --git a/tpu/v2alpha1/tpu-api.json b/tpu/v2alpha1/tpu-api.json index 1bc94ede653..08d4a989757 100644 --- a/tpu/v2alpha1/tpu-api.json +++ b/tpu/v2alpha1/tpu-api.json @@ -814,6 +814,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "reset": { + "description": "Resets a QueuedResource TPU instance", + "flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/queuedResources/{queuedResourcesId}:reset", + "httpMethod": "POST", + "id": "tpu.projects.locations.queuedResources.reset", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the queued resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/queuedResources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha1/{+name}:reset", + "request": { + "$ref": "ResetQueuedResourceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } }, @@ -897,7 +925,7 @@ } } }, - "revision": "20230717", + "revision": "20230731", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -1333,6 +1361,22 @@ }, "type": "object" }, + "MultiNodeParams": { + "description": "Parameters to specify for multi-node QueuedResource requests. This field must be populated in case of multi-node requests instead of node_id. It's an error to specify both node_id and multi_node_params.", + "id": "MultiNodeParams", + "properties": { + "nodeCount": { + "description": "Required. Number of nodes with this spec. The system will attempt to provison \"node_count\" nodes as part of the request. This needs to be \u003e 1.", + "format": "int32", + "type": "integer" + }, + "nodeIdPrefix": { + "description": "Prefix of node_ids in case of multi-node request Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format. If node_count = 3 and node_id_prefix = \"np\", node ids of nodes created will be \"np-0\", \"np-1\", \"np-2\". If this field is not provided we use queued_resource_id as the node_id_prefix.", + "type": "string" + } + }, + "type": "object" + }, "NetworkConfig": { "description": "Network related configurations.", "id": "NetworkConfig", @@ -1573,6 +1617,10 @@ "description": "Details of the TPU node(s) being requested. Users can request either a single node or multiple nodes. NodeSpec provides the specification for node(s) to be created.", "id": "NodeSpec", "properties": { + "multiNodeParams": { + "$ref": "MultiNodeParams", + "description": "Optional. Fields to specify in case of multi-node request." + }, "node": { "$ref": "Node", "description": "Required. The node." @@ -1818,6 +1866,12 @@ }, "type": "object" }, + "ResetQueuedResourceRequest": { + "description": "Request for ResetQueuedResource.", + "id": "ResetQueuedResourceRequest", + "properties": {}, + "type": "object" + }, "RuntimeVersion": { "description": "A runtime version that a Node can be configured with.", "id": "RuntimeVersion", diff --git a/tpu/v2alpha1/tpu-gen.go b/tpu/v2alpha1/tpu-gen.go index 17494d1ade2..b91e519758a 100644 --- a/tpu/v2alpha1/tpu-gen.go +++ b/tpu/v2alpha1/tpu-gen.go @@ -971,6 +971,46 @@ func (s *Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MultiNodeParams: Parameters to specify for multi-node QueuedResource +// requests. This field must be populated in case of multi-node requests +// instead of node_id. It's an error to specify both node_id and +// multi_node_params. +type MultiNodeParams struct { + // NodeCount: Required. Number of nodes with this spec. The system will + // attempt to provison "node_count" nodes as part of the request. This + // needs to be > 1. + NodeCount int64 `json:"nodeCount,omitempty"` + + // NodeIdPrefix: Prefix of node_ids in case of multi-node request Should + // follow the `^[A-Za-z0-9_.~+%-]+$` regex format. If node_count = 3 and + // node_id_prefix = "np", node ids of nodes created will be "np-0", + // "np-1", "np-2". If this field is not provided we use + // queued_resource_id as the node_id_prefix. + NodeIdPrefix string `json:"nodeIdPrefix,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NodeCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NodeCount") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MultiNodeParams) MarshalJSON() ([]byte, error) { + type NoMethod MultiNodeParams + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // NetworkConfig: Network related configurations. type NetworkConfig struct { // CanIpForward: Allows the TPU node to send and receive packets with @@ -1211,6 +1251,10 @@ func (s *Node) MarshalJSON() ([]byte, error) { // request either a single node or multiple nodes. NodeSpec provides the // specification for node(s) to be created. type NodeSpec struct { + // MultiNodeParams: Optional. Fields to specify in case of multi-node + // request. + MultiNodeParams *MultiNodeParams `json:"multiNodeParams,omitempty"` + // Node: Required. The node. Node *Node `json:"node,omitempty"` @@ -1224,7 +1268,7 @@ type NodeSpec struct { // Parent: Required. The parent resource name. Parent string `json:"parent,omitempty"` - // ForceSendFields is a list of field names (e.g. "Node") to + // ForceSendFields is a list of field names (e.g. "MultiNodeParams") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1232,12 +1276,13 @@ type NodeSpec struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Node") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "MultiNodeParams") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -1553,6 +1598,10 @@ func (s *QueueingPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ResetQueuedResourceRequest: Request for ResetQueuedResource. +type ResetQueuedResourceRequest struct { +} + // RuntimeVersion: A runtime version that a Node can be configured with. type RuntimeVersion struct { // Name: The resource name. @@ -5410,6 +5459,148 @@ func (c *ProjectsLocationsQueuedResourcesListCall) Pages(ctx context.Context, f } } +// method id "tpu.projects.locations.queuedResources.reset": + +type ProjectsLocationsQueuedResourcesResetCall struct { + s *Service + name string + resetqueuedresourcerequest *ResetQueuedResourceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Reset: Resets a QueuedResource TPU instance +// +// - name: The name of the queued resource. +func (r *ProjectsLocationsQueuedResourcesService) Reset(name string, resetqueuedresourcerequest *ResetQueuedResourceRequest) *ProjectsLocationsQueuedResourcesResetCall { + c := &ProjectsLocationsQueuedResourcesResetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.resetqueuedresourcerequest = resetqueuedresourcerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsQueuedResourcesResetCall) Fields(s ...googleapi.Field) *ProjectsLocationsQueuedResourcesResetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsQueuedResourcesResetCall) Context(ctx context.Context) *ProjectsLocationsQueuedResourcesResetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsQueuedResourcesResetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsQueuedResourcesResetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.resetqueuedresourcerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha1/{+name}:reset") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "tpu.projects.locations.queuedResources.reset" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsQueuedResourcesResetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Resets a QueuedResource TPU instance", + // "flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/queuedResources/{queuedResourcesId}:reset", + // "httpMethod": "POST", + // "id": "tpu.projects.locations.queuedResources.reset", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the queued resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/queuedResources/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2alpha1/{+name}:reset", + // "request": { + // "$ref": "ResetQueuedResourceRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "tpu.projects.locations.runtimeVersions.get": type ProjectsLocationsRuntimeVersionsGetCall struct {