diff --git a/accessapproval/v1/accessapproval-api.json b/accessapproval/v1/accessapproval-api.json index 0a6ae83407b..43347b47526 100644 --- a/accessapproval/v1/accessapproval-api.json +++ b/accessapproval/v1/accessapproval-api.json @@ -913,7 +913,7 @@ } } }, - "revision": "20260126", + "revision": "20260703", "rootUrl": "https://accessapproval.googleapis.com/", "schemas": { "AccessApprovalServiceAccount": { @@ -1351,7 +1351,8 @@ "PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256", "PQ_SIGN_ML_DSA_44_EXTERNAL_MU", "PQ_SIGN_ML_DSA_65_EXTERNAL_MU", - "PQ_SIGN_ML_DSA_87_EXTERNAL_MU" + "PQ_SIGN_ML_DSA_87_EXTERNAL_MU", + "AES_256_KWP" ], "enumDescriptions": [ "Not specified.", @@ -1400,7 +1401,8 @@ "The post-quantum stateless hash-based digital signature algorithm, at security level 1. Randomized pre-hash version supporting SHA256 digests.", "The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 1. Randomized version supporting externally-computed message representatives.", "The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 3. Randomized version supporting externally-computed message representatives.", - "The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 5. Randomized version supporting externally-computed message representatives." + "The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 5. Randomized version supporting externally-computed message representatives.", + "AES key wrap with zero padding algorithm (RFC 5649). Can only be used by keys with purpose AES_WRAPPING." ], "type": "string" }, diff --git a/accessapproval/v1/accessapproval-gen.go b/accessapproval/v1/accessapproval-gen.go index 356bd350ac7..d337324beae 100644 --- a/accessapproval/v1/accessapproval-gen.go +++ b/accessapproval/v1/accessapproval-gen.go @@ -894,6 +894,8 @@ type SignatureInfo struct { // "PQ_SIGN_ML_DSA_87_EXTERNAL_MU" - The post-quantum Module-Lattice-Based // Digital Signature Algorithm, at security level 5. Randomized version // supporting externally-computed message representatives. + // "AES_256_KWP" - AES key wrap with zero padding algorithm (RFC 5649). Can + // only be used by keys with purpose AES_WRAPPING. GoogleKeyAlgorithm string `json:"googleKeyAlgorithm,omitempty"` // GooglePublicKeyPem: The public key for the Google default signing, encoded // in PEM format. The signature was created using a private key which may be diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 56287f4f3fa..f96164d5640 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -4024,6 +4024,326 @@ } } }, + "memoryBanks": { + "resources": { + "memories": { + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/memoryBanks/{memoryBanksId}/memories/{memoriesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.memoryBanks.memories.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/memoryBanks/{memoryBanksId}/memories/{memoriesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.memoryBanks.memories.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/memoryBanks/{memoryBanksId}/memories/{memoriesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.memoryBanks.memories.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/memoryBanks/{memoryBanksId}/memories/{memoriesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.memoryBanks.memories.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^memoryBanks/[^/]+/memories/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/memoryBanks/{memoryBanksId}/memories/{memoriesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.memoryBanks.memories.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/memoryBanks/{memoryBanksId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.memoryBanks.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^memoryBanks/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/memoryBanks/{memoryBanksId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.memoryBanks.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^memoryBanks/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/memoryBanks/{memoryBanksId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.memoryBanks.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^memoryBanks/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/memoryBanks/{memoryBanksId}/operations", + "httpMethod": "GET", + "id": "aiplatform.memoryBanks.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^memoryBanks/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/memoryBanks/{memoryBanksId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.memoryBanks.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^memoryBanks/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, "metadataStores": { "resources": { "artifacts": { @@ -11299,6 +11619,139 @@ } } }, + "evaluationMetrics": { + "methods": { + "create": { + "description": "Creates an EvaluationMetric.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationMetrics", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.evaluationMetrics.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "evaluationMetricId": { + "description": "Optional. The ID to use for the EvaluationMetric, which will become the final component of the EvaluationMetric's resource name. This value should be 1-63 characters, and valid characters are /a-z-/. The first character must be a lowercase letter, and the last character must be a lowercase letter or number.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to create the EvaluationMetric in. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/evaluationMetrics", + "request": { + "$ref": "GoogleCloudAiplatformV1EvaluationMetric" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationMetric" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an EvaluationMetric.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationMetrics/{evaluationMetricsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.evaluationMetrics.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EvaluationMetric resource to be deleted. Format: `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationMetrics/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an EvaluationMetric.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationMetrics/{evaluationMetricsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.evaluationMetrics.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EvaluationMetric resource. Format: `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationMetrics/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationMetric" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists EvaluationMetrics.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationMetrics", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.evaluationMetrics.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter expression that matches a subset of the EvaluationMetrics to show. For field names both snake_case and camelCase are supported. For more information about filter syntax, see [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of EvaluationMetrics to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListEvaluationMetrics` call. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location from which to list the EvaluationMetrics. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/evaluationMetrics", + "response": { + "$ref": "GoogleCloudAiplatformV1ListEvaluationMetricsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "evaluationRuns": { "methods": { "cancel": { @@ -15992,6 +16445,353 @@ } } }, + "memoryBanks": { + "resources": { + "memories": { + "methods": { + "get": { + "description": "Get a Memory.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/memoryBanks/{memoryBanksId}/memories/{memoriesId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.memoryBanks.memories.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the Memory. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1Memory" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/memoryBanks/{memoryBanksId}/memories/{memoriesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.memoryBanks.memories.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/memoryBanks/{memoryBanksId}/memories/{memoriesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.memoryBanks.memories.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/memoryBanks/{memoryBanksId}/memories/{memoriesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.memoryBanks.memories.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/memoryBanks/{memoryBanksId}/memories/{memoriesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.memoryBanks.memories.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/memoryBanks/{memoryBanksId}/memories/{memoriesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.memoryBanks.memories.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/memories/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/memoryBanks/{memoryBanksId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.memoryBanks.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/memoryBanks/{memoryBanksId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.memoryBanks.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/memoryBanks/{memoryBanksId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.memoryBanks.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/memoryBanks/{memoryBanksId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.memoryBanks.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/memoryBanks/{memoryBanksId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.memoryBanks.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/memoryBanks/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, "metadataStores": { "methods": { "create": { @@ -29521,6 +30321,37 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.tuningJobs.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -33781,6 +34612,37 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/tuningJobs/{tuningJobsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.tuningJobs.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^tuningJobs/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -33845,7 +34707,7 @@ } } }, - "revision": "20260623", + "revision": "20260703", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoExperiments": { @@ -34713,6 +35575,62 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1AgentData": { + "description": "Represents data specific to multi-turn agent evaluations.", + "id": "GoogleCloudAiplatformV1AgentData", + "properties": { + "agents": { + "additionalProperties": { + "$ref": "GoogleCloudAiplatformV1AgentConfig" + }, + "description": "Optional. A map containing the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.", + "type": "object" + }, + "turns": { + "description": "Optional. A chronological list of conversation turns. Each turn represents a logical execution cycle (e.g., User Input -\u003e Agent Response).", + "items": { + "$ref": "GoogleCloudAiplatformV1ConversationTurn" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1AgentEvent": { + "description": "Represents a single event in the execution trace.", + "id": "GoogleCloudAiplatformV1AgentEvent", + "properties": { + "activeTools": { + "description": "Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the `AgentConfig.tools` if set.", + "items": { + "$ref": "GoogleCloudAiplatformV1Tool" + }, + "type": "array" + }, + "author": { + "description": "Required. The ID of the agent or entity that generated this event. Use \"user\" to denote events generated by the end-user.", + "type": "string" + }, + "content": { + "$ref": "GoogleCloudAiplatformV1Content", + "description": "Required. The content of the event (e.g., text response, tool call, tool response)." + }, + "eventTime": { + "description": "Optional. The timestamp when the event occurred.", + "format": "google-datetime", + "type": "string" + }, + "stateDelta": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.", + "type": "object" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1AgentTool": { "description": "A tool provides a list of actions available to the Agent during the process of executing a task.", "id": "GoogleCloudAiplatformV1AgentTool", @@ -36616,6 +37534,10 @@ "description": "Responses from model or agent.", "id": "GoogleCloudAiplatformV1CandidateResponse", "properties": { + "agentData": { + "$ref": "GoogleCloudAiplatformV1AgentData", + "description": "Optional. Represents the complete execution trace of a multi-turn conversation, which can involve single or multiple agents. This field is used to provide the full output of an agent's run, including all turns and events, for direct evaluation." + }, "candidate": { "description": "Required. The name of the candidate that produced the response.", "type": "string" @@ -36648,6 +37570,11 @@ "description": "Required. The candidate that is being evaluated. The value is the same as the candidate name in the EvaluationRequest.", "type": "string" }, + "error": { + "$ref": "GoogleRpcStatus", + "description": "Output only. Error while evaluating the candidate for the metric.", + "readOnly": true + }, "explanation": { "description": "Optional. The explanation for the metric.", "type": "string" @@ -36844,6 +37771,51 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1CloudLoggingConfig": { + "description": "Specifies configuration for exporting evaluation results to Cloud Logging.", + "id": "GoogleCloudAiplatformV1CloudLoggingConfig", + "properties": { + "project": { + "description": "Optional. Google Cloud project to write logs to. Defaults to the request project.", + "type": "string" + }, + "resourceLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. MonitoredResource labels to associate the log with. The backend will automatically inject project and location.", + "type": "object" + }, + "resourceType": { + "description": "Optional. MonitoredResource type. Defaults to \"global\" if unspecified.", + "type": "string" + }, + "tracingContext": { + "$ref": "GoogleCloudAiplatformV1CloudLoggingConfigTracingContext", + "description": "Optional. Tracing context for the evaluation run." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1CloudLoggingConfigTracingContext": { + "description": "Tracing context for Observability correlation.", + "id": "GoogleCloudAiplatformV1CloudLoggingConfigTracingContext", + "properties": { + "conversationId": { + "description": "Optional. Unique identifier for a conversation (session thread), used to store and correlate messages within a conversation. The value corresponds to the `gen_ai.conversation.id` field in the the OpenTelemetry GenAI attributes.", + "type": "string" + }, + "spanId": { + "description": "Optional. ID of the Cloud Trace span associated with the current operation in which the log is being written. e.g., `7a2190356c3fc94b`. If a span is being evaluated, this field should be populated.", + "type": "string" + }, + "traceId": { + "description": "Optional. Trace ID being written to Cloud Trace in association with this log entry. e.g., `12345`, the numeric ID from the resource name. If a trace or span is being evaluated, this field should be populated.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1CodeExecutionResult": { "description": "Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used.", "id": "GoogleCloudAiplatformV1CodeExecutionResult", @@ -37298,6 +38270,29 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1ConversationTurn": { + "description": "Represents a single turn/invocation in the conversation.", + "id": "GoogleCloudAiplatformV1ConversationTurn", + "properties": { + "events": { + "description": "Optional. The list of events that occurred during this turn.", + "items": { + "$ref": "GoogleCloudAiplatformV1AgentEvent" + }, + "type": "array" + }, + "turnId": { + "description": "Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.", + "type": "string" + }, + "turnIndex": { + "description": "Required. The 0-based index of the turn in the conversation sequence.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1CopyModelOperationMetadata": { "description": "Details of ModelService.CopyModel operation.", "id": "GoogleCloudAiplatformV1CopyModelOperationMetadata", @@ -40811,6 +41806,52 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1EvaluationMetric": { + "description": "EvaluationMetric is a resource that represents a reusable metric configuration.", + "id": "GoogleCloudAiplatformV1EvaluationMetric", + "properties": { + "createTime": { + "description": "Output only. The time when the EvaluationMetric was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. A description of the EvaluationMetric.", + "type": "string" + }, + "displayName": { + "description": "Required. The user-friendly display name for the EvaluationMetric.", + "type": "string" + }, + "gcsUri": { + "description": "Optional. The Google Cloud Storage URI that stores the metric specification..", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels for the evaluation metric.", + "type": "object" + }, + "metric": { + "$ref": "GoogleCloudAiplatformV1Metric", + "description": "Optional. The metric configuration. Only LLMMetric and CustomCodeExecutionMetric are supported." + }, + "name": { + "description": "Identifier. The resource name of the EvaluationMetric. Format: `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric}`", + "type": "string" + }, + "updateTime": { + "description": "Output only. The time when the EvaluationMetric was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1EvaluationParserConfig": { "description": "Config for parsing LLM responses. It can be used to parse the LLM response to be evaluated, or the LLM response from LLM-based metrics/Autoraters.", "id": "GoogleCloudAiplatformV1EvaluationParserConfig", @@ -40837,6 +41878,10 @@ "description": "Prompt to be evaluated. This can represent a single-turn prompt or a multi-turn conversation for agent evaluations.", "id": "GoogleCloudAiplatformV1EvaluationPrompt", "properties": { + "agentData": { + "$ref": "GoogleCloudAiplatformV1AgentData", + "description": "Optional. Represents the complete execution trace of a multi-turn conversation, which can involve single or multiple agents. This serves as the input context for agent scraping." + }, "promptTemplateData": { "$ref": "GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData", "description": "Prompt template data." @@ -40845,6 +41890,10 @@ "description": "Text prompt.", "type": "string" }, + "userScenario": { + "$ref": "GoogleCloudAiplatformV1EvaluationPromptUserScenario", + "description": "Optional. The generated user scenario used to drive multi-turn agent running results." + }, "value": { "description": "Fields and values that can be used to populate the prompt template.", "type": "any" @@ -40866,6 +41915,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1EvaluationPromptUserScenario": { + "description": "User scenario to help simulate multi-turn agent running results.", + "id": "GoogleCloudAiplatformV1EvaluationPromptUserScenario", + "properties": { + "conversationPlan": { + "description": "Required. The plan for the conversation, used to drive the multi-turn agent run and generate the simulated agent evaluation dataset.", + "type": "string" + }, + "startingPrompt": { + "description": "Required. The prompt that starts the conversation between the simulated user and the agent under test.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1EvaluationRequest": { "description": "A single evaluation request supporting input for both single-turn model generation and multi-turn agent execution traces. Valid input modes: 1. Inference Mode: `prompt` is set (containing text or AgentData context). 2. Offline Eval Mode: `prompt` is unset, and `candidate_responses` contains `agent_data` (the completed execution trace). Validation Rule: Either `prompt` must be set, OR at least one of the `candidate_responses` must contain `agent_data`.", "id": "GoogleCloudAiplatformV1EvaluationRequest", @@ -41081,6 +42145,10 @@ "$ref": "GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig", "description": "Optional. The autorater config for the evaluation run." }, + "cloudLoggingConfig": { + "$ref": "GoogleCloudAiplatformV1CloudLoggingConfig", + "description": "Optional. Configuration for exporting evaluation results to Cloud Logging." + }, "datasetCustomMetrics": { "description": "Optional. Specifications for custom dataset-level aggregations.", "items": { @@ -41088,6 +42156,13 @@ }, "type": "array" }, + "lossAnalysisConfig": { + "description": "Optional. Specifications for loss analysis. Each config can be specified for one metric.", + "items": { + "$ref": "GoogleCloudAiplatformV1LossAnalysisConfig" + }, + "type": "array" + }, "metrics": { "description": "Optional. The metrics to be calculated in the evaluation run. Required when analysis_configs is not set.", "items": { @@ -41171,6 +42246,13 @@ "$ref": "GoogleCloudAiplatformV1EvaluationRunInferenceConfigAgentRunConfig", "description": "Optional. Agent run config." }, + "agents": { + "additionalProperties": { + "$ref": "GoogleCloudAiplatformV1AgentConfig" + }, + "description": "Optional. Contains the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.", + "type": "object" + }, "generationConfig": { "$ref": "GoogleCloudAiplatformV1GenerationConfig", "description": "Optional. Generation config." @@ -41183,6 +42265,10 @@ "description": "Optional. The parallelism of the evaluation run for the inference step. If not specified, the default parallelism will be used.", "format": "int32", "type": "integer" + }, + "promptTemplate": { + "$ref": "GoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate", + "description": "Optional. The prompt template used for inference. The values for variables in the prompt template are defined in EvaluationItem.EvaluationPrompt.PromptTemplateData.values. If not specified, the prompt template in the EvaluationConfig will be used." } }, "type": "object" @@ -45376,7 +46462,7 @@ "additionalProperties": { "$ref": "GoogleCloudAiplatformV1AgentConfig" }, - "description": "Required. A map containing the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent.", + "description": "Optional. A map containing the static configurations for each agent in the system. Key: agent_id (matches the `author` field in events). Value: The static configuration of the agent. Required unless `gemini_agent_config` is set, in which case the agents map and `root_agent_id` are derived from the referenced Gemini Agent.", "type": "object" }, "allowCrossRegionModel": { @@ -45384,7 +46470,7 @@ "type": "boolean" }, "rootAgentId": { - "description": "Required. The agent id to identify the root agent.", + "description": "Optional. The agent id to identify the root agent. Required unless `gemini_agent_config` is set, in which case it is derived from the referenced Gemini Agent.", "type": "string" }, "userScenarioGenerationConfig": { @@ -47260,6 +48346,10 @@ "$ref": "GoogleCloudAiplatformV1IngestionDirectContentsSource", "description": "Ingest events directly from the request." }, + "disableMemoryRevisions": { + "description": "Optional. If true, no revisions will be created for this request.", + "type": "boolean" + }, "forceFlush": { "description": "Optional. Forces a flush of all pending events in the stream and triggers memory generation immediately bypassing any conditions configured in the `generation_trigger_config`.", "type": "boolean" @@ -47268,6 +48358,46 @@ "$ref": "GoogleCloudAiplatformV1MemoryGenerationTriggerConfig", "description": "Optional. Configuration for triggering memory generation from this ingestion. If not set, then the stream will be force flushed immediately." }, + "metadata": { + "additionalProperties": { + "$ref": "GoogleCloudAiplatformV1MemoryMetadataValue" + }, + "description": "Optional. User-provided metadata for the generated memories. This is not generated by Memory Bank.", + "type": "object" + }, + "metadataMergeStrategy": { + "description": "Optional. The strategy to use when applying metadata to existing memories.", + "enum": [ + "METADATA_MERGE_STRATEGY_UNSPECIFIED", + "OVERWRITE", + "MERGE", + "REQUIRE_EXACT_MATCH" + ], + "enumDescriptions": [ + "Unspecified metadata merge strategy. If unspecified, the default behavior is to overwrite existing metadata (`OVERWRITE`).", + "Replace the metadata of the updated memories with the new metadata.", + "Append new metadata to the existing metadata. If there are duplicate keys, the existing values will be overwritten.", + "Restrict consolidation to memories that have exactly the same metadata as the request. If a memory doesn't have the same metadata, it is not eligible for consolidation." + ], + "type": "string" + }, + "revisionExpireTime": { + "description": "Optional. Timestamp of when the revision is considered expired. If not set, the memory revision will be kept until manually deleted.", + "format": "google-datetime", + "type": "string" + }, + "revisionLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels to be applied to the generated memory revisions. For example, you can use this to label a revision with its data source.", + "type": "object" + }, + "revisionTtl": { + "description": "Optional. The TTL for the revision. The expiration time is computed: now + TTL.", + "format": "google-duration", + "type": "string" + }, "scope": { "additionalProperties": { "type": "string" @@ -47878,6 +49008,24 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1ListEvaluationMetricsResponse": { + "description": "Response message for EvaluationMetricService.ListEvaluationMetrics.", + "id": "GoogleCloudAiplatformV1ListEvaluationMetricsResponse", + "properties": { + "evaluationMetrics": { + "description": "List of EvaluationMetrics in the requested page.", + "items": { + "$ref": "GoogleCloudAiplatformV1EvaluationMetric" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve the next page of results.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1ListEvaluationRunsResponse": { "description": "Response message for EvaluationManagementService.ListEvaluationRuns.", "id": "GoogleCloudAiplatformV1ListEvaluationRunsResponse", @@ -49387,6 +50535,11 @@ "description": "Optional. Specifies to trigger generation if the stream is inactive for the specified duration after the most recent event. The duration must have a minute-level granularity.", "format": "google-duration", "type": "string" + }, + "overlapEventCount": { + "description": "Optional. Re-include the last N already-processed events in the next window.", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -56782,6 +57935,10 @@ "description": "Optional. The OSS agent framework used to develop the agent. Currently supported values: \"google-adk\", \"langchain\", \"langgraph\", \"ag2\", \"llama-index\", \"custom\".", "type": "string" }, + "buildSpec": { + "$ref": "GoogleCloudAiplatformV1ReasoningEngineSpecBuildSpec", + "description": "Optional. Configuration for building container image." + }, "classMethods": { "description": "Optional. Declarations for object class methods in OpenAPI specification format.", "items": { @@ -56835,6 +57992,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1ReasoningEngineSpecBuildSpec": { + "description": "Specification for building container image.", + "id": "GoogleCloudAiplatformV1ReasoningEngineSpecBuildSpec", + "properties": { + "workerPool": { + "description": "Optional. Identifier. The resource name of the Cloud Build WorkerPool to use for the build. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1ReasoningEngineSpecContainerSpec": { "description": "Specification for deploying from a container image.", "id": "GoogleCloudAiplatformV1ReasoningEngineSpecContainerSpec", @@ -66300,6 +67468,11 @@ "type": "object" }, "enableDataRetention": { + "deprecated": true, + "description": "Optional. Deprecated: Use `enable_zero_data_retention` instead. Instructs Vertex Grounding to use Parallel's Zero Data Retention Marketplace product. If this value is \"false\" or omitted, the Parallel Web Search for Grounding standard subscription will be used. If this value is \"true\", the Parallel Web Search for Grounding - ZDR subscription will be used.", + "type": "boolean" + }, + "enableZeroDataRetention": { "description": "Optional. Instructs Vertex Grounding to use Parallel's Zero Data Retention Marketplace product. If this value is \"false\" or omitted, the Parallel Web Search for Grounding standard subscription will be used. If this value is \"true\", the Parallel Web Search for Grounding - ZDR subscription will be used.", "type": "boolean" } diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 2be5d7bb92f..95669cda074 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -142,6 +142,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err s.IndexEndpoints = NewIndexEndpointsService(s) s.Indexes = NewIndexesService(s) s.Media = NewMediaService(s) + s.MemoryBanks = NewMemoryBanksService(s) s.MetadataStores = NewMetadataStoresService(s) s.MigratableResources = NewMigratableResourcesService(s) s.ModelDeploymentMonitoringJobs = NewModelDeploymentMonitoringJobsService(s) @@ -217,6 +218,8 @@ type Service struct { Media *MediaService + MemoryBanks *MemoryBanksService + MetadataStores *MetadataStoresService MigratableResources *MigratableResourcesService @@ -740,6 +743,51 @@ type MediaService struct { s *Service } +func NewMemoryBanksService(s *Service) *MemoryBanksService { + rs := &MemoryBanksService{s: s} + rs.Memories = NewMemoryBanksMemoriesService(s) + rs.Operations = NewMemoryBanksOperationsService(s) + return rs +} + +type MemoryBanksService struct { + s *Service + + Memories *MemoryBanksMemoriesService + + Operations *MemoryBanksOperationsService +} + +func NewMemoryBanksMemoriesService(s *Service) *MemoryBanksMemoriesService { + rs := &MemoryBanksMemoriesService{s: s} + rs.Operations = NewMemoryBanksMemoriesOperationsService(s) + return rs +} + +type MemoryBanksMemoriesService struct { + s *Service + + Operations *MemoryBanksMemoriesOperationsService +} + +func NewMemoryBanksMemoriesOperationsService(s *Service) *MemoryBanksMemoriesOperationsService { + rs := &MemoryBanksMemoriesOperationsService{s: s} + return rs +} + +type MemoryBanksMemoriesOperationsService struct { + s *Service +} + +func NewMemoryBanksOperationsService(s *Service) *MemoryBanksOperationsService { + rs := &MemoryBanksOperationsService{s: s} + return rs +} + +type MemoryBanksOperationsService struct { + s *Service +} + func NewMetadataStoresService(s *Service) *MetadataStoresService { rs := &MetadataStoresService{s: s} rs.Artifacts = NewMetadataStoresArtifactsService(s) @@ -1078,6 +1126,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.DeploymentResourcePools = NewProjectsLocationsDeploymentResourcePoolsService(s) rs.Endpoints = NewProjectsLocationsEndpointsService(s) rs.EvaluationItems = NewProjectsLocationsEvaluationItemsService(s) + rs.EvaluationMetrics = NewProjectsLocationsEvaluationMetricsService(s) rs.EvaluationRuns = NewProjectsLocationsEvaluationRunsService(s) rs.EvaluationSets = NewProjectsLocationsEvaluationSetsService(s) rs.FeatureGroups = NewProjectsLocationsFeatureGroupsService(s) @@ -1086,6 +1135,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.HyperparameterTuningJobs = NewProjectsLocationsHyperparameterTuningJobsService(s) rs.IndexEndpoints = NewProjectsLocationsIndexEndpointsService(s) rs.Indexes = NewProjectsLocationsIndexesService(s) + rs.MemoryBanks = NewProjectsLocationsMemoryBanksService(s) rs.MetadataStores = NewProjectsLocationsMetadataStoresService(s) rs.MigratableResources = NewProjectsLocationsMigratableResourcesService(s) rs.ModelDeploymentMonitoringJobs = NewProjectsLocationsModelDeploymentMonitoringJobsService(s) @@ -1135,6 +1185,8 @@ type ProjectsLocationsService struct { EvaluationItems *ProjectsLocationsEvaluationItemsService + EvaluationMetrics *ProjectsLocationsEvaluationMetricsService + EvaluationRuns *ProjectsLocationsEvaluationRunsService EvaluationSets *ProjectsLocationsEvaluationSetsService @@ -1151,6 +1203,8 @@ type ProjectsLocationsService struct { Indexes *ProjectsLocationsIndexesService + MemoryBanks *ProjectsLocationsMemoryBanksService + MetadataStores *ProjectsLocationsMetadataStoresService MigratableResources *ProjectsLocationsMigratableResourcesService @@ -1535,6 +1589,15 @@ type ProjectsLocationsEvaluationItemsService struct { s *Service } +func NewProjectsLocationsEvaluationMetricsService(s *Service) *ProjectsLocationsEvaluationMetricsService { + rs := &ProjectsLocationsEvaluationMetricsService{s: s} + return rs +} + +type ProjectsLocationsEvaluationMetricsService struct { + s *Service +} + func NewProjectsLocationsEvaluationRunsService(s *Service) *ProjectsLocationsEvaluationRunsService { rs := &ProjectsLocationsEvaluationRunsService{s: s} return rs @@ -1787,6 +1850,51 @@ type ProjectsLocationsIndexesOperationsService struct { s *Service } +func NewProjectsLocationsMemoryBanksService(s *Service) *ProjectsLocationsMemoryBanksService { + rs := &ProjectsLocationsMemoryBanksService{s: s} + rs.Memories = NewProjectsLocationsMemoryBanksMemoriesService(s) + rs.Operations = NewProjectsLocationsMemoryBanksOperationsService(s) + return rs +} + +type ProjectsLocationsMemoryBanksService struct { + s *Service + + Memories *ProjectsLocationsMemoryBanksMemoriesService + + Operations *ProjectsLocationsMemoryBanksOperationsService +} + +func NewProjectsLocationsMemoryBanksMemoriesService(s *Service) *ProjectsLocationsMemoryBanksMemoriesService { + rs := &ProjectsLocationsMemoryBanksMemoriesService{s: s} + rs.Operations = NewProjectsLocationsMemoryBanksMemoriesOperationsService(s) + return rs +} + +type ProjectsLocationsMemoryBanksMemoriesService struct { + s *Service + + Operations *ProjectsLocationsMemoryBanksMemoriesOperationsService +} + +func NewProjectsLocationsMemoryBanksMemoriesOperationsService(s *Service) *ProjectsLocationsMemoryBanksMemoriesOperationsService { + rs := &ProjectsLocationsMemoryBanksMemoriesOperationsService{s: s} + return rs +} + +type ProjectsLocationsMemoryBanksMemoriesOperationsService struct { + s *Service +} + +func NewProjectsLocationsMemoryBanksOperationsService(s *Service) *ProjectsLocationsMemoryBanksOperationsService { + rs := &ProjectsLocationsMemoryBanksOperationsService{s: s} + return rs +} + +type ProjectsLocationsMemoryBanksOperationsService struct { + s *Service +} + func NewProjectsLocationsMetadataStoresService(s *Service) *ProjectsLocationsMetadataStoresService { rs := &ProjectsLocationsMetadataStoresService{s: s} rs.Artifacts = NewProjectsLocationsMetadataStoresArtifactsService(s) @@ -4290,6 +4398,70 @@ func (s GoogleCloudAiplatformV1AgentConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1AgentData: Represents data specific to multi-turn +// agent evaluations. +type GoogleCloudAiplatformV1AgentData struct { + // Agents: Optional. A map containing the static configurations for each agent + // in the system. Key: agent_id (matches the `author` field in events). Value: + // The static configuration of the agent. + Agents map[string]GoogleCloudAiplatformV1AgentConfig `json:"agents,omitempty"` + // Turns: Optional. A chronological list of conversation turns. Each turn + // represents a logical execution cycle (e.g., User Input -> Agent Response). + Turns []*GoogleCloudAiplatformV1ConversationTurn `json:"turns,omitempty"` + // ForceSendFields is a list of field names (e.g. "Agents") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Agents") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1AgentData) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1AgentData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1AgentEvent: Represents a single event in the +// execution trace. +type GoogleCloudAiplatformV1AgentEvent struct { + // ActiveTools: Optional. The list of tools that were active/available to the + // agent at the time of this event. This overrides the `AgentConfig.tools` if + // set. + ActiveTools []*GoogleCloudAiplatformV1Tool `json:"activeTools,omitempty"` + // Author: Required. The ID of the agent or entity that generated this event. + // Use "user" to denote events generated by the end-user. + Author string `json:"author,omitempty"` + // Content: Required. The content of the event (e.g., text response, tool call, + // tool response). + Content *GoogleCloudAiplatformV1Content `json:"content,omitempty"` + // EventTime: Optional. The timestamp when the event occurred. + EventTime string `json:"eventTime,omitempty"` + // StateDelta: Optional. The change in the session state caused by this event. + // This is a key-value map of fields that were modified or added by the event. + StateDelta googleapi.RawMessage `json:"stateDelta,omitempty"` + // ForceSendFields is a list of field names (e.g. "ActiveTools") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ActiveTools") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1AgentEvent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1AgentEvent + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1AgentTool: A tool provides a list of actions // available to the Agent during the process of executing a task. type GoogleCloudAiplatformV1AgentTool struct { @@ -7007,6 +7179,11 @@ func (s *GoogleCloudAiplatformV1Candidate) UnmarshalJSON(data []byte) error { // GoogleCloudAiplatformV1CandidateResponse: Responses from model or agent. type GoogleCloudAiplatformV1CandidateResponse struct { + // AgentData: Optional. Represents the complete execution trace of a multi-turn + // conversation, which can involve single or multiple agents. This field is + // used to provide the full output of an agent's run, including all turns and + // events, for direct evaluation. + AgentData *GoogleCloudAiplatformV1AgentData `json:"agentData,omitempty"` // Candidate: Required. The name of the candidate that produced the response. Candidate string `json:"candidate,omitempty"` // Error: Output only. Error while scraping model or agent. @@ -7015,13 +7192,13 @@ type GoogleCloudAiplatformV1CandidateResponse struct { Text string `json:"text,omitempty"` // Value: Fields and values that can be used to populate the response template. Value interface{} `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Candidate") to + // ForceSendFields is a list of field names (e.g. "AgentData") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Candidate") to include in API + // NullFields is a list of field names (e.g. "AgentData") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -7040,6 +7217,8 @@ type GoogleCloudAiplatformV1CandidateResult struct { // Candidate: Required. The candidate that is being evaluated. The value is the // same as the candidate name in the EvaluationRequest. Candidate string `json:"candidate,omitempty"` + // Error: Output only. Error while evaluating the candidate for the metric. + Error *GoogleRpcStatus `json:"error,omitempty"` // Explanation: Optional. The explanation for the metric. Explanation string `json:"explanation,omitempty"` // Metric: Required. The metric that was evaluated. @@ -7315,6 +7494,72 @@ func (s GoogleCloudAiplatformV1ClientConnectionConfig) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1CloudLoggingConfig: Specifies configuration for +// exporting evaluation results to Cloud Logging. +type GoogleCloudAiplatformV1CloudLoggingConfig struct { + // Project: Optional. Google Cloud project to write logs to. Defaults to the + // request project. + Project string `json:"project,omitempty"` + // ResourceLabels: Optional. MonitoredResource labels to associate the log + // with. The backend will automatically inject project and location. + ResourceLabels map[string]string `json:"resourceLabels,omitempty"` + // ResourceType: Optional. MonitoredResource type. Defaults to "global" if + // unspecified. + ResourceType string `json:"resourceType,omitempty"` + // TracingContext: Optional. Tracing context for the evaluation run. + TracingContext *GoogleCloudAiplatformV1CloudLoggingConfigTracingContext `json:"tracingContext,omitempty"` + // ForceSendFields is a list of field names (e.g. "Project") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Project") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1CloudLoggingConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1CloudLoggingConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1CloudLoggingConfigTracingContext: Tracing context for +// Observability correlation. +type GoogleCloudAiplatformV1CloudLoggingConfigTracingContext struct { + // ConversationId: Optional. Unique identifier for a conversation (session + // thread), used to store and correlate messages within a conversation. The + // value corresponds to the `gen_ai.conversation.id` field in the the + // OpenTelemetry GenAI attributes. + ConversationId string `json:"conversationId,omitempty"` + // SpanId: Optional. ID of the Cloud Trace span associated with the current + // operation in which the log is being written. e.g., `7a2190356c3fc94b`. If a + // span is being evaluated, this field should be populated. + SpanId string `json:"spanId,omitempty"` + // TraceId: Optional. Trace ID being written to Cloud Trace in association with + // this log entry. e.g., `12345`, the numeric ID from the resource name. If a + // trace or span is being evaluated, this field should be populated. + TraceId string `json:"traceId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConversationId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConversationId") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1CloudLoggingConfigTracingContext) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1CloudLoggingConfigTracingContext + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1CodeExecutionResult: Result of executing the // ExecutableCode. Generated only when the `CodeExecution` tool is used. type GoogleCloudAiplatformV1CodeExecutionResult struct { @@ -7964,6 +8209,35 @@ func (s GoogleCloudAiplatformV1Context) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1ConversationTurn: Represents a single turn/invocation +// in the conversation. +type GoogleCloudAiplatformV1ConversationTurn struct { + // Events: Optional. The list of events that occurred during this turn. + Events []*GoogleCloudAiplatformV1AgentEvent `json:"events,omitempty"` + // TurnId: Optional. A unique identifier for the turn. Useful for referencing + // specific turns across systems. + TurnId string `json:"turnId,omitempty"` + // TurnIndex: Required. The 0-based index of the turn in the conversation + // sequence. + TurnIndex int64 `json:"turnIndex,omitempty"` + // ForceSendFields is a list of field names (e.g. "Events") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Events") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1ConversationTurn) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ConversationTurn + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1CopyModelOperationMetadata: Details of // ModelService.CopyModel operation. type GoogleCloudAiplatformV1CopyModelOperationMetadata struct { @@ -12726,6 +13000,52 @@ func (s GoogleCloudAiplatformV1EvaluationItem) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1EvaluationMetric: EvaluationMetric is a resource that +// represents a reusable metric configuration. +type GoogleCloudAiplatformV1EvaluationMetric struct { + // CreateTime: Output only. The time when the EvaluationMetric was created. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. A description of the EvaluationMetric. + Description string `json:"description,omitempty"` + // DisplayName: Required. The user-friendly display name for the + // EvaluationMetric. + DisplayName string `json:"displayName,omitempty"` + // GcsUri: Optional. The Google Cloud Storage URI that stores the metric + // specification.. + GcsUri string `json:"gcsUri,omitempty"` + // Labels: Optional. Labels for the evaluation metric. + Labels map[string]string `json:"labels,omitempty"` + // Metric: Optional. The metric configuration. Only LLMMetric and + // CustomCodeExecutionMetric are supported. + Metric *GoogleCloudAiplatformV1Metric `json:"metric,omitempty"` + // Name: Identifier. The resource name of the EvaluationMetric. Format: + // `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metric + // }` + Name string `json:"name,omitempty"` + // UpdateTime: Output only. The time when the EvaluationMetric was last + // updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1EvaluationMetric) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1EvaluationMetric + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1EvaluationParserConfig: Config for parsing LLM // responses. It can be used to parse the LLM response to be evaluated, or the // LLM response from LLM-based metrics/Autoraters. @@ -12790,21 +13110,28 @@ func (s GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig) Mar // represent a single-turn prompt or a multi-turn conversation for agent // evaluations. type GoogleCloudAiplatformV1EvaluationPrompt struct { + // AgentData: Optional. Represents the complete execution trace of a multi-turn + // conversation, which can involve single or multiple agents. This serves as + // the input context for agent scraping. + AgentData *GoogleCloudAiplatformV1AgentData `json:"agentData,omitempty"` // PromptTemplateData: Prompt template data. PromptTemplateData *GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData `json:"promptTemplateData,omitempty"` // Text: Text prompt. Text string `json:"text,omitempty"` + // UserScenario: Optional. The generated user scenario used to drive multi-turn + // agent running results. + UserScenario *GoogleCloudAiplatformV1EvaluationPromptUserScenario `json:"userScenario,omitempty"` // Value: Fields and values that can be used to populate the prompt template. Value interface{} `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "PromptTemplateData") to + // ForceSendFields is a list of field names (e.g. "AgentData") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PromptTemplateData") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "AgentData") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -12837,6 +13164,33 @@ func (s GoogleCloudAiplatformV1EvaluationPromptPromptTemplateData) MarshalJSON() return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1EvaluationPromptUserScenario: User scenario to help +// simulate multi-turn agent running results. +type GoogleCloudAiplatformV1EvaluationPromptUserScenario struct { + // ConversationPlan: Required. The plan for the conversation, used to drive the + // multi-turn agent run and generate the simulated agent evaluation dataset. + ConversationPlan string `json:"conversationPlan,omitempty"` + // StartingPrompt: Required. The prompt that starts the conversation between + // the simulated user and the agent under test. + StartingPrompt string `json:"startingPrompt,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConversationPlan") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConversationPlan") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1EvaluationPromptUserScenario) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1EvaluationPromptUserScenario + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1EvaluationRequest: A single evaluation request // supporting input for both single-turn model generation and multi-turn agent // execution traces. Valid input modes: 1. Inference Mode: `prompt` is set @@ -13070,9 +13424,15 @@ func (s GoogleCloudAiplatformV1EvaluationRunDataSource) MarshalJSON() ([]byte, e type GoogleCloudAiplatformV1EvaluationRunEvaluationConfig struct { // AutoraterConfig: Optional. The autorater config for the evaluation run. AutoraterConfig *GoogleCloudAiplatformV1EvaluationRunEvaluationConfigAutoraterConfig `json:"autoraterConfig,omitempty"` + // CloudLoggingConfig: Optional. Configuration for exporting evaluation results + // to Cloud Logging. + CloudLoggingConfig *GoogleCloudAiplatformV1CloudLoggingConfig `json:"cloudLoggingConfig,omitempty"` // DatasetCustomMetrics: Optional. Specifications for custom dataset-level // aggregations. DatasetCustomMetrics []*GoogleCloudAiplatformV1DatasetCustomMetric `json:"datasetCustomMetrics,omitempty"` + // LossAnalysisConfig: Optional. Specifications for loss analysis. Each config + // can be specified for one metric. + LossAnalysisConfig []*GoogleCloudAiplatformV1LossAnalysisConfig `json:"lossAnalysisConfig,omitempty"` // Metrics: Optional. The metrics to be calculated in the evaluation run. // Required when analysis_configs is not set. Metrics []*GoogleCloudAiplatformV1EvaluationRunMetric `json:"metrics,omitempty"` @@ -13206,6 +13566,10 @@ func (s GoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate) Mars type GoogleCloudAiplatformV1EvaluationRunInferenceConfig struct { // AgentRunConfig: Optional. Agent run config. AgentRunConfig *GoogleCloudAiplatformV1EvaluationRunInferenceConfigAgentRunConfig `json:"agentRunConfig,omitempty"` + // Agents: Optional. Contains the static configurations for each agent in the + // system. Key: agent_id (matches the `author` field in events). Value: The + // static configuration of the agent. + Agents map[string]GoogleCloudAiplatformV1AgentConfig `json:"agents,omitempty"` // GenerationConfig: Optional. Generation config. GenerationConfig *GoogleCloudAiplatformV1GenerationConfig `json:"generationConfig,omitempty"` // Model: Optional. The fully qualified name of the publisher model or endpoint @@ -13222,6 +13586,11 @@ type GoogleCloudAiplatformV1EvaluationRunInferenceConfig struct { // Parallelism: Optional. The parallelism of the evaluation run for the // inference step. If not specified, the default parallelism will be used. Parallelism int64 `json:"parallelism,omitempty"` + // PromptTemplate: Optional. The prompt template used for inference. The values + // for variables in the prompt template are defined in + // EvaluationItem.EvaluationPrompt.PromptTemplateData.values. If not specified, + // the prompt template in the EvaluationConfig will be used. + PromptTemplate *GoogleCloudAiplatformV1EvaluationRunEvaluationConfigPromptTemplate `json:"promptTemplate,omitempty"` // ForceSendFields is a list of field names (e.g. "AgentRunConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -19208,9 +19577,11 @@ func (s GoogleCloudAiplatformV1GenerateSyntheticDataResponse) MarshalJSON() ([]b // GoogleCloudAiplatformV1GenerateUserScenariosRequest: Request message for // DataFoundryService.GenerateUserScenarios. type GoogleCloudAiplatformV1GenerateUserScenariosRequest struct { - // Agents: Required. A map containing the static configurations for each agent + // Agents: Optional. A map containing the static configurations for each agent // in the system. Key: agent_id (matches the `author` field in events). Value: - // The static configuration of the agent. + // The static configuration of the agent. Required unless `gemini_agent_config` + // is set, in which case the agents map and `root_agent_id` are derived from + // the referenced Gemini Agent. Agents map[string]GoogleCloudAiplatformV1AgentConfig `json:"agents,omitempty"` // AllowCrossRegionModel: Optional. Allows the scenario generation to use cross // region models. When this flag is set, the service may route traffic to other @@ -19219,7 +19590,9 @@ type GoogleCloudAiplatformV1GenerateUserScenariosRequest struct { // different region than the request location is provided elsewhere in the // request, this flag must be set to true or the request will fail. AllowCrossRegionModel bool `json:"allowCrossRegionModel,omitempty"` - // RootAgentId: Required. The agent id to identify the root agent. + // RootAgentId: Optional. The agent id to identify the root agent. Required + // unless `gemini_agent_config` is set, in which case it is derived from the + // referenced Gemini Agent. RootAgentId string `json:"rootAgentId,omitempty"` // UserScenarioGenerationConfig: Required. Configuration for generating user // scenarios. @@ -21557,6 +21930,9 @@ func (s GoogleCloudAiplatformV1IndexStats) MarshalJSON() ([]byte, error) { type GoogleCloudAiplatformV1IngestEventsRequest struct { // DirectContentsSource: Ingest events directly from the request. DirectContentsSource *GoogleCloudAiplatformV1IngestionDirectContentsSource `json:"directContentsSource,omitempty"` + // DisableMemoryRevisions: Optional. If true, no revisions will be created for + // this request. + DisableMemoryRevisions bool `json:"disableMemoryRevisions,omitempty"` // ForceFlush: Optional. Forces a flush of all pending events in the stream and // triggers memory generation immediately bypassing any conditions configured // in the `generation_trigger_config`. @@ -21565,6 +21941,35 @@ type GoogleCloudAiplatformV1IngestEventsRequest struct { // generation from this ingestion. If not set, then the stream will be force // flushed immediately. GenerationTriggerConfig *GoogleCloudAiplatformV1MemoryGenerationTriggerConfig `json:"generationTriggerConfig,omitempty"` + // Metadata: Optional. User-provided metadata for the generated memories. This + // is not generated by Memory Bank. + Metadata map[string]GoogleCloudAiplatformV1MemoryMetadataValue `json:"metadata,omitempty"` + // MetadataMergeStrategy: Optional. The strategy to use when applying metadata + // to existing memories. + // + // Possible values: + // "METADATA_MERGE_STRATEGY_UNSPECIFIED" - Unspecified metadata merge + // strategy. If unspecified, the default behavior is to overwrite existing + // metadata (`OVERWRITE`). + // "OVERWRITE" - Replace the metadata of the updated memories with the new + // metadata. + // "MERGE" - Append new metadata to the existing metadata. If there are + // duplicate keys, the existing values will be overwritten. + // "REQUIRE_EXACT_MATCH" - Restrict consolidation to memories that have + // exactly the same metadata as the request. If a memory doesn't have the same + // metadata, it is not eligible for consolidation. + MetadataMergeStrategy string `json:"metadataMergeStrategy,omitempty"` + // RevisionExpireTime: Optional. Timestamp of when the revision is considered + // expired. If not set, the memory revision will be kept until manually + // deleted. + RevisionExpireTime string `json:"revisionExpireTime,omitempty"` + // RevisionLabels: Optional. Labels to be applied to the generated memory + // revisions. For example, you can use this to label a revision with its data + // source. + RevisionLabels map[string]string `json:"revisionLabels,omitempty"` + // RevisionTtl: Optional. The TTL for the revision. The expiration time is + // computed: now + TTL. + RevisionTtl string `json:"revisionTtl,omitempty"` // Scope: Required. The scope of the memories that should be generated from the // stream. Memories will be consolidated across memories with the same scope. // Scope values cannot contain the wildcard character '*'. @@ -22509,6 +22914,34 @@ func (s GoogleCloudAiplatformV1ListEvaluationItemsResponse) MarshalJSON() ([]byt return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1ListEvaluationMetricsResponse: Response message for +// EvaluationMetricService.ListEvaluationMetrics. +type GoogleCloudAiplatformV1ListEvaluationMetricsResponse struct { + // EvaluationMetrics: List of EvaluationMetrics in the requested page. + EvaluationMetrics []*GoogleCloudAiplatformV1EvaluationMetric `json:"evaluationMetrics,omitempty"` + // NextPageToken: A token to retrieve the next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "EvaluationMetrics") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EvaluationMetrics") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1ListEvaluationMetricsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ListEvaluationMetricsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1ListEvaluationRunsResponse: Response message for // EvaluationManagementService.ListEvaluationRuns. type GoogleCloudAiplatformV1ListEvaluationRunsResponse struct { @@ -24822,6 +25255,9 @@ type GoogleCloudAiplatformV1MemoryGenerationTriggerConfigGenerationTriggerRule s // inactive for the specified duration after the most recent event. The // duration must have a minute-level granularity. IdleDuration string `json:"idleDuration,omitempty"` + // OverlapEventCount: Optional. Re-include the last N already-processed events + // in the next window. + OverlapEventCount int64 `json:"overlapEventCount,omitempty"` // ForceSendFields is a list of field names (e.g. "EventCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -34827,6 +35263,8 @@ type GoogleCloudAiplatformV1ReasoningEngineSpec struct { // Currently supported values: "google-adk", "langchain", "langgraph", "ag2", // "llama-index", "custom". AgentFramework string `json:"agentFramework,omitempty"` + // BuildSpec: Optional. Configuration for building container image. + BuildSpec *GoogleCloudAiplatformV1ReasoningEngineSpecBuildSpec `json:"buildSpec,omitempty"` // ClassMethods: Optional. Declarations for object class methods in OpenAPI // specification format. ClassMethods []googleapi.RawMessage `json:"classMethods,omitempty"` @@ -34893,6 +35331,31 @@ func (s GoogleCloudAiplatformV1ReasoningEngineSpec) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1ReasoningEngineSpecBuildSpec: Specification for +// building container image. +type GoogleCloudAiplatformV1ReasoningEngineSpecBuildSpec struct { + // WorkerPool: Optional. Identifier. The resource name of the Cloud Build + // WorkerPool to use for the build. Format: + // `projects/{project}/locations/{location}/workerPools/{worker_pool}` + WorkerPool string `json:"workerPool,omitempty"` + // ForceSendFields is a list of field names (e.g. "WorkerPool") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "WorkerPool") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1ReasoningEngineSpecBuildSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ReasoningEngineSpecBuildSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1ReasoningEngineSpecContainerSpec: Specification for // deploying from a container image. type GoogleCloudAiplatformV1ReasoningEngineSpecContainerSpec struct { @@ -48959,12 +49422,19 @@ type GoogleCloudAiplatformV1ToolParallelAiSearch struct { // "include_domains": ["google.com", "wikipedia.org"], "exclude_domains": // ["example.com"] }, "fetch_policy": { "max_age_seconds": 3600 } } CustomConfigs googleapi.RawMessage `json:"customConfigs,omitempty"` - // EnableDataRetention: Optional. Instructs Vertex Grounding to use Parallel's - // Zero Data Retention Marketplace product. If this value is "false" or - // omitted, the Parallel Web Search for Grounding standard subscription will be - // used. If this value is "true", the Parallel Web Search for Grounding - ZDR - // subscription will be used. + // EnableDataRetention: Optional. Deprecated: Use `enable_zero_data_retention` + // instead. Instructs Vertex Grounding to use Parallel's Zero Data Retention + // Marketplace product. If this value is "false" or omitted, the Parallel Web + // Search for Grounding standard subscription will be used. If this value is + // "true", the Parallel Web Search for Grounding - ZDR subscription will be + // used. EnableDataRetention bool `json:"enableDataRetention,omitempty"` + // EnableZeroDataRetention: Optional. Instructs Vertex Grounding to use + // Parallel's Zero Data Retention Marketplace product. If this value is "false" + // or omitted, the Parallel Web Search for Grounding standard subscription will + // be used. If this value is "true", the Parallel Web Search for Grounding - + // ZDR subscription will be used. + EnableZeroDataRetention bool `json:"enableZeroDataRetention,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiKey") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -66492,7 +66962,7 @@ func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatfo return ret, nil } -type MetadataStoresArtifactsOperationsCancelCall struct { +type MemoryBanksMemoriesOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -66511,8 +66981,8 @@ type MetadataStoresArtifactsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *MetadataStoresArtifactsOperationsService) Cancel(name string) *MetadataStoresArtifactsOperationsCancelCall { - c := &MetadataStoresArtifactsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MemoryBanksMemoriesOperationsService) Cancel(name string) *MemoryBanksMemoriesOperationsCancelCall { + c := &MemoryBanksMemoriesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -66520,27 +66990,27 @@ func (r *MetadataStoresArtifactsOperationsService) Cancel(name string) *Metadata // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresArtifactsOperationsCancelCall) Fields(s ...googleapi.Field) *MetadataStoresArtifactsOperationsCancelCall { +func (c *MemoryBanksMemoriesOperationsCancelCall) Fields(s ...googleapi.Field) *MemoryBanksMemoriesOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresArtifactsOperationsCancelCall) Context(ctx context.Context) *MetadataStoresArtifactsOperationsCancelCall { +func (c *MemoryBanksMemoriesOperationsCancelCall) Context(ctx context.Context) *MemoryBanksMemoriesOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresArtifactsOperationsCancelCall) Header() http.Header { +func (c *MemoryBanksMemoriesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresArtifactsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *MemoryBanksMemoriesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -66554,17 +67024,17 @@ func (c *MetadataStoresArtifactsOperationsCancelCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.memories.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.artifacts.operations.cancel" call. +// Do executes the "aiplatform.memoryBanks.memories.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *MetadataStoresArtifactsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *MemoryBanksMemoriesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -66594,11 +67064,11 @@ func (c *MetadataStoresArtifactsOperationsCancelCall) Do(opts ...googleapi.CallO if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.memories.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MetadataStoresArtifactsOperationsDeleteCall struct { +type MemoryBanksMemoriesOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -66612,8 +67082,8 @@ type MetadataStoresArtifactsOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *MetadataStoresArtifactsOperationsService) Delete(name string) *MetadataStoresArtifactsOperationsDeleteCall { - c := &MetadataStoresArtifactsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MemoryBanksMemoriesOperationsService) Delete(name string) *MemoryBanksMemoriesOperationsDeleteCall { + c := &MemoryBanksMemoriesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -66621,27 +67091,27 @@ func (r *MetadataStoresArtifactsOperationsService) Delete(name string) *Metadata // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresArtifactsOperationsDeleteCall) Fields(s ...googleapi.Field) *MetadataStoresArtifactsOperationsDeleteCall { +func (c *MemoryBanksMemoriesOperationsDeleteCall) Fields(s ...googleapi.Field) *MemoryBanksMemoriesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresArtifactsOperationsDeleteCall) Context(ctx context.Context) *MetadataStoresArtifactsOperationsDeleteCall { +func (c *MemoryBanksMemoriesOperationsDeleteCall) Context(ctx context.Context) *MemoryBanksMemoriesOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresArtifactsOperationsDeleteCall) Header() http.Header { +func (c *MemoryBanksMemoriesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresArtifactsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *MemoryBanksMemoriesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -66655,17 +67125,17 @@ func (c *MetadataStoresArtifactsOperationsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.memories.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.artifacts.operations.delete" call. +// Do executes the "aiplatform.memoryBanks.memories.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *MetadataStoresArtifactsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *MemoryBanksMemoriesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -66695,11 +67165,11 @@ func (c *MetadataStoresArtifactsOperationsDeleteCall) Do(opts ...googleapi.CallO if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.memories.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MetadataStoresArtifactsOperationsGetCall struct { +type MemoryBanksMemoriesOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -66713,8 +67183,8 @@ type MetadataStoresArtifactsOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *MetadataStoresArtifactsOperationsService) Get(name string) *MetadataStoresArtifactsOperationsGetCall { - c := &MetadataStoresArtifactsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MemoryBanksMemoriesOperationsService) Get(name string) *MemoryBanksMemoriesOperationsGetCall { + c := &MemoryBanksMemoriesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -66722,7 +67192,7 @@ func (r *MetadataStoresArtifactsOperationsService) Get(name string) *MetadataSto // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresArtifactsOperationsGetCall) Fields(s ...googleapi.Field) *MetadataStoresArtifactsOperationsGetCall { +func (c *MemoryBanksMemoriesOperationsGetCall) Fields(s ...googleapi.Field) *MemoryBanksMemoriesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -66730,27 +67200,27 @@ func (c *MetadataStoresArtifactsOperationsGetCall) Fields(s ...googleapi.Field) // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *MetadataStoresArtifactsOperationsGetCall) IfNoneMatch(entityTag string) *MetadataStoresArtifactsOperationsGetCall { +func (c *MemoryBanksMemoriesOperationsGetCall) IfNoneMatch(entityTag string) *MemoryBanksMemoriesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresArtifactsOperationsGetCall) Context(ctx context.Context) *MetadataStoresArtifactsOperationsGetCall { +func (c *MemoryBanksMemoriesOperationsGetCall) Context(ctx context.Context) *MemoryBanksMemoriesOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresArtifactsOperationsGetCall) Header() http.Header { +func (c *MemoryBanksMemoriesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresArtifactsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *MemoryBanksMemoriesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -66767,17 +67237,17 @@ func (c *MetadataStoresArtifactsOperationsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.memories.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.artifacts.operations.get" call. +// Do executes the "aiplatform.memoryBanks.memories.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *MetadataStoresArtifactsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *MemoryBanksMemoriesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -66807,11 +67277,11 @@ func (c *MetadataStoresArtifactsOperationsGetCall) Do(opts ...googleapi.CallOpti if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.memories.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MetadataStoresArtifactsOperationsListCall struct { +type MemoryBanksMemoriesOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -66824,28 +67294,28 @@ type MetadataStoresArtifactsOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *MetadataStoresArtifactsOperationsService) List(name string) *MetadataStoresArtifactsOperationsListCall { - c := &MetadataStoresArtifactsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MemoryBanksMemoriesOperationsService) List(name string) *MemoryBanksMemoriesOperationsListCall { + c := &MemoryBanksMemoriesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *MetadataStoresArtifactsOperationsListCall) Filter(filter string) *MetadataStoresArtifactsOperationsListCall { +func (c *MemoryBanksMemoriesOperationsListCall) Filter(filter string) *MemoryBanksMemoriesOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *MetadataStoresArtifactsOperationsListCall) PageSize(pageSize int64) *MetadataStoresArtifactsOperationsListCall { +func (c *MemoryBanksMemoriesOperationsListCall) PageSize(pageSize int64) *MemoryBanksMemoriesOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *MetadataStoresArtifactsOperationsListCall) PageToken(pageToken string) *MetadataStoresArtifactsOperationsListCall { +func (c *MemoryBanksMemoriesOperationsListCall) PageToken(pageToken string) *MemoryBanksMemoriesOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -66858,7 +67328,7 @@ func (c *MetadataStoresArtifactsOperationsListCall) PageToken(pageToken string) // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *MetadataStoresArtifactsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MetadataStoresArtifactsOperationsListCall { +func (c *MemoryBanksMemoriesOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MemoryBanksMemoriesOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -66866,7 +67336,7 @@ func (c *MetadataStoresArtifactsOperationsListCall) ReturnPartialSuccess(returnP // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresArtifactsOperationsListCall) Fields(s ...googleapi.Field) *MetadataStoresArtifactsOperationsListCall { +func (c *MemoryBanksMemoriesOperationsListCall) Fields(s ...googleapi.Field) *MemoryBanksMemoriesOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -66874,27 +67344,27 @@ func (c *MetadataStoresArtifactsOperationsListCall) Fields(s ...googleapi.Field) // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *MetadataStoresArtifactsOperationsListCall) IfNoneMatch(entityTag string) *MetadataStoresArtifactsOperationsListCall { +func (c *MemoryBanksMemoriesOperationsListCall) IfNoneMatch(entityTag string) *MemoryBanksMemoriesOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresArtifactsOperationsListCall) Context(ctx context.Context) *MetadataStoresArtifactsOperationsListCall { +func (c *MemoryBanksMemoriesOperationsListCall) Context(ctx context.Context) *MemoryBanksMemoriesOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresArtifactsOperationsListCall) Header() http.Header { +func (c *MemoryBanksMemoriesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresArtifactsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *MemoryBanksMemoriesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -66911,17 +67381,17 @@ func (c *MetadataStoresArtifactsOperationsListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.memories.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.artifacts.operations.list" call. +// Do executes the "aiplatform.memoryBanks.memories.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *MetadataStoresArtifactsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *MemoryBanksMemoriesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -66951,14 +67421,14 @@ func (c *MetadataStoresArtifactsOperationsListCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.memories.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *MetadataStoresArtifactsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *MemoryBanksMemoriesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -66976,7 +67446,7 @@ func (c *MetadataStoresArtifactsOperationsListCall) Pages(ctx context.Context, f } } -type MetadataStoresArtifactsOperationsWaitCall struct { +type MemoryBanksMemoriesOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -66995,8 +67465,8 @@ type MetadataStoresArtifactsOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *MetadataStoresArtifactsOperationsService) Wait(name string) *MetadataStoresArtifactsOperationsWaitCall { - c := &MetadataStoresArtifactsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MemoryBanksMemoriesOperationsService) Wait(name string) *MemoryBanksMemoriesOperationsWaitCall { + c := &MemoryBanksMemoriesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -67005,7 +67475,7 @@ func (r *MetadataStoresArtifactsOperationsService) Wait(name string) *MetadataSt // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *MetadataStoresArtifactsOperationsWaitCall) Timeout(timeout string) *MetadataStoresArtifactsOperationsWaitCall { +func (c *MemoryBanksMemoriesOperationsWaitCall) Timeout(timeout string) *MemoryBanksMemoriesOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -67013,27 +67483,27 @@ func (c *MetadataStoresArtifactsOperationsWaitCall) Timeout(timeout string) *Met // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresArtifactsOperationsWaitCall) Fields(s ...googleapi.Field) *MetadataStoresArtifactsOperationsWaitCall { +func (c *MemoryBanksMemoriesOperationsWaitCall) Fields(s ...googleapi.Field) *MemoryBanksMemoriesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresArtifactsOperationsWaitCall) Context(ctx context.Context) *MetadataStoresArtifactsOperationsWaitCall { +func (c *MemoryBanksMemoriesOperationsWaitCall) Context(ctx context.Context) *MemoryBanksMemoriesOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresArtifactsOperationsWaitCall) Header() http.Header { +func (c *MemoryBanksMemoriesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresArtifactsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *MemoryBanksMemoriesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -67047,17 +67517,17 @@ func (c *MetadataStoresArtifactsOperationsWaitCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.memories.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.artifacts.operations.wait" call. +// Do executes the "aiplatform.memoryBanks.memories.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *MetadataStoresArtifactsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *MemoryBanksMemoriesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67087,11 +67557,11 @@ func (c *MetadataStoresArtifactsOperationsWaitCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.memories.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MetadataStoresContextsOperationsCancelCall struct { +type MemoryBanksOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -67110,8 +67580,8 @@ type MetadataStoresContextsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *MetadataStoresContextsOperationsService) Cancel(name string) *MetadataStoresContextsOperationsCancelCall { - c := &MetadataStoresContextsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MemoryBanksOperationsService) Cancel(name string) *MemoryBanksOperationsCancelCall { + c := &MemoryBanksOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -67119,27 +67589,27 @@ func (r *MetadataStoresContextsOperationsService) Cancel(name string) *MetadataS // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresContextsOperationsCancelCall) Fields(s ...googleapi.Field) *MetadataStoresContextsOperationsCancelCall { +func (c *MemoryBanksOperationsCancelCall) Fields(s ...googleapi.Field) *MemoryBanksOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresContextsOperationsCancelCall) Context(ctx context.Context) *MetadataStoresContextsOperationsCancelCall { +func (c *MemoryBanksOperationsCancelCall) Context(ctx context.Context) *MemoryBanksOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresContextsOperationsCancelCall) Header() http.Header { +func (c *MemoryBanksOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresContextsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *MemoryBanksOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -67153,17 +67623,17 @@ func (c *MetadataStoresContextsOperationsCancelCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.contexts.operations.cancel" call. +// Do executes the "aiplatform.memoryBanks.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *MetadataStoresContextsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *MemoryBanksOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67193,11 +67663,11 @@ func (c *MetadataStoresContextsOperationsCancelCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MetadataStoresContextsOperationsDeleteCall struct { +type MemoryBanksOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -67211,8 +67681,8 @@ type MetadataStoresContextsOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *MetadataStoresContextsOperationsService) Delete(name string) *MetadataStoresContextsOperationsDeleteCall { - c := &MetadataStoresContextsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MemoryBanksOperationsService) Delete(name string) *MemoryBanksOperationsDeleteCall { + c := &MemoryBanksOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -67220,27 +67690,27 @@ func (r *MetadataStoresContextsOperationsService) Delete(name string) *MetadataS // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresContextsOperationsDeleteCall) Fields(s ...googleapi.Field) *MetadataStoresContextsOperationsDeleteCall { +func (c *MemoryBanksOperationsDeleteCall) Fields(s ...googleapi.Field) *MemoryBanksOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresContextsOperationsDeleteCall) Context(ctx context.Context) *MetadataStoresContextsOperationsDeleteCall { +func (c *MemoryBanksOperationsDeleteCall) Context(ctx context.Context) *MemoryBanksOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresContextsOperationsDeleteCall) Header() http.Header { +func (c *MemoryBanksOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresContextsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *MemoryBanksOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -67254,17 +67724,17 @@ func (c *MetadataStoresContextsOperationsDeleteCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.contexts.operations.delete" call. +// Do executes the "aiplatform.memoryBanks.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *MetadataStoresContextsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *MemoryBanksOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67294,11 +67764,11 @@ func (c *MetadataStoresContextsOperationsDeleteCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MetadataStoresContextsOperationsGetCall struct { +type MemoryBanksOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -67312,8 +67782,8 @@ type MetadataStoresContextsOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *MetadataStoresContextsOperationsService) Get(name string) *MetadataStoresContextsOperationsGetCall { - c := &MetadataStoresContextsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MemoryBanksOperationsService) Get(name string) *MemoryBanksOperationsGetCall { + c := &MemoryBanksOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -67321,7 +67791,7 @@ func (r *MetadataStoresContextsOperationsService) Get(name string) *MetadataStor // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresContextsOperationsGetCall) Fields(s ...googleapi.Field) *MetadataStoresContextsOperationsGetCall { +func (c *MemoryBanksOperationsGetCall) Fields(s ...googleapi.Field) *MemoryBanksOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -67329,27 +67799,27 @@ func (c *MetadataStoresContextsOperationsGetCall) Fields(s ...googleapi.Field) * // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *MetadataStoresContextsOperationsGetCall) IfNoneMatch(entityTag string) *MetadataStoresContextsOperationsGetCall { +func (c *MemoryBanksOperationsGetCall) IfNoneMatch(entityTag string) *MemoryBanksOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresContextsOperationsGetCall) Context(ctx context.Context) *MetadataStoresContextsOperationsGetCall { +func (c *MemoryBanksOperationsGetCall) Context(ctx context.Context) *MemoryBanksOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresContextsOperationsGetCall) Header() http.Header { +func (c *MemoryBanksOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresContextsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *MemoryBanksOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -67366,17 +67836,17 @@ func (c *MetadataStoresContextsOperationsGetCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.contexts.operations.get" call. +// Do executes the "aiplatform.memoryBanks.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *MetadataStoresContextsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *MemoryBanksOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67406,11 +67876,11 @@ func (c *MetadataStoresContextsOperationsGetCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MetadataStoresContextsOperationsListCall struct { +type MemoryBanksOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -67423,28 +67893,28 @@ type MetadataStoresContextsOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *MetadataStoresContextsOperationsService) List(name string) *MetadataStoresContextsOperationsListCall { - c := &MetadataStoresContextsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MemoryBanksOperationsService) List(name string) *MemoryBanksOperationsListCall { + c := &MemoryBanksOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *MetadataStoresContextsOperationsListCall) Filter(filter string) *MetadataStoresContextsOperationsListCall { +func (c *MemoryBanksOperationsListCall) Filter(filter string) *MemoryBanksOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *MetadataStoresContextsOperationsListCall) PageSize(pageSize int64) *MetadataStoresContextsOperationsListCall { +func (c *MemoryBanksOperationsListCall) PageSize(pageSize int64) *MemoryBanksOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *MetadataStoresContextsOperationsListCall) PageToken(pageToken string) *MetadataStoresContextsOperationsListCall { +func (c *MemoryBanksOperationsListCall) PageToken(pageToken string) *MemoryBanksOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -67457,7 +67927,7 @@ func (c *MetadataStoresContextsOperationsListCall) PageToken(pageToken string) * // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *MetadataStoresContextsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MetadataStoresContextsOperationsListCall { +func (c *MemoryBanksOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MemoryBanksOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -67465,7 +67935,7 @@ func (c *MetadataStoresContextsOperationsListCall) ReturnPartialSuccess(returnPa // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresContextsOperationsListCall) Fields(s ...googleapi.Field) *MetadataStoresContextsOperationsListCall { +func (c *MemoryBanksOperationsListCall) Fields(s ...googleapi.Field) *MemoryBanksOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -67473,27 +67943,27 @@ func (c *MetadataStoresContextsOperationsListCall) Fields(s ...googleapi.Field) // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *MetadataStoresContextsOperationsListCall) IfNoneMatch(entityTag string) *MetadataStoresContextsOperationsListCall { +func (c *MemoryBanksOperationsListCall) IfNoneMatch(entityTag string) *MemoryBanksOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresContextsOperationsListCall) Context(ctx context.Context) *MetadataStoresContextsOperationsListCall { +func (c *MemoryBanksOperationsListCall) Context(ctx context.Context) *MemoryBanksOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresContextsOperationsListCall) Header() http.Header { +func (c *MemoryBanksOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresContextsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *MemoryBanksOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -67510,17 +67980,17 @@ func (c *MetadataStoresContextsOperationsListCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.contexts.operations.list" call. +// Do executes the "aiplatform.memoryBanks.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *MetadataStoresContextsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *MemoryBanksOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67550,14 +68020,14 @@ func (c *MetadataStoresContextsOperationsListCall) Do(opts ...googleapi.CallOpti if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *MetadataStoresContextsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *MemoryBanksOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -67575,7 +68045,7 @@ func (c *MetadataStoresContextsOperationsListCall) Pages(ctx context.Context, f } } -type MetadataStoresContextsOperationsWaitCall struct { +type MemoryBanksOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -67594,8 +68064,8 @@ type MetadataStoresContextsOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *MetadataStoresContextsOperationsService) Wait(name string) *MetadataStoresContextsOperationsWaitCall { - c := &MetadataStoresContextsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MemoryBanksOperationsService) Wait(name string) *MemoryBanksOperationsWaitCall { + c := &MemoryBanksOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -67604,7 +68074,7 @@ func (r *MetadataStoresContextsOperationsService) Wait(name string) *MetadataSto // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *MetadataStoresContextsOperationsWaitCall) Timeout(timeout string) *MetadataStoresContextsOperationsWaitCall { +func (c *MemoryBanksOperationsWaitCall) Timeout(timeout string) *MemoryBanksOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -67612,27 +68082,27 @@ func (c *MetadataStoresContextsOperationsWaitCall) Timeout(timeout string) *Meta // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresContextsOperationsWaitCall) Fields(s ...googleapi.Field) *MetadataStoresContextsOperationsWaitCall { +func (c *MemoryBanksOperationsWaitCall) Fields(s ...googleapi.Field) *MemoryBanksOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresContextsOperationsWaitCall) Context(ctx context.Context) *MetadataStoresContextsOperationsWaitCall { +func (c *MemoryBanksOperationsWaitCall) Context(ctx context.Context) *MemoryBanksOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresContextsOperationsWaitCall) Header() http.Header { +func (c *MemoryBanksOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresContextsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *MemoryBanksOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -67646,17 +68116,17 @@ func (c *MetadataStoresContextsOperationsWaitCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.contexts.operations.wait" call. +// Do executes the "aiplatform.memoryBanks.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *MetadataStoresContextsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *MemoryBanksOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67686,11 +68156,11 @@ func (c *MetadataStoresContextsOperationsWaitCall) Do(opts ...googleapi.CallOpti if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.memoryBanks.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MetadataStoresExecutionsOperationsCancelCall struct { +type MetadataStoresArtifactsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -67709,8 +68179,8 @@ type MetadataStoresExecutionsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *MetadataStoresExecutionsOperationsService) Cancel(name string) *MetadataStoresExecutionsOperationsCancelCall { - c := &MetadataStoresExecutionsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresArtifactsOperationsService) Cancel(name string) *MetadataStoresArtifactsOperationsCancelCall { + c := &MetadataStoresArtifactsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -67718,27 +68188,27 @@ func (r *MetadataStoresExecutionsOperationsService) Cancel(name string) *Metadat // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresExecutionsOperationsCancelCall) Fields(s ...googleapi.Field) *MetadataStoresExecutionsOperationsCancelCall { +func (c *MetadataStoresArtifactsOperationsCancelCall) Fields(s ...googleapi.Field) *MetadataStoresArtifactsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresExecutionsOperationsCancelCall) Context(ctx context.Context) *MetadataStoresExecutionsOperationsCancelCall { +func (c *MetadataStoresArtifactsOperationsCancelCall) Context(ctx context.Context) *MetadataStoresArtifactsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresExecutionsOperationsCancelCall) Header() http.Header { +func (c *MetadataStoresArtifactsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresExecutionsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresArtifactsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -67752,17 +68222,17 @@ func (c *MetadataStoresExecutionsOperationsCancelCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.executions.operations.cancel" call. +// Do executes the "aiplatform.metadataStores.artifacts.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *MetadataStoresExecutionsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *MetadataStoresArtifactsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67792,11 +68262,11 @@ func (c *MetadataStoresExecutionsOperationsCancelCall) Do(opts ...googleapi.Call if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MetadataStoresExecutionsOperationsDeleteCall struct { +type MetadataStoresArtifactsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -67810,8 +68280,8 @@ type MetadataStoresExecutionsOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *MetadataStoresExecutionsOperationsService) Delete(name string) *MetadataStoresExecutionsOperationsDeleteCall { - c := &MetadataStoresExecutionsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresArtifactsOperationsService) Delete(name string) *MetadataStoresArtifactsOperationsDeleteCall { + c := &MetadataStoresArtifactsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -67819,27 +68289,27 @@ func (r *MetadataStoresExecutionsOperationsService) Delete(name string) *Metadat // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresExecutionsOperationsDeleteCall) Fields(s ...googleapi.Field) *MetadataStoresExecutionsOperationsDeleteCall { +func (c *MetadataStoresArtifactsOperationsDeleteCall) Fields(s ...googleapi.Field) *MetadataStoresArtifactsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresExecutionsOperationsDeleteCall) Context(ctx context.Context) *MetadataStoresExecutionsOperationsDeleteCall { +func (c *MetadataStoresArtifactsOperationsDeleteCall) Context(ctx context.Context) *MetadataStoresArtifactsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresExecutionsOperationsDeleteCall) Header() http.Header { +func (c *MetadataStoresArtifactsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresExecutionsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresArtifactsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -67853,17 +68323,17 @@ func (c *MetadataStoresExecutionsOperationsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.executions.operations.delete" call. +// Do executes the "aiplatform.metadataStores.artifacts.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *MetadataStoresExecutionsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *MetadataStoresArtifactsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67893,11 +68363,11 @@ func (c *MetadataStoresExecutionsOperationsDeleteCall) Do(opts ...googleapi.Call if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MetadataStoresExecutionsOperationsGetCall struct { +type MetadataStoresArtifactsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -67911,8 +68381,8 @@ type MetadataStoresExecutionsOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *MetadataStoresExecutionsOperationsService) Get(name string) *MetadataStoresExecutionsOperationsGetCall { - c := &MetadataStoresExecutionsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresArtifactsOperationsService) Get(name string) *MetadataStoresArtifactsOperationsGetCall { + c := &MetadataStoresArtifactsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -67920,7 +68390,7 @@ func (r *MetadataStoresExecutionsOperationsService) Get(name string) *MetadataSt // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresExecutionsOperationsGetCall) Fields(s ...googleapi.Field) *MetadataStoresExecutionsOperationsGetCall { +func (c *MetadataStoresArtifactsOperationsGetCall) Fields(s ...googleapi.Field) *MetadataStoresArtifactsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -67928,27 +68398,27 @@ func (c *MetadataStoresExecutionsOperationsGetCall) Fields(s ...googleapi.Field) // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *MetadataStoresExecutionsOperationsGetCall) IfNoneMatch(entityTag string) *MetadataStoresExecutionsOperationsGetCall { +func (c *MetadataStoresArtifactsOperationsGetCall) IfNoneMatch(entityTag string) *MetadataStoresArtifactsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresExecutionsOperationsGetCall) Context(ctx context.Context) *MetadataStoresExecutionsOperationsGetCall { +func (c *MetadataStoresArtifactsOperationsGetCall) Context(ctx context.Context) *MetadataStoresArtifactsOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresExecutionsOperationsGetCall) Header() http.Header { +func (c *MetadataStoresArtifactsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresExecutionsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresArtifactsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -67965,17 +68435,17 @@ func (c *MetadataStoresExecutionsOperationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.executions.operations.get" call. +// Do executes the "aiplatform.metadataStores.artifacts.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *MetadataStoresExecutionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *MetadataStoresArtifactsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68005,11 +68475,11 @@ func (c *MetadataStoresExecutionsOperationsGetCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MetadataStoresExecutionsOperationsListCall struct { +type MetadataStoresArtifactsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -68022,28 +68492,28 @@ type MetadataStoresExecutionsOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *MetadataStoresExecutionsOperationsService) List(name string) *MetadataStoresExecutionsOperationsListCall { - c := &MetadataStoresExecutionsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresArtifactsOperationsService) List(name string) *MetadataStoresArtifactsOperationsListCall { + c := &MetadataStoresArtifactsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *MetadataStoresExecutionsOperationsListCall) Filter(filter string) *MetadataStoresExecutionsOperationsListCall { +func (c *MetadataStoresArtifactsOperationsListCall) Filter(filter string) *MetadataStoresArtifactsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *MetadataStoresExecutionsOperationsListCall) PageSize(pageSize int64) *MetadataStoresExecutionsOperationsListCall { +func (c *MetadataStoresArtifactsOperationsListCall) PageSize(pageSize int64) *MetadataStoresArtifactsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *MetadataStoresExecutionsOperationsListCall) PageToken(pageToken string) *MetadataStoresExecutionsOperationsListCall { +func (c *MetadataStoresArtifactsOperationsListCall) PageToken(pageToken string) *MetadataStoresArtifactsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -68056,7 +68526,7 @@ func (c *MetadataStoresExecutionsOperationsListCall) PageToken(pageToken string) // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *MetadataStoresExecutionsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MetadataStoresExecutionsOperationsListCall { +func (c *MetadataStoresArtifactsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MetadataStoresArtifactsOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -68064,7 +68534,7 @@ func (c *MetadataStoresExecutionsOperationsListCall) ReturnPartialSuccess(return // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresExecutionsOperationsListCall) Fields(s ...googleapi.Field) *MetadataStoresExecutionsOperationsListCall { +func (c *MetadataStoresArtifactsOperationsListCall) Fields(s ...googleapi.Field) *MetadataStoresArtifactsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -68072,27 +68542,27 @@ func (c *MetadataStoresExecutionsOperationsListCall) Fields(s ...googleapi.Field // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *MetadataStoresExecutionsOperationsListCall) IfNoneMatch(entityTag string) *MetadataStoresExecutionsOperationsListCall { +func (c *MetadataStoresArtifactsOperationsListCall) IfNoneMatch(entityTag string) *MetadataStoresArtifactsOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresExecutionsOperationsListCall) Context(ctx context.Context) *MetadataStoresExecutionsOperationsListCall { +func (c *MetadataStoresArtifactsOperationsListCall) Context(ctx context.Context) *MetadataStoresArtifactsOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresExecutionsOperationsListCall) Header() http.Header { +func (c *MetadataStoresArtifactsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresExecutionsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresArtifactsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -68109,17 +68579,17 @@ func (c *MetadataStoresExecutionsOperationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.executions.operations.list" call. +// Do executes the "aiplatform.metadataStores.artifacts.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *MetadataStoresExecutionsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *MetadataStoresArtifactsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68149,14 +68619,14 @@ func (c *MetadataStoresExecutionsOperationsListCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *MetadataStoresExecutionsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *MetadataStoresArtifactsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -68174,7 +68644,7 @@ func (c *MetadataStoresExecutionsOperationsListCall) Pages(ctx context.Context, } } -type MetadataStoresExecutionsOperationsWaitCall struct { +type MetadataStoresArtifactsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -68193,8 +68663,8 @@ type MetadataStoresExecutionsOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *MetadataStoresExecutionsOperationsService) Wait(name string) *MetadataStoresExecutionsOperationsWaitCall { - c := &MetadataStoresExecutionsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresArtifactsOperationsService) Wait(name string) *MetadataStoresArtifactsOperationsWaitCall { + c := &MetadataStoresArtifactsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -68203,7 +68673,7 @@ func (r *MetadataStoresExecutionsOperationsService) Wait(name string) *MetadataS // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *MetadataStoresExecutionsOperationsWaitCall) Timeout(timeout string) *MetadataStoresExecutionsOperationsWaitCall { +func (c *MetadataStoresArtifactsOperationsWaitCall) Timeout(timeout string) *MetadataStoresArtifactsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -68211,27 +68681,27 @@ func (c *MetadataStoresExecutionsOperationsWaitCall) Timeout(timeout string) *Me // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresExecutionsOperationsWaitCall) Fields(s ...googleapi.Field) *MetadataStoresExecutionsOperationsWaitCall { +func (c *MetadataStoresArtifactsOperationsWaitCall) Fields(s ...googleapi.Field) *MetadataStoresArtifactsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresExecutionsOperationsWaitCall) Context(ctx context.Context) *MetadataStoresExecutionsOperationsWaitCall { +func (c *MetadataStoresArtifactsOperationsWaitCall) Context(ctx context.Context) *MetadataStoresArtifactsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresExecutionsOperationsWaitCall) Header() http.Header { +func (c *MetadataStoresArtifactsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresExecutionsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresArtifactsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -68245,17 +68715,17 @@ func (c *MetadataStoresExecutionsOperationsWaitCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.executions.operations.wait" call. +// Do executes the "aiplatform.metadataStores.artifacts.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *MetadataStoresExecutionsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *MetadataStoresArtifactsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68285,11 +68755,11 @@ func (c *MetadataStoresExecutionsOperationsWaitCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.artifacts.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MetadataStoresOperationsCancelCall struct { +type MetadataStoresContextsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -68308,8 +68778,8 @@ type MetadataStoresOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *MetadataStoresOperationsService) Cancel(name string) *MetadataStoresOperationsCancelCall { - c := &MetadataStoresOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresContextsOperationsService) Cancel(name string) *MetadataStoresContextsOperationsCancelCall { + c := &MetadataStoresContextsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -68317,27 +68787,27 @@ func (r *MetadataStoresOperationsService) Cancel(name string) *MetadataStoresOpe // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresOperationsCancelCall) Fields(s ...googleapi.Field) *MetadataStoresOperationsCancelCall { +func (c *MetadataStoresContextsOperationsCancelCall) Fields(s ...googleapi.Field) *MetadataStoresContextsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresOperationsCancelCall) Context(ctx context.Context) *MetadataStoresOperationsCancelCall { +func (c *MetadataStoresContextsOperationsCancelCall) Context(ctx context.Context) *MetadataStoresContextsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresOperationsCancelCall) Header() http.Header { +func (c *MetadataStoresContextsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresContextsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -68351,17 +68821,17 @@ func (c *MetadataStoresOperationsCancelCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.operations.cancel" call. +// Do executes the "aiplatform.metadataStores.contexts.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *MetadataStoresOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *MetadataStoresContextsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68391,11 +68861,11 @@ func (c *MetadataStoresOperationsCancelCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MetadataStoresOperationsDeleteCall struct { +type MetadataStoresContextsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -68409,8 +68879,8 @@ type MetadataStoresOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *MetadataStoresOperationsService) Delete(name string) *MetadataStoresOperationsDeleteCall { - c := &MetadataStoresOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresContextsOperationsService) Delete(name string) *MetadataStoresContextsOperationsDeleteCall { + c := &MetadataStoresContextsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -68418,27 +68888,27 @@ func (r *MetadataStoresOperationsService) Delete(name string) *MetadataStoresOpe // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresOperationsDeleteCall) Fields(s ...googleapi.Field) *MetadataStoresOperationsDeleteCall { +func (c *MetadataStoresContextsOperationsDeleteCall) Fields(s ...googleapi.Field) *MetadataStoresContextsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresOperationsDeleteCall) Context(ctx context.Context) *MetadataStoresOperationsDeleteCall { +func (c *MetadataStoresContextsOperationsDeleteCall) Context(ctx context.Context) *MetadataStoresContextsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresOperationsDeleteCall) Header() http.Header { +func (c *MetadataStoresContextsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresContextsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -68452,17 +68922,17 @@ func (c *MetadataStoresOperationsDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.operations.delete" call. +// Do executes the "aiplatform.metadataStores.contexts.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *MetadataStoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *MetadataStoresContextsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68492,11 +68962,11 @@ func (c *MetadataStoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MetadataStoresOperationsGetCall struct { +type MetadataStoresContextsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -68510,8 +68980,8 @@ type MetadataStoresOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *MetadataStoresOperationsService) Get(name string) *MetadataStoresOperationsGetCall { - c := &MetadataStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresContextsOperationsService) Get(name string) *MetadataStoresContextsOperationsGetCall { + c := &MetadataStoresContextsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -68519,7 +68989,7 @@ func (r *MetadataStoresOperationsService) Get(name string) *MetadataStoresOperat // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresOperationsGetCall) Fields(s ...googleapi.Field) *MetadataStoresOperationsGetCall { +func (c *MetadataStoresContextsOperationsGetCall) Fields(s ...googleapi.Field) *MetadataStoresContextsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -68527,27 +68997,27 @@ func (c *MetadataStoresOperationsGetCall) Fields(s ...googleapi.Field) *Metadata // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *MetadataStoresOperationsGetCall) IfNoneMatch(entityTag string) *MetadataStoresOperationsGetCall { +func (c *MetadataStoresContextsOperationsGetCall) IfNoneMatch(entityTag string) *MetadataStoresContextsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresOperationsGetCall) Context(ctx context.Context) *MetadataStoresOperationsGetCall { +func (c *MetadataStoresContextsOperationsGetCall) Context(ctx context.Context) *MetadataStoresContextsOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresOperationsGetCall) Header() http.Header { +func (c *MetadataStoresContextsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresContextsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -68564,17 +69034,17 @@ func (c *MetadataStoresOperationsGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.operations.get" call. +// Do executes the "aiplatform.metadataStores.contexts.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *MetadataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *MetadataStoresContextsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68604,11 +69074,11 @@ func (c *MetadataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*Goo if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MetadataStoresOperationsListCall struct { +type MetadataStoresContextsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -68621,28 +69091,28 @@ type MetadataStoresOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *MetadataStoresOperationsService) List(name string) *MetadataStoresOperationsListCall { - c := &MetadataStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresContextsOperationsService) List(name string) *MetadataStoresContextsOperationsListCall { + c := &MetadataStoresContextsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *MetadataStoresOperationsListCall) Filter(filter string) *MetadataStoresOperationsListCall { +func (c *MetadataStoresContextsOperationsListCall) Filter(filter string) *MetadataStoresContextsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *MetadataStoresOperationsListCall) PageSize(pageSize int64) *MetadataStoresOperationsListCall { +func (c *MetadataStoresContextsOperationsListCall) PageSize(pageSize int64) *MetadataStoresContextsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *MetadataStoresOperationsListCall) PageToken(pageToken string) *MetadataStoresOperationsListCall { +func (c *MetadataStoresContextsOperationsListCall) PageToken(pageToken string) *MetadataStoresContextsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -68655,7 +69125,7 @@ func (c *MetadataStoresOperationsListCall) PageToken(pageToken string) *Metadata // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *MetadataStoresOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MetadataStoresOperationsListCall { +func (c *MetadataStoresContextsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MetadataStoresContextsOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -68663,7 +69133,7 @@ func (c *MetadataStoresOperationsListCall) ReturnPartialSuccess(returnPartialSuc // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresOperationsListCall) Fields(s ...googleapi.Field) *MetadataStoresOperationsListCall { +func (c *MetadataStoresContextsOperationsListCall) Fields(s ...googleapi.Field) *MetadataStoresContextsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -68671,27 +69141,27 @@ func (c *MetadataStoresOperationsListCall) Fields(s ...googleapi.Field) *Metadat // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *MetadataStoresOperationsListCall) IfNoneMatch(entityTag string) *MetadataStoresOperationsListCall { +func (c *MetadataStoresContextsOperationsListCall) IfNoneMatch(entityTag string) *MetadataStoresContextsOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresOperationsListCall) Context(ctx context.Context) *MetadataStoresOperationsListCall { +func (c *MetadataStoresContextsOperationsListCall) Context(ctx context.Context) *MetadataStoresContextsOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresOperationsListCall) Header() http.Header { +func (c *MetadataStoresContextsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresContextsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -68708,17 +69178,17 @@ func (c *MetadataStoresOperationsListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.operations.list" call. +// Do executes the "aiplatform.metadataStores.contexts.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *MetadataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *MetadataStoresContextsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68748,14 +69218,14 @@ func (c *MetadataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*Go if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *MetadataStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *MetadataStoresContextsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -68773,7 +69243,7 @@ func (c *MetadataStoresOperationsListCall) Pages(ctx context.Context, f func(*Go } } -type MetadataStoresOperationsWaitCall struct { +type MetadataStoresContextsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -68792,8 +69262,8 @@ type MetadataStoresOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *MetadataStoresOperationsService) Wait(name string) *MetadataStoresOperationsWaitCall { - c := &MetadataStoresOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresContextsOperationsService) Wait(name string) *MetadataStoresContextsOperationsWaitCall { + c := &MetadataStoresContextsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -68802,7 +69272,7 @@ func (r *MetadataStoresOperationsService) Wait(name string) *MetadataStoresOpera // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *MetadataStoresOperationsWaitCall) Timeout(timeout string) *MetadataStoresOperationsWaitCall { +func (c *MetadataStoresContextsOperationsWaitCall) Timeout(timeout string) *MetadataStoresContextsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -68810,27 +69280,27 @@ func (c *MetadataStoresOperationsWaitCall) Timeout(timeout string) *MetadataStor // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MetadataStoresOperationsWaitCall) Fields(s ...googleapi.Field) *MetadataStoresOperationsWaitCall { +func (c *MetadataStoresContextsOperationsWaitCall) Fields(s ...googleapi.Field) *MetadataStoresContextsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *MetadataStoresOperationsWaitCall) Context(ctx context.Context) *MetadataStoresOperationsWaitCall { +func (c *MetadataStoresContextsOperationsWaitCall) Context(ctx context.Context) *MetadataStoresContextsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MetadataStoresOperationsWaitCall) Header() http.Header { +func (c *MetadataStoresContextsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MetadataStoresOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresContextsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -68844,17 +69314,17 @@ func (c *MetadataStoresOperationsWaitCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.metadataStores.operations.wait" call. +// Do executes the "aiplatform.metadataStores.contexts.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *MetadataStoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *MetadataStoresContextsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68884,11 +69354,11 @@ func (c *MetadataStoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Go if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.contexts.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MigratableResourcesOperationsCancelCall struct { +type MetadataStoresExecutionsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -68907,8 +69377,8 @@ type MigratableResourcesOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *MigratableResourcesOperationsService) Cancel(name string) *MigratableResourcesOperationsCancelCall { - c := &MigratableResourcesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresExecutionsOperationsService) Cancel(name string) *MetadataStoresExecutionsOperationsCancelCall { + c := &MetadataStoresExecutionsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -68916,27 +69386,27 @@ func (r *MigratableResourcesOperationsService) Cancel(name string) *MigratableRe // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MigratableResourcesOperationsCancelCall) Fields(s ...googleapi.Field) *MigratableResourcesOperationsCancelCall { +func (c *MetadataStoresExecutionsOperationsCancelCall) Fields(s ...googleapi.Field) *MetadataStoresExecutionsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *MigratableResourcesOperationsCancelCall) Context(ctx context.Context) *MigratableResourcesOperationsCancelCall { +func (c *MetadataStoresExecutionsOperationsCancelCall) Context(ctx context.Context) *MetadataStoresExecutionsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MigratableResourcesOperationsCancelCall) Header() http.Header { +func (c *MetadataStoresExecutionsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MigratableResourcesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresExecutionsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -68950,17 +69420,17 @@ func (c *MigratableResourcesOperationsCancelCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.migratableResources.operations.cancel" call. +// Do executes the "aiplatform.metadataStores.executions.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *MigratableResourcesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *MetadataStoresExecutionsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68990,11 +69460,11 @@ func (c *MigratableResourcesOperationsCancelCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MigratableResourcesOperationsDeleteCall struct { +type MetadataStoresExecutionsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -69008,8 +69478,8 @@ type MigratableResourcesOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *MigratableResourcesOperationsService) Delete(name string) *MigratableResourcesOperationsDeleteCall { - c := &MigratableResourcesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresExecutionsOperationsService) Delete(name string) *MetadataStoresExecutionsOperationsDeleteCall { + c := &MetadataStoresExecutionsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -69017,27 +69487,27 @@ func (r *MigratableResourcesOperationsService) Delete(name string) *MigratableRe // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MigratableResourcesOperationsDeleteCall) Fields(s ...googleapi.Field) *MigratableResourcesOperationsDeleteCall { +func (c *MetadataStoresExecutionsOperationsDeleteCall) Fields(s ...googleapi.Field) *MetadataStoresExecutionsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *MigratableResourcesOperationsDeleteCall) Context(ctx context.Context) *MigratableResourcesOperationsDeleteCall { +func (c *MetadataStoresExecutionsOperationsDeleteCall) Context(ctx context.Context) *MetadataStoresExecutionsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MigratableResourcesOperationsDeleteCall) Header() http.Header { +func (c *MetadataStoresExecutionsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MigratableResourcesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresExecutionsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -69051,17 +69521,17 @@ func (c *MigratableResourcesOperationsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.migratableResources.operations.delete" call. +// Do executes the "aiplatform.metadataStores.executions.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *MigratableResourcesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *MetadataStoresExecutionsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69091,11 +69561,11 @@ func (c *MigratableResourcesOperationsDeleteCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MigratableResourcesOperationsGetCall struct { +type MetadataStoresExecutionsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -69109,8 +69579,8 @@ type MigratableResourcesOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *MigratableResourcesOperationsService) Get(name string) *MigratableResourcesOperationsGetCall { - c := &MigratableResourcesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresExecutionsOperationsService) Get(name string) *MetadataStoresExecutionsOperationsGetCall { + c := &MetadataStoresExecutionsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -69118,7 +69588,7 @@ func (r *MigratableResourcesOperationsService) Get(name string) *MigratableResou // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MigratableResourcesOperationsGetCall) Fields(s ...googleapi.Field) *MigratableResourcesOperationsGetCall { +func (c *MetadataStoresExecutionsOperationsGetCall) Fields(s ...googleapi.Field) *MetadataStoresExecutionsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -69126,27 +69596,27 @@ func (c *MigratableResourcesOperationsGetCall) Fields(s ...googleapi.Field) *Mig // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *MigratableResourcesOperationsGetCall) IfNoneMatch(entityTag string) *MigratableResourcesOperationsGetCall { +func (c *MetadataStoresExecutionsOperationsGetCall) IfNoneMatch(entityTag string) *MetadataStoresExecutionsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *MigratableResourcesOperationsGetCall) Context(ctx context.Context) *MigratableResourcesOperationsGetCall { +func (c *MetadataStoresExecutionsOperationsGetCall) Context(ctx context.Context) *MetadataStoresExecutionsOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MigratableResourcesOperationsGetCall) Header() http.Header { +func (c *MetadataStoresExecutionsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MigratableResourcesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresExecutionsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -69163,17 +69633,17 @@ func (c *MigratableResourcesOperationsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.migratableResources.operations.get" call. +// Do executes the "aiplatform.metadataStores.executions.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *MigratableResourcesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *MetadataStoresExecutionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69203,11 +69673,11 @@ func (c *MigratableResourcesOperationsGetCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type MigratableResourcesOperationsListCall struct { +type MetadataStoresExecutionsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -69220,28 +69690,28 @@ type MigratableResourcesOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *MigratableResourcesOperationsService) List(name string) *MigratableResourcesOperationsListCall { - c := &MigratableResourcesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresExecutionsOperationsService) List(name string) *MetadataStoresExecutionsOperationsListCall { + c := &MetadataStoresExecutionsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *MigratableResourcesOperationsListCall) Filter(filter string) *MigratableResourcesOperationsListCall { +func (c *MetadataStoresExecutionsOperationsListCall) Filter(filter string) *MetadataStoresExecutionsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *MigratableResourcesOperationsListCall) PageSize(pageSize int64) *MigratableResourcesOperationsListCall { +func (c *MetadataStoresExecutionsOperationsListCall) PageSize(pageSize int64) *MetadataStoresExecutionsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *MigratableResourcesOperationsListCall) PageToken(pageToken string) *MigratableResourcesOperationsListCall { +func (c *MetadataStoresExecutionsOperationsListCall) PageToken(pageToken string) *MetadataStoresExecutionsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -69254,7 +69724,7 @@ func (c *MigratableResourcesOperationsListCall) PageToken(pageToken string) *Mig // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *MigratableResourcesOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MigratableResourcesOperationsListCall { +func (c *MetadataStoresExecutionsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MetadataStoresExecutionsOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -69262,7 +69732,7 @@ func (c *MigratableResourcesOperationsListCall) ReturnPartialSuccess(returnParti // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MigratableResourcesOperationsListCall) Fields(s ...googleapi.Field) *MigratableResourcesOperationsListCall { +func (c *MetadataStoresExecutionsOperationsListCall) Fields(s ...googleapi.Field) *MetadataStoresExecutionsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -69270,27 +69740,27 @@ func (c *MigratableResourcesOperationsListCall) Fields(s ...googleapi.Field) *Mi // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *MigratableResourcesOperationsListCall) IfNoneMatch(entityTag string) *MigratableResourcesOperationsListCall { +func (c *MetadataStoresExecutionsOperationsListCall) IfNoneMatch(entityTag string) *MetadataStoresExecutionsOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *MigratableResourcesOperationsListCall) Context(ctx context.Context) *MigratableResourcesOperationsListCall { +func (c *MetadataStoresExecutionsOperationsListCall) Context(ctx context.Context) *MetadataStoresExecutionsOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MigratableResourcesOperationsListCall) Header() http.Header { +func (c *MetadataStoresExecutionsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MigratableResourcesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresExecutionsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -69307,17 +69777,17 @@ func (c *MigratableResourcesOperationsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.migratableResources.operations.list" call. +// Do executes the "aiplatform.metadataStores.executions.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *MigratableResourcesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *MetadataStoresExecutionsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69347,14 +69817,14 @@ func (c *MigratableResourcesOperationsListCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *MigratableResourcesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *MetadataStoresExecutionsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -69372,7 +69842,7 @@ func (c *MigratableResourcesOperationsListCall) Pages(ctx context.Context, f fun } } -type MigratableResourcesOperationsWaitCall struct { +type MetadataStoresExecutionsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -69391,8 +69861,8 @@ type MigratableResourcesOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *MigratableResourcesOperationsService) Wait(name string) *MigratableResourcesOperationsWaitCall { - c := &MigratableResourcesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresExecutionsOperationsService) Wait(name string) *MetadataStoresExecutionsOperationsWaitCall { + c := &MetadataStoresExecutionsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -69401,7 +69871,7 @@ func (r *MigratableResourcesOperationsService) Wait(name string) *MigratableReso // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *MigratableResourcesOperationsWaitCall) Timeout(timeout string) *MigratableResourcesOperationsWaitCall { +func (c *MetadataStoresExecutionsOperationsWaitCall) Timeout(timeout string) *MetadataStoresExecutionsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -69409,27 +69879,27 @@ func (c *MigratableResourcesOperationsWaitCall) Timeout(timeout string) *Migrata // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *MigratableResourcesOperationsWaitCall) Fields(s ...googleapi.Field) *MigratableResourcesOperationsWaitCall { +func (c *MetadataStoresExecutionsOperationsWaitCall) Fields(s ...googleapi.Field) *MetadataStoresExecutionsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *MigratableResourcesOperationsWaitCall) Context(ctx context.Context) *MigratableResourcesOperationsWaitCall { +func (c *MetadataStoresExecutionsOperationsWaitCall) Context(ctx context.Context) *MetadataStoresExecutionsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *MigratableResourcesOperationsWaitCall) Header() http.Header { +func (c *MetadataStoresExecutionsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *MigratableResourcesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresExecutionsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -69443,17 +69913,17 @@ func (c *MigratableResourcesOperationsWaitCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.migratableResources.operations.wait" call. +// Do executes the "aiplatform.metadataStores.executions.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *MigratableResourcesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *MetadataStoresExecutionsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69483,11 +69953,11 @@ func (c *MigratableResourcesOperationsWaitCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.executions.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ModelDeploymentMonitoringJobsOperationsCancelCall struct { +type MetadataStoresOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -69506,8 +69976,8 @@ type ModelDeploymentMonitoringJobsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ModelDeploymentMonitoringJobsOperationsService) Cancel(name string) *ModelDeploymentMonitoringJobsOperationsCancelCall { - c := &ModelDeploymentMonitoringJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresOperationsService) Cancel(name string) *MetadataStoresOperationsCancelCall { + c := &MetadataStoresOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -69515,27 +69985,27 @@ func (r *ModelDeploymentMonitoringJobsOperationsService) Cancel(name string) *Mo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ModelDeploymentMonitoringJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ModelDeploymentMonitoringJobsOperationsCancelCall { +func (c *MetadataStoresOperationsCancelCall) Fields(s ...googleapi.Field) *MetadataStoresOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ModelDeploymentMonitoringJobsOperationsCancelCall) Context(ctx context.Context) *ModelDeploymentMonitoringJobsOperationsCancelCall { +func (c *MetadataStoresOperationsCancelCall) Context(ctx context.Context) *MetadataStoresOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ModelDeploymentMonitoringJobsOperationsCancelCall) Header() http.Header { +func (c *MetadataStoresOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ModelDeploymentMonitoringJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -69549,17 +70019,17 @@ func (c *ModelDeploymentMonitoringJobsOperationsCancelCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.modelDeploymentMonitoringJobs.operations.cancel" call. +// Do executes the "aiplatform.metadataStores.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *ModelDeploymentMonitoringJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *MetadataStoresOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69589,11 +70059,11 @@ func (c *ModelDeploymentMonitoringJobsOperationsCancelCall) Do(opts ...googleapi if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ModelDeploymentMonitoringJobsOperationsDeleteCall struct { +type MetadataStoresOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -69607,8 +70077,8 @@ type ModelDeploymentMonitoringJobsOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ModelDeploymentMonitoringJobsOperationsService) Delete(name string) *ModelDeploymentMonitoringJobsOperationsDeleteCall { - c := &ModelDeploymentMonitoringJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresOperationsService) Delete(name string) *MetadataStoresOperationsDeleteCall { + c := &MetadataStoresOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -69616,27 +70086,27 @@ func (r *ModelDeploymentMonitoringJobsOperationsService) Delete(name string) *Mo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ModelDeploymentMonitoringJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ModelDeploymentMonitoringJobsOperationsDeleteCall { +func (c *MetadataStoresOperationsDeleteCall) Fields(s ...googleapi.Field) *MetadataStoresOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ModelDeploymentMonitoringJobsOperationsDeleteCall) Context(ctx context.Context) *ModelDeploymentMonitoringJobsOperationsDeleteCall { +func (c *MetadataStoresOperationsDeleteCall) Context(ctx context.Context) *MetadataStoresOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ModelDeploymentMonitoringJobsOperationsDeleteCall) Header() http.Header { +func (c *MetadataStoresOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ModelDeploymentMonitoringJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -69650,17 +70120,17 @@ func (c *ModelDeploymentMonitoringJobsOperationsDeleteCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.modelDeploymentMonitoringJobs.operations.delete" call. +// Do executes the "aiplatform.metadataStores.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *ModelDeploymentMonitoringJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *MetadataStoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69690,11 +70160,11 @@ func (c *ModelDeploymentMonitoringJobsOperationsDeleteCall) Do(opts ...googleapi if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ModelDeploymentMonitoringJobsOperationsGetCall struct { +type MetadataStoresOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -69708,8 +70178,8 @@ type ModelDeploymentMonitoringJobsOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *ModelDeploymentMonitoringJobsOperationsService) Get(name string) *ModelDeploymentMonitoringJobsOperationsGetCall { - c := &ModelDeploymentMonitoringJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresOperationsService) Get(name string) *MetadataStoresOperationsGetCall { + c := &MetadataStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -69717,7 +70187,7 @@ func (r *ModelDeploymentMonitoringJobsOperationsService) Get(name string) *Model // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ModelDeploymentMonitoringJobsOperationsGetCall) Fields(s ...googleapi.Field) *ModelDeploymentMonitoringJobsOperationsGetCall { +func (c *MetadataStoresOperationsGetCall) Fields(s ...googleapi.Field) *MetadataStoresOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -69725,27 +70195,27 @@ func (c *ModelDeploymentMonitoringJobsOperationsGetCall) Fields(s ...googleapi.F // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ModelDeploymentMonitoringJobsOperationsGetCall) IfNoneMatch(entityTag string) *ModelDeploymentMonitoringJobsOperationsGetCall { +func (c *MetadataStoresOperationsGetCall) IfNoneMatch(entityTag string) *MetadataStoresOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ModelDeploymentMonitoringJobsOperationsGetCall) Context(ctx context.Context) *ModelDeploymentMonitoringJobsOperationsGetCall { +func (c *MetadataStoresOperationsGetCall) Context(ctx context.Context) *MetadataStoresOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ModelDeploymentMonitoringJobsOperationsGetCall) Header() http.Header { +func (c *MetadataStoresOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ModelDeploymentMonitoringJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -69762,17 +70232,17 @@ func (c *ModelDeploymentMonitoringJobsOperationsGetCall) doRequest(alt string) ( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.modelDeploymentMonitoringJobs.operations.get" call. +// Do executes the "aiplatform.metadataStores.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ModelDeploymentMonitoringJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *MetadataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69802,11 +70272,11 @@ func (c *ModelDeploymentMonitoringJobsOperationsGetCall) Do(opts ...googleapi.Ca if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ModelDeploymentMonitoringJobsOperationsListCall struct { +type MetadataStoresOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -69819,28 +70289,28 @@ type ModelDeploymentMonitoringJobsOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ModelDeploymentMonitoringJobsOperationsService) List(name string) *ModelDeploymentMonitoringJobsOperationsListCall { - c := &ModelDeploymentMonitoringJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresOperationsService) List(name string) *MetadataStoresOperationsListCall { + c := &MetadataStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *ModelDeploymentMonitoringJobsOperationsListCall) Filter(filter string) *ModelDeploymentMonitoringJobsOperationsListCall { +func (c *MetadataStoresOperationsListCall) Filter(filter string) *MetadataStoresOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *ModelDeploymentMonitoringJobsOperationsListCall) PageSize(pageSize int64) *ModelDeploymentMonitoringJobsOperationsListCall { +func (c *MetadataStoresOperationsListCall) PageSize(pageSize int64) *MetadataStoresOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *ModelDeploymentMonitoringJobsOperationsListCall) PageToken(pageToken string) *ModelDeploymentMonitoringJobsOperationsListCall { +func (c *MetadataStoresOperationsListCall) PageToken(pageToken string) *MetadataStoresOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -69853,7 +70323,7 @@ func (c *ModelDeploymentMonitoringJobsOperationsListCall) PageToken(pageToken st // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *ModelDeploymentMonitoringJobsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ModelDeploymentMonitoringJobsOperationsListCall { +func (c *MetadataStoresOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MetadataStoresOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -69861,7 +70331,7 @@ func (c *ModelDeploymentMonitoringJobsOperationsListCall) ReturnPartialSuccess(r // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ModelDeploymentMonitoringJobsOperationsListCall) Fields(s ...googleapi.Field) *ModelDeploymentMonitoringJobsOperationsListCall { +func (c *MetadataStoresOperationsListCall) Fields(s ...googleapi.Field) *MetadataStoresOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -69869,27 +70339,27 @@ func (c *ModelDeploymentMonitoringJobsOperationsListCall) Fields(s ...googleapi. // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ModelDeploymentMonitoringJobsOperationsListCall) IfNoneMatch(entityTag string) *ModelDeploymentMonitoringJobsOperationsListCall { +func (c *MetadataStoresOperationsListCall) IfNoneMatch(entityTag string) *MetadataStoresOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ModelDeploymentMonitoringJobsOperationsListCall) Context(ctx context.Context) *ModelDeploymentMonitoringJobsOperationsListCall { +func (c *MetadataStoresOperationsListCall) Context(ctx context.Context) *MetadataStoresOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ModelDeploymentMonitoringJobsOperationsListCall) Header() http.Header { +func (c *MetadataStoresOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ModelDeploymentMonitoringJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -69906,17 +70376,17 @@ func (c *ModelDeploymentMonitoringJobsOperationsListCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.modelDeploymentMonitoringJobs.operations.list" call. +// Do executes the "aiplatform.metadataStores.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *ModelDeploymentMonitoringJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *MetadataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69946,14 +70416,14 @@ func (c *ModelDeploymentMonitoringJobsOperationsListCall) Do(opts ...googleapi.C if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ModelDeploymentMonitoringJobsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *MetadataStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -69971,7 +70441,7 @@ func (c *ModelDeploymentMonitoringJobsOperationsListCall) Pages(ctx context.Cont } } -type ModelDeploymentMonitoringJobsOperationsWaitCall struct { +type MetadataStoresOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -69990,8 +70460,8 @@ type ModelDeploymentMonitoringJobsOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *ModelDeploymentMonitoringJobsOperationsService) Wait(name string) *ModelDeploymentMonitoringJobsOperationsWaitCall { - c := &ModelDeploymentMonitoringJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MetadataStoresOperationsService) Wait(name string) *MetadataStoresOperationsWaitCall { + c := &MetadataStoresOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -70000,7 +70470,7 @@ func (r *ModelDeploymentMonitoringJobsOperationsService) Wait(name string) *Mode // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *ModelDeploymentMonitoringJobsOperationsWaitCall) Timeout(timeout string) *ModelDeploymentMonitoringJobsOperationsWaitCall { +func (c *MetadataStoresOperationsWaitCall) Timeout(timeout string) *MetadataStoresOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -70008,27 +70478,27 @@ func (c *ModelDeploymentMonitoringJobsOperationsWaitCall) Timeout(timeout string // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ModelDeploymentMonitoringJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ModelDeploymentMonitoringJobsOperationsWaitCall { +func (c *MetadataStoresOperationsWaitCall) Fields(s ...googleapi.Field) *MetadataStoresOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ModelDeploymentMonitoringJobsOperationsWaitCall) Context(ctx context.Context) *ModelDeploymentMonitoringJobsOperationsWaitCall { +func (c *MetadataStoresOperationsWaitCall) Context(ctx context.Context) *MetadataStoresOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ModelDeploymentMonitoringJobsOperationsWaitCall) Header() http.Header { +func (c *MetadataStoresOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ModelDeploymentMonitoringJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *MetadataStoresOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -70042,17 +70512,17 @@ func (c *ModelDeploymentMonitoringJobsOperationsWaitCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.modelDeploymentMonitoringJobs.operations.wait" call. +// Do executes the "aiplatform.metadataStores.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ModelDeploymentMonitoringJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *MetadataStoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70082,11 +70552,11 @@ func (c *ModelDeploymentMonitoringJobsOperationsWaitCall) Do(opts ...googleapi.C if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.metadataStores.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ModelsEvaluationsOperationsCancelCall struct { +type MigratableResourcesOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -70105,8 +70575,8 @@ type ModelsEvaluationsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ModelsEvaluationsOperationsService) Cancel(name string) *ModelsEvaluationsOperationsCancelCall { - c := &ModelsEvaluationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MigratableResourcesOperationsService) Cancel(name string) *MigratableResourcesOperationsCancelCall { + c := &MigratableResourcesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -70114,27 +70584,27 @@ func (r *ModelsEvaluationsOperationsService) Cancel(name string) *ModelsEvaluati // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ModelsEvaluationsOperationsCancelCall) Fields(s ...googleapi.Field) *ModelsEvaluationsOperationsCancelCall { +func (c *MigratableResourcesOperationsCancelCall) Fields(s ...googleapi.Field) *MigratableResourcesOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ModelsEvaluationsOperationsCancelCall) Context(ctx context.Context) *ModelsEvaluationsOperationsCancelCall { +func (c *MigratableResourcesOperationsCancelCall) Context(ctx context.Context) *MigratableResourcesOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ModelsEvaluationsOperationsCancelCall) Header() http.Header { +func (c *MigratableResourcesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ModelsEvaluationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *MigratableResourcesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -70148,17 +70618,17 @@ func (c *ModelsEvaluationsOperationsCancelCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.models.evaluations.operations.cancel" call. +// Do executes the "aiplatform.migratableResources.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *ModelsEvaluationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *MigratableResourcesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70188,11 +70658,11 @@ func (c *ModelsEvaluationsOperationsCancelCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ModelsEvaluationsOperationsDeleteCall struct { +type MigratableResourcesOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -70206,8 +70676,8 @@ type ModelsEvaluationsOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ModelsEvaluationsOperationsService) Delete(name string) *ModelsEvaluationsOperationsDeleteCall { - c := &ModelsEvaluationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MigratableResourcesOperationsService) Delete(name string) *MigratableResourcesOperationsDeleteCall { + c := &MigratableResourcesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -70215,27 +70685,27 @@ func (r *ModelsEvaluationsOperationsService) Delete(name string) *ModelsEvaluati // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ModelsEvaluationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ModelsEvaluationsOperationsDeleteCall { +func (c *MigratableResourcesOperationsDeleteCall) Fields(s ...googleapi.Field) *MigratableResourcesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ModelsEvaluationsOperationsDeleteCall) Context(ctx context.Context) *ModelsEvaluationsOperationsDeleteCall { +func (c *MigratableResourcesOperationsDeleteCall) Context(ctx context.Context) *MigratableResourcesOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ModelsEvaluationsOperationsDeleteCall) Header() http.Header { +func (c *MigratableResourcesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ModelsEvaluationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *MigratableResourcesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -70249,17 +70719,17 @@ func (c *ModelsEvaluationsOperationsDeleteCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.models.evaluations.operations.delete" call. +// Do executes the "aiplatform.migratableResources.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *ModelsEvaluationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *MigratableResourcesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70289,11 +70759,11 @@ func (c *ModelsEvaluationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ModelsEvaluationsOperationsGetCall struct { +type MigratableResourcesOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -70307,8 +70777,8 @@ type ModelsEvaluationsOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *ModelsEvaluationsOperationsService) Get(name string) *ModelsEvaluationsOperationsGetCall { - c := &ModelsEvaluationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MigratableResourcesOperationsService) Get(name string) *MigratableResourcesOperationsGetCall { + c := &MigratableResourcesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -70316,7 +70786,7 @@ func (r *ModelsEvaluationsOperationsService) Get(name string) *ModelsEvaluations // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ModelsEvaluationsOperationsGetCall) Fields(s ...googleapi.Field) *ModelsEvaluationsOperationsGetCall { +func (c *MigratableResourcesOperationsGetCall) Fields(s ...googleapi.Field) *MigratableResourcesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -70324,27 +70794,27 @@ func (c *ModelsEvaluationsOperationsGetCall) Fields(s ...googleapi.Field) *Model // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ModelsEvaluationsOperationsGetCall) IfNoneMatch(entityTag string) *ModelsEvaluationsOperationsGetCall { +func (c *MigratableResourcesOperationsGetCall) IfNoneMatch(entityTag string) *MigratableResourcesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ModelsEvaluationsOperationsGetCall) Context(ctx context.Context) *ModelsEvaluationsOperationsGetCall { +func (c *MigratableResourcesOperationsGetCall) Context(ctx context.Context) *MigratableResourcesOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ModelsEvaluationsOperationsGetCall) Header() http.Header { +func (c *MigratableResourcesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ModelsEvaluationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *MigratableResourcesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -70361,17 +70831,17 @@ func (c *ModelsEvaluationsOperationsGetCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.models.evaluations.operations.get" call. +// Do executes the "aiplatform.migratableResources.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ModelsEvaluationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *MigratableResourcesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70401,11 +70871,11 @@ func (c *ModelsEvaluationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ModelsEvaluationsOperationsListCall struct { +type MigratableResourcesOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -70418,28 +70888,28 @@ type ModelsEvaluationsOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ModelsEvaluationsOperationsService) List(name string) *ModelsEvaluationsOperationsListCall { - c := &ModelsEvaluationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MigratableResourcesOperationsService) List(name string) *MigratableResourcesOperationsListCall { + c := &MigratableResourcesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *ModelsEvaluationsOperationsListCall) Filter(filter string) *ModelsEvaluationsOperationsListCall { +func (c *MigratableResourcesOperationsListCall) Filter(filter string) *MigratableResourcesOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *ModelsEvaluationsOperationsListCall) PageSize(pageSize int64) *ModelsEvaluationsOperationsListCall { +func (c *MigratableResourcesOperationsListCall) PageSize(pageSize int64) *MigratableResourcesOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *ModelsEvaluationsOperationsListCall) PageToken(pageToken string) *ModelsEvaluationsOperationsListCall { +func (c *MigratableResourcesOperationsListCall) PageToken(pageToken string) *MigratableResourcesOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -70452,7 +70922,7 @@ func (c *ModelsEvaluationsOperationsListCall) PageToken(pageToken string) *Model // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *ModelsEvaluationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ModelsEvaluationsOperationsListCall { +func (c *MigratableResourcesOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *MigratableResourcesOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -70460,7 +70930,7 @@ func (c *ModelsEvaluationsOperationsListCall) ReturnPartialSuccess(returnPartial // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ModelsEvaluationsOperationsListCall) Fields(s ...googleapi.Field) *ModelsEvaluationsOperationsListCall { +func (c *MigratableResourcesOperationsListCall) Fields(s ...googleapi.Field) *MigratableResourcesOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -70468,27 +70938,27 @@ func (c *ModelsEvaluationsOperationsListCall) Fields(s ...googleapi.Field) *Mode // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ModelsEvaluationsOperationsListCall) IfNoneMatch(entityTag string) *ModelsEvaluationsOperationsListCall { +func (c *MigratableResourcesOperationsListCall) IfNoneMatch(entityTag string) *MigratableResourcesOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ModelsEvaluationsOperationsListCall) Context(ctx context.Context) *ModelsEvaluationsOperationsListCall { +func (c *MigratableResourcesOperationsListCall) Context(ctx context.Context) *MigratableResourcesOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ModelsEvaluationsOperationsListCall) Header() http.Header { +func (c *MigratableResourcesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ModelsEvaluationsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *MigratableResourcesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -70505,17 +70975,17 @@ func (c *ModelsEvaluationsOperationsListCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.models.evaluations.operations.list" call. +// Do executes the "aiplatform.migratableResources.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *ModelsEvaluationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *MigratableResourcesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70545,14 +71015,14 @@ func (c *ModelsEvaluationsOperationsListCall) Do(opts ...googleapi.CallOption) ( if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ModelsEvaluationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *MigratableResourcesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -70570,7 +71040,7 @@ func (c *ModelsEvaluationsOperationsListCall) Pages(ctx context.Context, f func( } } -type ModelsEvaluationsOperationsWaitCall struct { +type MigratableResourcesOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -70589,8 +71059,8 @@ type ModelsEvaluationsOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *ModelsEvaluationsOperationsService) Wait(name string) *ModelsEvaluationsOperationsWaitCall { - c := &ModelsEvaluationsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *MigratableResourcesOperationsService) Wait(name string) *MigratableResourcesOperationsWaitCall { + c := &MigratableResourcesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -70599,7 +71069,7 @@ func (r *ModelsEvaluationsOperationsService) Wait(name string) *ModelsEvaluation // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *ModelsEvaluationsOperationsWaitCall) Timeout(timeout string) *ModelsEvaluationsOperationsWaitCall { +func (c *MigratableResourcesOperationsWaitCall) Timeout(timeout string) *MigratableResourcesOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -70607,27 +71077,27 @@ func (c *ModelsEvaluationsOperationsWaitCall) Timeout(timeout string) *ModelsEva // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ModelsEvaluationsOperationsWaitCall) Fields(s ...googleapi.Field) *ModelsEvaluationsOperationsWaitCall { +func (c *MigratableResourcesOperationsWaitCall) Fields(s ...googleapi.Field) *MigratableResourcesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ModelsEvaluationsOperationsWaitCall) Context(ctx context.Context) *ModelsEvaluationsOperationsWaitCall { +func (c *MigratableResourcesOperationsWaitCall) Context(ctx context.Context) *MigratableResourcesOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ModelsEvaluationsOperationsWaitCall) Header() http.Header { +func (c *MigratableResourcesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ModelsEvaluationsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *MigratableResourcesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -70641,17 +71111,17 @@ func (c *ModelsEvaluationsOperationsWaitCall) doRequest(alt string) (*http.Respo googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.models.evaluations.operations.wait" call. +// Do executes the "aiplatform.migratableResources.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ModelsEvaluationsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *MigratableResourcesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70681,11 +71151,11 @@ func (c *ModelsEvaluationsOperationsWaitCall) Do(opts ...googleapi.CallOption) ( if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.migratableResources.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ModelsOperationsCancelCall struct { +type ModelDeploymentMonitoringJobsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -70704,8 +71174,8 @@ type ModelsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ModelsOperationsService) Cancel(name string) *ModelsOperationsCancelCall { - c := &ModelsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ModelDeploymentMonitoringJobsOperationsService) Cancel(name string) *ModelDeploymentMonitoringJobsOperationsCancelCall { + c := &ModelDeploymentMonitoringJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -70713,27 +71183,27 @@ func (r *ModelsOperationsService) Cancel(name string) *ModelsOperationsCancelCal // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ModelsOperationsCancelCall) Fields(s ...googleapi.Field) *ModelsOperationsCancelCall { +func (c *ModelDeploymentMonitoringJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ModelDeploymentMonitoringJobsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ModelsOperationsCancelCall) Context(ctx context.Context) *ModelsOperationsCancelCall { +func (c *ModelDeploymentMonitoringJobsOperationsCancelCall) Context(ctx context.Context) *ModelDeploymentMonitoringJobsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ModelsOperationsCancelCall) Header() http.Header { +func (c *ModelDeploymentMonitoringJobsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ModelsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ModelDeploymentMonitoringJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -70747,17 +71217,17 @@ func (c *ModelsOperationsCancelCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.models.operations.cancel" call. +// Do executes the "aiplatform.modelDeploymentMonitoringJobs.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *ModelsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ModelDeploymentMonitoringJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70787,11 +71257,11 @@ func (c *ModelsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GooglePr if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ModelsOperationsDeleteCall struct { +type ModelDeploymentMonitoringJobsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -70805,8 +71275,8 @@ type ModelsOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ModelsOperationsService) Delete(name string) *ModelsOperationsDeleteCall { - c := &ModelsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ModelDeploymentMonitoringJobsOperationsService) Delete(name string) *ModelDeploymentMonitoringJobsOperationsDeleteCall { + c := &ModelDeploymentMonitoringJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -70814,27 +71284,27 @@ func (r *ModelsOperationsService) Delete(name string) *ModelsOperationsDeleteCal // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ModelsOperationsDeleteCall) Fields(s ...googleapi.Field) *ModelsOperationsDeleteCall { +func (c *ModelDeploymentMonitoringJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ModelDeploymentMonitoringJobsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ModelsOperationsDeleteCall) Context(ctx context.Context) *ModelsOperationsDeleteCall { +func (c *ModelDeploymentMonitoringJobsOperationsDeleteCall) Context(ctx context.Context) *ModelDeploymentMonitoringJobsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ModelsOperationsDeleteCall) Header() http.Header { +func (c *ModelDeploymentMonitoringJobsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ModelsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ModelDeploymentMonitoringJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -70848,17 +71318,17 @@ func (c *ModelsOperationsDeleteCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.models.operations.delete" call. +// Do executes the "aiplatform.modelDeploymentMonitoringJobs.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *ModelsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ModelDeploymentMonitoringJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70888,11 +71358,11 @@ func (c *ModelsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GooglePr if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ModelsOperationsGetCall struct { +type ModelDeploymentMonitoringJobsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -70906,8 +71376,8 @@ type ModelsOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *ModelsOperationsService) Get(name string) *ModelsOperationsGetCall { - c := &ModelsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ModelDeploymentMonitoringJobsOperationsService) Get(name string) *ModelDeploymentMonitoringJobsOperationsGetCall { + c := &ModelDeploymentMonitoringJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -70915,7 +71385,7 @@ func (r *ModelsOperationsService) Get(name string) *ModelsOperationsGetCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ModelsOperationsGetCall) Fields(s ...googleapi.Field) *ModelsOperationsGetCall { +func (c *ModelDeploymentMonitoringJobsOperationsGetCall) Fields(s ...googleapi.Field) *ModelDeploymentMonitoringJobsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -70923,27 +71393,27 @@ func (c *ModelsOperationsGetCall) Fields(s ...googleapi.Field) *ModelsOperations // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ModelsOperationsGetCall) IfNoneMatch(entityTag string) *ModelsOperationsGetCall { +func (c *ModelDeploymentMonitoringJobsOperationsGetCall) IfNoneMatch(entityTag string) *ModelDeploymentMonitoringJobsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ModelsOperationsGetCall) Context(ctx context.Context) *ModelsOperationsGetCall { +func (c *ModelDeploymentMonitoringJobsOperationsGetCall) Context(ctx context.Context) *ModelDeploymentMonitoringJobsOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ModelsOperationsGetCall) Header() http.Header { +func (c *ModelDeploymentMonitoringJobsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ModelDeploymentMonitoringJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -70960,17 +71430,17 @@ func (c *ModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.models.operations.get" call. +// Do executes the "aiplatform.modelDeploymentMonitoringJobs.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ModelDeploymentMonitoringJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71000,11 +71470,11 @@ func (c *ModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongr if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ModelsOperationsListCall struct { +type ModelDeploymentMonitoringJobsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -71017,28 +71487,28 @@ type ModelsOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ModelsOperationsService) List(name string) *ModelsOperationsListCall { - c := &ModelsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ModelDeploymentMonitoringJobsOperationsService) List(name string) *ModelDeploymentMonitoringJobsOperationsListCall { + c := &ModelDeploymentMonitoringJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *ModelsOperationsListCall) Filter(filter string) *ModelsOperationsListCall { +func (c *ModelDeploymentMonitoringJobsOperationsListCall) Filter(filter string) *ModelDeploymentMonitoringJobsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *ModelsOperationsListCall) PageSize(pageSize int64) *ModelsOperationsListCall { +func (c *ModelDeploymentMonitoringJobsOperationsListCall) PageSize(pageSize int64) *ModelDeploymentMonitoringJobsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *ModelsOperationsListCall) PageToken(pageToken string) *ModelsOperationsListCall { +func (c *ModelDeploymentMonitoringJobsOperationsListCall) PageToken(pageToken string) *ModelDeploymentMonitoringJobsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -71051,7 +71521,7 @@ func (c *ModelsOperationsListCall) PageToken(pageToken string) *ModelsOperations // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *ModelsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ModelsOperationsListCall { +func (c *ModelDeploymentMonitoringJobsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ModelDeploymentMonitoringJobsOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -71059,7 +71529,7 @@ func (c *ModelsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess boo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ModelsOperationsListCall) Fields(s ...googleapi.Field) *ModelsOperationsListCall { +func (c *ModelDeploymentMonitoringJobsOperationsListCall) Fields(s ...googleapi.Field) *ModelDeploymentMonitoringJobsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -71067,27 +71537,27 @@ func (c *ModelsOperationsListCall) Fields(s ...googleapi.Field) *ModelsOperation // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ModelsOperationsListCall) IfNoneMatch(entityTag string) *ModelsOperationsListCall { +func (c *ModelDeploymentMonitoringJobsOperationsListCall) IfNoneMatch(entityTag string) *ModelDeploymentMonitoringJobsOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ModelsOperationsListCall) Context(ctx context.Context) *ModelsOperationsListCall { +func (c *ModelDeploymentMonitoringJobsOperationsListCall) Context(ctx context.Context) *ModelDeploymentMonitoringJobsOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ModelsOperationsListCall) Header() http.Header { +func (c *ModelDeploymentMonitoringJobsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ModelsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ModelDeploymentMonitoringJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -71104,17 +71574,17 @@ func (c *ModelsOperationsListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.models.operations.list" call. +// Do executes the "aiplatform.modelDeploymentMonitoringJobs.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *ModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ModelDeploymentMonitoringJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71144,14 +71614,14 @@ func (c *ModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLong if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ModelsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ModelDeploymentMonitoringJobsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -71169,7 +71639,7 @@ func (c *ModelsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLong } } -type ModelsOperationsWaitCall struct { +type ModelDeploymentMonitoringJobsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -71188,8 +71658,8 @@ type ModelsOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *ModelsOperationsService) Wait(name string) *ModelsOperationsWaitCall { - c := &ModelsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ModelDeploymentMonitoringJobsOperationsService) Wait(name string) *ModelDeploymentMonitoringJobsOperationsWaitCall { + c := &ModelDeploymentMonitoringJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -71198,7 +71668,7 @@ func (r *ModelsOperationsService) Wait(name string) *ModelsOperationsWaitCall { // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *ModelsOperationsWaitCall) Timeout(timeout string) *ModelsOperationsWaitCall { +func (c *ModelDeploymentMonitoringJobsOperationsWaitCall) Timeout(timeout string) *ModelDeploymentMonitoringJobsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -71206,27 +71676,27 @@ func (c *ModelsOperationsWaitCall) Timeout(timeout string) *ModelsOperationsWait // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ModelsOperationsWaitCall) Fields(s ...googleapi.Field) *ModelsOperationsWaitCall { +func (c *ModelDeploymentMonitoringJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ModelDeploymentMonitoringJobsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ModelsOperationsWaitCall) Context(ctx context.Context) *ModelsOperationsWaitCall { +func (c *ModelDeploymentMonitoringJobsOperationsWaitCall) Context(ctx context.Context) *ModelDeploymentMonitoringJobsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ModelsOperationsWaitCall) Header() http.Header { +func (c *ModelDeploymentMonitoringJobsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ModelsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ModelDeploymentMonitoringJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -71240,17 +71710,17 @@ func (c *ModelsOperationsWaitCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.models.operations.wait" call. +// Do executes the "aiplatform.modelDeploymentMonitoringJobs.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ModelsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ModelDeploymentMonitoringJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71280,11 +71750,11 @@ func (c *ModelsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLong if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.modelDeploymentMonitoringJobs.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type NotebookExecutionJobsOperationsCancelCall struct { +type ModelsEvaluationsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -71303,8 +71773,8 @@ type NotebookExecutionJobsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *NotebookExecutionJobsOperationsService) Cancel(name string) *NotebookExecutionJobsOperationsCancelCall { - c := &NotebookExecutionJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ModelsEvaluationsOperationsService) Cancel(name string) *ModelsEvaluationsOperationsCancelCall { + c := &ModelsEvaluationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -71312,27 +71782,27 @@ func (r *NotebookExecutionJobsOperationsService) Cancel(name string) *NotebookEx // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *NotebookExecutionJobsOperationsCancelCall) Fields(s ...googleapi.Field) *NotebookExecutionJobsOperationsCancelCall { +func (c *ModelsEvaluationsOperationsCancelCall) Fields(s ...googleapi.Field) *ModelsEvaluationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *NotebookExecutionJobsOperationsCancelCall) Context(ctx context.Context) *NotebookExecutionJobsOperationsCancelCall { +func (c *ModelsEvaluationsOperationsCancelCall) Context(ctx context.Context) *ModelsEvaluationsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *NotebookExecutionJobsOperationsCancelCall) Header() http.Header { +func (c *ModelsEvaluationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NotebookExecutionJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ModelsEvaluationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -71346,17 +71816,17 @@ func (c *NotebookExecutionJobsOperationsCancelCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.notebookExecutionJobs.operations.cancel" call. +// Do executes the "aiplatform.models.evaluations.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *NotebookExecutionJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ModelsEvaluationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71386,11 +71856,11 @@ func (c *NotebookExecutionJobsOperationsCancelCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type NotebookExecutionJobsOperationsDeleteCall struct { +type ModelsEvaluationsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -71404,8 +71874,8 @@ type NotebookExecutionJobsOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *NotebookExecutionJobsOperationsService) Delete(name string) *NotebookExecutionJobsOperationsDeleteCall { - c := &NotebookExecutionJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ModelsEvaluationsOperationsService) Delete(name string) *ModelsEvaluationsOperationsDeleteCall { + c := &ModelsEvaluationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -71413,27 +71883,27 @@ func (r *NotebookExecutionJobsOperationsService) Delete(name string) *NotebookEx // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *NotebookExecutionJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *NotebookExecutionJobsOperationsDeleteCall { +func (c *ModelsEvaluationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ModelsEvaluationsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *NotebookExecutionJobsOperationsDeleteCall) Context(ctx context.Context) *NotebookExecutionJobsOperationsDeleteCall { +func (c *ModelsEvaluationsOperationsDeleteCall) Context(ctx context.Context) *ModelsEvaluationsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *NotebookExecutionJobsOperationsDeleteCall) Header() http.Header { +func (c *ModelsEvaluationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NotebookExecutionJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ModelsEvaluationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -71447,17 +71917,17 @@ func (c *NotebookExecutionJobsOperationsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.notebookExecutionJobs.operations.delete" call. +// Do executes the "aiplatform.models.evaluations.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *NotebookExecutionJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ModelsEvaluationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71487,11 +71957,11 @@ func (c *NotebookExecutionJobsOperationsDeleteCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type NotebookExecutionJobsOperationsGetCall struct { +type ModelsEvaluationsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -71505,8 +71975,8 @@ type NotebookExecutionJobsOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *NotebookExecutionJobsOperationsService) Get(name string) *NotebookExecutionJobsOperationsGetCall { - c := &NotebookExecutionJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ModelsEvaluationsOperationsService) Get(name string) *ModelsEvaluationsOperationsGetCall { + c := &ModelsEvaluationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -71514,7 +71984,7 @@ func (r *NotebookExecutionJobsOperationsService) Get(name string) *NotebookExecu // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *NotebookExecutionJobsOperationsGetCall) Fields(s ...googleapi.Field) *NotebookExecutionJobsOperationsGetCall { +func (c *ModelsEvaluationsOperationsGetCall) Fields(s ...googleapi.Field) *ModelsEvaluationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -71522,27 +71992,27 @@ func (c *NotebookExecutionJobsOperationsGetCall) Fields(s ...googleapi.Field) *N // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *NotebookExecutionJobsOperationsGetCall) IfNoneMatch(entityTag string) *NotebookExecutionJobsOperationsGetCall { +func (c *ModelsEvaluationsOperationsGetCall) IfNoneMatch(entityTag string) *ModelsEvaluationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *NotebookExecutionJobsOperationsGetCall) Context(ctx context.Context) *NotebookExecutionJobsOperationsGetCall { +func (c *ModelsEvaluationsOperationsGetCall) Context(ctx context.Context) *ModelsEvaluationsOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *NotebookExecutionJobsOperationsGetCall) Header() http.Header { +func (c *ModelsEvaluationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NotebookExecutionJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ModelsEvaluationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -71559,17 +72029,17 @@ func (c *NotebookExecutionJobsOperationsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.notebookExecutionJobs.operations.get" call. +// Do executes the "aiplatform.models.evaluations.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *NotebookExecutionJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ModelsEvaluationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71599,11 +72069,11 @@ func (c *NotebookExecutionJobsOperationsGetCall) Do(opts ...googleapi.CallOption if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type NotebookExecutionJobsOperationsListCall struct { +type ModelsEvaluationsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -71616,28 +72086,28 @@ type NotebookExecutionJobsOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *NotebookExecutionJobsOperationsService) List(name string) *NotebookExecutionJobsOperationsListCall { - c := &NotebookExecutionJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ModelsEvaluationsOperationsService) List(name string) *ModelsEvaluationsOperationsListCall { + c := &ModelsEvaluationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *NotebookExecutionJobsOperationsListCall) Filter(filter string) *NotebookExecutionJobsOperationsListCall { +func (c *ModelsEvaluationsOperationsListCall) Filter(filter string) *ModelsEvaluationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *NotebookExecutionJobsOperationsListCall) PageSize(pageSize int64) *NotebookExecutionJobsOperationsListCall { +func (c *ModelsEvaluationsOperationsListCall) PageSize(pageSize int64) *ModelsEvaluationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *NotebookExecutionJobsOperationsListCall) PageToken(pageToken string) *NotebookExecutionJobsOperationsListCall { +func (c *ModelsEvaluationsOperationsListCall) PageToken(pageToken string) *ModelsEvaluationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -71650,7 +72120,7 @@ func (c *NotebookExecutionJobsOperationsListCall) PageToken(pageToken string) *N // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *NotebookExecutionJobsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NotebookExecutionJobsOperationsListCall { +func (c *ModelsEvaluationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ModelsEvaluationsOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -71658,7 +72128,7 @@ func (c *NotebookExecutionJobsOperationsListCall) ReturnPartialSuccess(returnPar // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *NotebookExecutionJobsOperationsListCall) Fields(s ...googleapi.Field) *NotebookExecutionJobsOperationsListCall { +func (c *ModelsEvaluationsOperationsListCall) Fields(s ...googleapi.Field) *ModelsEvaluationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -71666,27 +72136,27 @@ func (c *NotebookExecutionJobsOperationsListCall) Fields(s ...googleapi.Field) * // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *NotebookExecutionJobsOperationsListCall) IfNoneMatch(entityTag string) *NotebookExecutionJobsOperationsListCall { +func (c *ModelsEvaluationsOperationsListCall) IfNoneMatch(entityTag string) *ModelsEvaluationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *NotebookExecutionJobsOperationsListCall) Context(ctx context.Context) *NotebookExecutionJobsOperationsListCall { +func (c *ModelsEvaluationsOperationsListCall) Context(ctx context.Context) *ModelsEvaluationsOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *NotebookExecutionJobsOperationsListCall) Header() http.Header { +func (c *ModelsEvaluationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NotebookExecutionJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ModelsEvaluationsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -71703,17 +72173,17 @@ func (c *NotebookExecutionJobsOperationsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.notebookExecutionJobs.operations.list" call. +// Do executes the "aiplatform.models.evaluations.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *NotebookExecutionJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ModelsEvaluationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71743,14 +72213,14 @@ func (c *NotebookExecutionJobsOperationsListCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *NotebookExecutionJobsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ModelsEvaluationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -71768,7 +72238,7 @@ func (c *NotebookExecutionJobsOperationsListCall) Pages(ctx context.Context, f f } } -type NotebookExecutionJobsOperationsWaitCall struct { +type ModelsEvaluationsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -71787,8 +72257,8 @@ type NotebookExecutionJobsOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *NotebookExecutionJobsOperationsService) Wait(name string) *NotebookExecutionJobsOperationsWaitCall { - c := &NotebookExecutionJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ModelsEvaluationsOperationsService) Wait(name string) *ModelsEvaluationsOperationsWaitCall { + c := &ModelsEvaluationsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -71797,7 +72267,7 @@ func (r *NotebookExecutionJobsOperationsService) Wait(name string) *NotebookExec // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *NotebookExecutionJobsOperationsWaitCall) Timeout(timeout string) *NotebookExecutionJobsOperationsWaitCall { +func (c *ModelsEvaluationsOperationsWaitCall) Timeout(timeout string) *ModelsEvaluationsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -71805,27 +72275,27 @@ func (c *NotebookExecutionJobsOperationsWaitCall) Timeout(timeout string) *Noteb // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *NotebookExecutionJobsOperationsWaitCall) Fields(s ...googleapi.Field) *NotebookExecutionJobsOperationsWaitCall { +func (c *ModelsEvaluationsOperationsWaitCall) Fields(s ...googleapi.Field) *ModelsEvaluationsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *NotebookExecutionJobsOperationsWaitCall) Context(ctx context.Context) *NotebookExecutionJobsOperationsWaitCall { +func (c *ModelsEvaluationsOperationsWaitCall) Context(ctx context.Context) *ModelsEvaluationsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *NotebookExecutionJobsOperationsWaitCall) Header() http.Header { +func (c *ModelsEvaluationsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NotebookExecutionJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ModelsEvaluationsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -71839,17 +72309,17 @@ func (c *NotebookExecutionJobsOperationsWaitCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.notebookExecutionJobs.operations.wait" call. +// Do executes the "aiplatform.models.evaluations.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *NotebookExecutionJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ModelsEvaluationsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71879,11 +72349,11 @@ func (c *NotebookExecutionJobsOperationsWaitCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.evaluations.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type NotebookRuntimeTemplatesOperationsCancelCall struct { +type ModelsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -71902,8 +72372,8 @@ type NotebookRuntimeTemplatesOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *NotebookRuntimeTemplatesOperationsService) Cancel(name string) *NotebookRuntimeTemplatesOperationsCancelCall { - c := &NotebookRuntimeTemplatesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ModelsOperationsService) Cancel(name string) *ModelsOperationsCancelCall { + c := &ModelsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -71911,27 +72381,27 @@ func (r *NotebookRuntimeTemplatesOperationsService) Cancel(name string) *Noteboo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *NotebookRuntimeTemplatesOperationsCancelCall) Fields(s ...googleapi.Field) *NotebookRuntimeTemplatesOperationsCancelCall { +func (c *ModelsOperationsCancelCall) Fields(s ...googleapi.Field) *ModelsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *NotebookRuntimeTemplatesOperationsCancelCall) Context(ctx context.Context) *NotebookRuntimeTemplatesOperationsCancelCall { +func (c *ModelsOperationsCancelCall) Context(ctx context.Context) *ModelsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *NotebookRuntimeTemplatesOperationsCancelCall) Header() http.Header { +func (c *ModelsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NotebookRuntimeTemplatesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ModelsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -71945,17 +72415,17 @@ func (c *NotebookRuntimeTemplatesOperationsCancelCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.notebookRuntimeTemplates.operations.cancel" call. +// Do executes the "aiplatform.models.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *NotebookRuntimeTemplatesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ModelsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71985,11 +72455,11 @@ func (c *NotebookRuntimeTemplatesOperationsCancelCall) Do(opts ...googleapi.Call if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type NotebookRuntimeTemplatesOperationsDeleteCall struct { +type ModelsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72003,8 +72473,8 @@ type NotebookRuntimeTemplatesOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *NotebookRuntimeTemplatesOperationsService) Delete(name string) *NotebookRuntimeTemplatesOperationsDeleteCall { - c := &NotebookRuntimeTemplatesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ModelsOperationsService) Delete(name string) *ModelsOperationsDeleteCall { + c := &ModelsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -72012,27 +72482,27 @@ func (r *NotebookRuntimeTemplatesOperationsService) Delete(name string) *Noteboo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *NotebookRuntimeTemplatesOperationsDeleteCall) Fields(s ...googleapi.Field) *NotebookRuntimeTemplatesOperationsDeleteCall { +func (c *ModelsOperationsDeleteCall) Fields(s ...googleapi.Field) *ModelsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *NotebookRuntimeTemplatesOperationsDeleteCall) Context(ctx context.Context) *NotebookRuntimeTemplatesOperationsDeleteCall { +func (c *ModelsOperationsDeleteCall) Context(ctx context.Context) *ModelsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *NotebookRuntimeTemplatesOperationsDeleteCall) Header() http.Header { +func (c *ModelsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NotebookRuntimeTemplatesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ModelsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -72046,17 +72516,17 @@ func (c *NotebookRuntimeTemplatesOperationsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.notebookRuntimeTemplates.operations.delete" call. +// Do executes the "aiplatform.models.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *NotebookRuntimeTemplatesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ModelsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72086,11 +72556,11 @@ func (c *NotebookRuntimeTemplatesOperationsDeleteCall) Do(opts ...googleapi.Call if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type NotebookRuntimeTemplatesOperationsGetCall struct { +type ModelsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72104,8 +72574,8 @@ type NotebookRuntimeTemplatesOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *NotebookRuntimeTemplatesOperationsService) Get(name string) *NotebookRuntimeTemplatesOperationsGetCall { - c := &NotebookRuntimeTemplatesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ModelsOperationsService) Get(name string) *ModelsOperationsGetCall { + c := &ModelsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -72113,7 +72583,7 @@ func (r *NotebookRuntimeTemplatesOperationsService) Get(name string) *NotebookRu // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *NotebookRuntimeTemplatesOperationsGetCall) Fields(s ...googleapi.Field) *NotebookRuntimeTemplatesOperationsGetCall { +func (c *ModelsOperationsGetCall) Fields(s ...googleapi.Field) *ModelsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -72121,27 +72591,27 @@ func (c *NotebookRuntimeTemplatesOperationsGetCall) Fields(s ...googleapi.Field) // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *NotebookRuntimeTemplatesOperationsGetCall) IfNoneMatch(entityTag string) *NotebookRuntimeTemplatesOperationsGetCall { +func (c *ModelsOperationsGetCall) IfNoneMatch(entityTag string) *ModelsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *NotebookRuntimeTemplatesOperationsGetCall) Context(ctx context.Context) *NotebookRuntimeTemplatesOperationsGetCall { +func (c *ModelsOperationsGetCall) Context(ctx context.Context) *ModelsOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *NotebookRuntimeTemplatesOperationsGetCall) Header() http.Header { +func (c *ModelsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NotebookRuntimeTemplatesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -72158,17 +72628,17 @@ func (c *NotebookRuntimeTemplatesOperationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.notebookRuntimeTemplates.operations.get" call. +// Do executes the "aiplatform.models.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *NotebookRuntimeTemplatesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72198,11 +72668,11 @@ func (c *NotebookRuntimeTemplatesOperationsGetCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type NotebookRuntimeTemplatesOperationsListCall struct { +type ModelsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72215,28 +72685,28 @@ type NotebookRuntimeTemplatesOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *NotebookRuntimeTemplatesOperationsService) List(name string) *NotebookRuntimeTemplatesOperationsListCall { - c := &NotebookRuntimeTemplatesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ModelsOperationsService) List(name string) *ModelsOperationsListCall { + c := &ModelsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *NotebookRuntimeTemplatesOperationsListCall) Filter(filter string) *NotebookRuntimeTemplatesOperationsListCall { +func (c *ModelsOperationsListCall) Filter(filter string) *ModelsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *NotebookRuntimeTemplatesOperationsListCall) PageSize(pageSize int64) *NotebookRuntimeTemplatesOperationsListCall { +func (c *ModelsOperationsListCall) PageSize(pageSize int64) *ModelsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *NotebookRuntimeTemplatesOperationsListCall) PageToken(pageToken string) *NotebookRuntimeTemplatesOperationsListCall { +func (c *ModelsOperationsListCall) PageToken(pageToken string) *ModelsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -72249,7 +72719,7 @@ func (c *NotebookRuntimeTemplatesOperationsListCall) PageToken(pageToken string) // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *NotebookRuntimeTemplatesOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NotebookRuntimeTemplatesOperationsListCall { +func (c *ModelsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ModelsOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -72257,7 +72727,7 @@ func (c *NotebookRuntimeTemplatesOperationsListCall) ReturnPartialSuccess(return // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *NotebookRuntimeTemplatesOperationsListCall) Fields(s ...googleapi.Field) *NotebookRuntimeTemplatesOperationsListCall { +func (c *ModelsOperationsListCall) Fields(s ...googleapi.Field) *ModelsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -72265,27 +72735,27 @@ func (c *NotebookRuntimeTemplatesOperationsListCall) Fields(s ...googleapi.Field // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *NotebookRuntimeTemplatesOperationsListCall) IfNoneMatch(entityTag string) *NotebookRuntimeTemplatesOperationsListCall { +func (c *ModelsOperationsListCall) IfNoneMatch(entityTag string) *ModelsOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *NotebookRuntimeTemplatesOperationsListCall) Context(ctx context.Context) *NotebookRuntimeTemplatesOperationsListCall { +func (c *ModelsOperationsListCall) Context(ctx context.Context) *ModelsOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *NotebookRuntimeTemplatesOperationsListCall) Header() http.Header { +func (c *ModelsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NotebookRuntimeTemplatesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ModelsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -72302,17 +72772,17 @@ func (c *NotebookRuntimeTemplatesOperationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.notebookRuntimeTemplates.operations.list" call. +// Do executes the "aiplatform.models.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *NotebookRuntimeTemplatesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72342,14 +72812,14 @@ func (c *NotebookRuntimeTemplatesOperationsListCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *NotebookRuntimeTemplatesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ModelsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -72367,7 +72837,7 @@ func (c *NotebookRuntimeTemplatesOperationsListCall) Pages(ctx context.Context, } } -type NotebookRuntimeTemplatesOperationsWaitCall struct { +type ModelsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72386,8 +72856,8 @@ type NotebookRuntimeTemplatesOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *NotebookRuntimeTemplatesOperationsService) Wait(name string) *NotebookRuntimeTemplatesOperationsWaitCall { - c := &NotebookRuntimeTemplatesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ModelsOperationsService) Wait(name string) *ModelsOperationsWaitCall { + c := &ModelsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -72396,7 +72866,7 @@ func (r *NotebookRuntimeTemplatesOperationsService) Wait(name string) *NotebookR // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *NotebookRuntimeTemplatesOperationsWaitCall) Timeout(timeout string) *NotebookRuntimeTemplatesOperationsWaitCall { +func (c *ModelsOperationsWaitCall) Timeout(timeout string) *ModelsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -72404,27 +72874,27 @@ func (c *NotebookRuntimeTemplatesOperationsWaitCall) Timeout(timeout string) *No // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *NotebookRuntimeTemplatesOperationsWaitCall) Fields(s ...googleapi.Field) *NotebookRuntimeTemplatesOperationsWaitCall { +func (c *ModelsOperationsWaitCall) Fields(s ...googleapi.Field) *ModelsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *NotebookRuntimeTemplatesOperationsWaitCall) Context(ctx context.Context) *NotebookRuntimeTemplatesOperationsWaitCall { +func (c *ModelsOperationsWaitCall) Context(ctx context.Context) *ModelsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *NotebookRuntimeTemplatesOperationsWaitCall) Header() http.Header { +func (c *ModelsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NotebookRuntimeTemplatesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ModelsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -72438,17 +72908,17 @@ func (c *NotebookRuntimeTemplatesOperationsWaitCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.models.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.notebookRuntimeTemplates.operations.wait" call. +// Do executes the "aiplatform.models.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *NotebookRuntimeTemplatesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ModelsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72478,11 +72948,11 @@ func (c *NotebookRuntimeTemplatesOperationsWaitCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.models.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type NotebookRuntimesOperationsCancelCall struct { +type NotebookExecutionJobsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72501,8 +72971,8 @@ type NotebookRuntimesOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *NotebookRuntimesOperationsService) Cancel(name string) *NotebookRuntimesOperationsCancelCall { - c := &NotebookRuntimesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *NotebookExecutionJobsOperationsService) Cancel(name string) *NotebookExecutionJobsOperationsCancelCall { + c := &NotebookExecutionJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -72510,27 +72980,27 @@ func (r *NotebookRuntimesOperationsService) Cancel(name string) *NotebookRuntime // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *NotebookRuntimesOperationsCancelCall) Fields(s ...googleapi.Field) *NotebookRuntimesOperationsCancelCall { +func (c *NotebookExecutionJobsOperationsCancelCall) Fields(s ...googleapi.Field) *NotebookExecutionJobsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *NotebookRuntimesOperationsCancelCall) Context(ctx context.Context) *NotebookRuntimesOperationsCancelCall { +func (c *NotebookExecutionJobsOperationsCancelCall) Context(ctx context.Context) *NotebookExecutionJobsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *NotebookRuntimesOperationsCancelCall) Header() http.Header { +func (c *NotebookExecutionJobsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NotebookRuntimesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *NotebookExecutionJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -72544,17 +73014,17 @@ func (c *NotebookRuntimesOperationsCancelCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.notebookRuntimes.operations.cancel" call. +// Do executes the "aiplatform.notebookExecutionJobs.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *NotebookRuntimesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *NotebookExecutionJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72584,11 +73054,11 @@ func (c *NotebookRuntimesOperationsCancelCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type NotebookRuntimesOperationsDeleteCall struct { +type NotebookExecutionJobsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72602,8 +73072,8 @@ type NotebookRuntimesOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *NotebookRuntimesOperationsService) Delete(name string) *NotebookRuntimesOperationsDeleteCall { - c := &NotebookRuntimesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *NotebookExecutionJobsOperationsService) Delete(name string) *NotebookExecutionJobsOperationsDeleteCall { + c := &NotebookExecutionJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -72611,27 +73081,27 @@ func (r *NotebookRuntimesOperationsService) Delete(name string) *NotebookRuntime // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *NotebookRuntimesOperationsDeleteCall) Fields(s ...googleapi.Field) *NotebookRuntimesOperationsDeleteCall { +func (c *NotebookExecutionJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *NotebookExecutionJobsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *NotebookRuntimesOperationsDeleteCall) Context(ctx context.Context) *NotebookRuntimesOperationsDeleteCall { +func (c *NotebookExecutionJobsOperationsDeleteCall) Context(ctx context.Context) *NotebookExecutionJobsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *NotebookRuntimesOperationsDeleteCall) Header() http.Header { +func (c *NotebookExecutionJobsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NotebookRuntimesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *NotebookExecutionJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -72645,17 +73115,17 @@ func (c *NotebookRuntimesOperationsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.notebookRuntimes.operations.delete" call. +// Do executes the "aiplatform.notebookExecutionJobs.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *NotebookRuntimesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *NotebookExecutionJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72685,11 +73155,11 @@ func (c *NotebookRuntimesOperationsDeleteCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type NotebookRuntimesOperationsGetCall struct { +type NotebookExecutionJobsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72703,8 +73173,8 @@ type NotebookRuntimesOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *NotebookRuntimesOperationsService) Get(name string) *NotebookRuntimesOperationsGetCall { - c := &NotebookRuntimesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *NotebookExecutionJobsOperationsService) Get(name string) *NotebookExecutionJobsOperationsGetCall { + c := &NotebookExecutionJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -72712,7 +73182,7 @@ func (r *NotebookRuntimesOperationsService) Get(name string) *NotebookRuntimesOp // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *NotebookRuntimesOperationsGetCall) Fields(s ...googleapi.Field) *NotebookRuntimesOperationsGetCall { +func (c *NotebookExecutionJobsOperationsGetCall) Fields(s ...googleapi.Field) *NotebookExecutionJobsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -72720,27 +73190,27 @@ func (c *NotebookRuntimesOperationsGetCall) Fields(s ...googleapi.Field) *Notebo // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *NotebookRuntimesOperationsGetCall) IfNoneMatch(entityTag string) *NotebookRuntimesOperationsGetCall { +func (c *NotebookExecutionJobsOperationsGetCall) IfNoneMatch(entityTag string) *NotebookExecutionJobsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *NotebookRuntimesOperationsGetCall) Context(ctx context.Context) *NotebookRuntimesOperationsGetCall { +func (c *NotebookExecutionJobsOperationsGetCall) Context(ctx context.Context) *NotebookExecutionJobsOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *NotebookRuntimesOperationsGetCall) Header() http.Header { +func (c *NotebookExecutionJobsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NotebookRuntimesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *NotebookExecutionJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -72757,17 +73227,17 @@ func (c *NotebookRuntimesOperationsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.notebookRuntimes.operations.get" call. +// Do executes the "aiplatform.notebookExecutionJobs.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *NotebookRuntimesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *NotebookExecutionJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72797,11 +73267,11 @@ func (c *NotebookRuntimesOperationsGetCall) Do(opts ...googleapi.CallOption) (*G if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type NotebookRuntimesOperationsListCall struct { +type NotebookExecutionJobsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72814,28 +73284,28 @@ type NotebookRuntimesOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *NotebookRuntimesOperationsService) List(name string) *NotebookRuntimesOperationsListCall { - c := &NotebookRuntimesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *NotebookExecutionJobsOperationsService) List(name string) *NotebookExecutionJobsOperationsListCall { + c := &NotebookExecutionJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *NotebookRuntimesOperationsListCall) Filter(filter string) *NotebookRuntimesOperationsListCall { +func (c *NotebookExecutionJobsOperationsListCall) Filter(filter string) *NotebookExecutionJobsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *NotebookRuntimesOperationsListCall) PageSize(pageSize int64) *NotebookRuntimesOperationsListCall { +func (c *NotebookExecutionJobsOperationsListCall) PageSize(pageSize int64) *NotebookExecutionJobsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *NotebookRuntimesOperationsListCall) PageToken(pageToken string) *NotebookRuntimesOperationsListCall { +func (c *NotebookExecutionJobsOperationsListCall) PageToken(pageToken string) *NotebookExecutionJobsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -72848,7 +73318,7 @@ func (c *NotebookRuntimesOperationsListCall) PageToken(pageToken string) *Notebo // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *NotebookRuntimesOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NotebookRuntimesOperationsListCall { +func (c *NotebookExecutionJobsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NotebookExecutionJobsOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -72856,7 +73326,7 @@ func (c *NotebookRuntimesOperationsListCall) ReturnPartialSuccess(returnPartialS // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *NotebookRuntimesOperationsListCall) Fields(s ...googleapi.Field) *NotebookRuntimesOperationsListCall { +func (c *NotebookExecutionJobsOperationsListCall) Fields(s ...googleapi.Field) *NotebookExecutionJobsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -72864,27 +73334,27 @@ func (c *NotebookRuntimesOperationsListCall) Fields(s ...googleapi.Field) *Noteb // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *NotebookRuntimesOperationsListCall) IfNoneMatch(entityTag string) *NotebookRuntimesOperationsListCall { +func (c *NotebookExecutionJobsOperationsListCall) IfNoneMatch(entityTag string) *NotebookExecutionJobsOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *NotebookRuntimesOperationsListCall) Context(ctx context.Context) *NotebookRuntimesOperationsListCall { +func (c *NotebookExecutionJobsOperationsListCall) Context(ctx context.Context) *NotebookExecutionJobsOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *NotebookRuntimesOperationsListCall) Header() http.Header { +func (c *NotebookExecutionJobsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NotebookRuntimesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *NotebookExecutionJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -72901,17 +73371,17 @@ func (c *NotebookRuntimesOperationsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.notebookRuntimes.operations.list" call. +// Do executes the "aiplatform.notebookExecutionJobs.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *NotebookRuntimesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *NotebookExecutionJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72941,14 +73411,14 @@ func (c *NotebookRuntimesOperationsListCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *NotebookRuntimesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *NotebookExecutionJobsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -72966,7 +73436,7 @@ func (c *NotebookRuntimesOperationsListCall) Pages(ctx context.Context, f func(* } } -type NotebookRuntimesOperationsWaitCall struct { +type NotebookExecutionJobsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72985,8 +73455,8 @@ type NotebookRuntimesOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *NotebookRuntimesOperationsService) Wait(name string) *NotebookRuntimesOperationsWaitCall { - c := &NotebookRuntimesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *NotebookExecutionJobsOperationsService) Wait(name string) *NotebookExecutionJobsOperationsWaitCall { + c := &NotebookExecutionJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -72995,7 +73465,7 @@ func (r *NotebookRuntimesOperationsService) Wait(name string) *NotebookRuntimesO // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *NotebookRuntimesOperationsWaitCall) Timeout(timeout string) *NotebookRuntimesOperationsWaitCall { +func (c *NotebookExecutionJobsOperationsWaitCall) Timeout(timeout string) *NotebookExecutionJobsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -73003,27 +73473,27 @@ func (c *NotebookRuntimesOperationsWaitCall) Timeout(timeout string) *NotebookRu // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *NotebookRuntimesOperationsWaitCall) Fields(s ...googleapi.Field) *NotebookRuntimesOperationsWaitCall { +func (c *NotebookExecutionJobsOperationsWaitCall) Fields(s ...googleapi.Field) *NotebookExecutionJobsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *NotebookRuntimesOperationsWaitCall) Context(ctx context.Context) *NotebookRuntimesOperationsWaitCall { +func (c *NotebookExecutionJobsOperationsWaitCall) Context(ctx context.Context) *NotebookExecutionJobsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *NotebookRuntimesOperationsWaitCall) Header() http.Header { +func (c *NotebookExecutionJobsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NotebookRuntimesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *NotebookExecutionJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -73037,17 +73507,17 @@ func (c *NotebookRuntimesOperationsWaitCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.notebookRuntimes.operations.wait" call. +// Do executes the "aiplatform.notebookExecutionJobs.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *NotebookRuntimesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *NotebookExecutionJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73077,11 +73547,11 @@ func (c *NotebookRuntimesOperationsWaitCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookExecutionJobs.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OnlineEvaluatorsOperationsCancelCall struct { +type NotebookRuntimeTemplatesOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -73100,8 +73570,8 @@ type OnlineEvaluatorsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *OnlineEvaluatorsOperationsService) Cancel(name string) *OnlineEvaluatorsOperationsCancelCall { - c := &OnlineEvaluatorsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *NotebookRuntimeTemplatesOperationsService) Cancel(name string) *NotebookRuntimeTemplatesOperationsCancelCall { + c := &NotebookRuntimeTemplatesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -73109,27 +73579,27 @@ func (r *OnlineEvaluatorsOperationsService) Cancel(name string) *OnlineEvaluator // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OnlineEvaluatorsOperationsCancelCall) Fields(s ...googleapi.Field) *OnlineEvaluatorsOperationsCancelCall { +func (c *NotebookRuntimeTemplatesOperationsCancelCall) Fields(s ...googleapi.Field) *NotebookRuntimeTemplatesOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OnlineEvaluatorsOperationsCancelCall) Context(ctx context.Context) *OnlineEvaluatorsOperationsCancelCall { +func (c *NotebookRuntimeTemplatesOperationsCancelCall) Context(ctx context.Context) *NotebookRuntimeTemplatesOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OnlineEvaluatorsOperationsCancelCall) Header() http.Header { +func (c *NotebookRuntimeTemplatesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OnlineEvaluatorsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *NotebookRuntimeTemplatesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -73143,17 +73613,17 @@ func (c *OnlineEvaluatorsOperationsCancelCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.onlineEvaluators.operations.cancel" call. +// Do executes the "aiplatform.notebookRuntimeTemplates.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *OnlineEvaluatorsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *NotebookRuntimeTemplatesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73183,11 +73653,11 @@ func (c *OnlineEvaluatorsOperationsCancelCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OnlineEvaluatorsOperationsDeleteCall struct { +type NotebookRuntimeTemplatesOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -73201,8 +73671,8 @@ type OnlineEvaluatorsOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *OnlineEvaluatorsOperationsService) Delete(name string) *OnlineEvaluatorsOperationsDeleteCall { - c := &OnlineEvaluatorsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *NotebookRuntimeTemplatesOperationsService) Delete(name string) *NotebookRuntimeTemplatesOperationsDeleteCall { + c := &NotebookRuntimeTemplatesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -73210,27 +73680,27 @@ func (r *OnlineEvaluatorsOperationsService) Delete(name string) *OnlineEvaluator // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OnlineEvaluatorsOperationsDeleteCall) Fields(s ...googleapi.Field) *OnlineEvaluatorsOperationsDeleteCall { +func (c *NotebookRuntimeTemplatesOperationsDeleteCall) Fields(s ...googleapi.Field) *NotebookRuntimeTemplatesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OnlineEvaluatorsOperationsDeleteCall) Context(ctx context.Context) *OnlineEvaluatorsOperationsDeleteCall { +func (c *NotebookRuntimeTemplatesOperationsDeleteCall) Context(ctx context.Context) *NotebookRuntimeTemplatesOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OnlineEvaluatorsOperationsDeleteCall) Header() http.Header { +func (c *NotebookRuntimeTemplatesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OnlineEvaluatorsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *NotebookRuntimeTemplatesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -73244,17 +73714,17 @@ func (c *OnlineEvaluatorsOperationsDeleteCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.onlineEvaluators.operations.delete" call. +// Do executes the "aiplatform.notebookRuntimeTemplates.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *OnlineEvaluatorsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *NotebookRuntimeTemplatesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73284,11 +73754,11 @@ func (c *OnlineEvaluatorsOperationsDeleteCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OnlineEvaluatorsOperationsGetCall struct { +type NotebookRuntimeTemplatesOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -73302,8 +73772,8 @@ type OnlineEvaluatorsOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *OnlineEvaluatorsOperationsService) Get(name string) *OnlineEvaluatorsOperationsGetCall { - c := &OnlineEvaluatorsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *NotebookRuntimeTemplatesOperationsService) Get(name string) *NotebookRuntimeTemplatesOperationsGetCall { + c := &NotebookRuntimeTemplatesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -73311,7 +73781,7 @@ func (r *OnlineEvaluatorsOperationsService) Get(name string) *OnlineEvaluatorsOp // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OnlineEvaluatorsOperationsGetCall) Fields(s ...googleapi.Field) *OnlineEvaluatorsOperationsGetCall { +func (c *NotebookRuntimeTemplatesOperationsGetCall) Fields(s ...googleapi.Field) *NotebookRuntimeTemplatesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -73319,27 +73789,27 @@ func (c *OnlineEvaluatorsOperationsGetCall) Fields(s ...googleapi.Field) *Online // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *OnlineEvaluatorsOperationsGetCall) IfNoneMatch(entityTag string) *OnlineEvaluatorsOperationsGetCall { +func (c *NotebookRuntimeTemplatesOperationsGetCall) IfNoneMatch(entityTag string) *NotebookRuntimeTemplatesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *OnlineEvaluatorsOperationsGetCall) Context(ctx context.Context) *OnlineEvaluatorsOperationsGetCall { +func (c *NotebookRuntimeTemplatesOperationsGetCall) Context(ctx context.Context) *NotebookRuntimeTemplatesOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OnlineEvaluatorsOperationsGetCall) Header() http.Header { +func (c *NotebookRuntimeTemplatesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OnlineEvaluatorsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *NotebookRuntimeTemplatesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -73356,17 +73826,17 @@ func (c *OnlineEvaluatorsOperationsGetCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.onlineEvaluators.operations.get" call. +// Do executes the "aiplatform.notebookRuntimeTemplates.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *OnlineEvaluatorsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *NotebookRuntimeTemplatesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73396,11 +73866,11 @@ func (c *OnlineEvaluatorsOperationsGetCall) Do(opts ...googleapi.CallOption) (*G if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OnlineEvaluatorsOperationsListCall struct { +type NotebookRuntimeTemplatesOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -73413,28 +73883,28 @@ type OnlineEvaluatorsOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *OnlineEvaluatorsOperationsService) List(name string) *OnlineEvaluatorsOperationsListCall { - c := &OnlineEvaluatorsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *NotebookRuntimeTemplatesOperationsService) List(name string) *NotebookRuntimeTemplatesOperationsListCall { + c := &NotebookRuntimeTemplatesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *OnlineEvaluatorsOperationsListCall) Filter(filter string) *OnlineEvaluatorsOperationsListCall { +func (c *NotebookRuntimeTemplatesOperationsListCall) Filter(filter string) *NotebookRuntimeTemplatesOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *OnlineEvaluatorsOperationsListCall) PageSize(pageSize int64) *OnlineEvaluatorsOperationsListCall { +func (c *NotebookRuntimeTemplatesOperationsListCall) PageSize(pageSize int64) *NotebookRuntimeTemplatesOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *OnlineEvaluatorsOperationsListCall) PageToken(pageToken string) *OnlineEvaluatorsOperationsListCall { +func (c *NotebookRuntimeTemplatesOperationsListCall) PageToken(pageToken string) *NotebookRuntimeTemplatesOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -73447,7 +73917,7 @@ func (c *OnlineEvaluatorsOperationsListCall) PageToken(pageToken string) *Online // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *OnlineEvaluatorsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OnlineEvaluatorsOperationsListCall { +func (c *NotebookRuntimeTemplatesOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NotebookRuntimeTemplatesOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -73455,7 +73925,7 @@ func (c *OnlineEvaluatorsOperationsListCall) ReturnPartialSuccess(returnPartialS // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OnlineEvaluatorsOperationsListCall) Fields(s ...googleapi.Field) *OnlineEvaluatorsOperationsListCall { +func (c *NotebookRuntimeTemplatesOperationsListCall) Fields(s ...googleapi.Field) *NotebookRuntimeTemplatesOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -73463,27 +73933,27 @@ func (c *OnlineEvaluatorsOperationsListCall) Fields(s ...googleapi.Field) *Onlin // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *OnlineEvaluatorsOperationsListCall) IfNoneMatch(entityTag string) *OnlineEvaluatorsOperationsListCall { +func (c *NotebookRuntimeTemplatesOperationsListCall) IfNoneMatch(entityTag string) *NotebookRuntimeTemplatesOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *OnlineEvaluatorsOperationsListCall) Context(ctx context.Context) *OnlineEvaluatorsOperationsListCall { +func (c *NotebookRuntimeTemplatesOperationsListCall) Context(ctx context.Context) *NotebookRuntimeTemplatesOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OnlineEvaluatorsOperationsListCall) Header() http.Header { +func (c *NotebookRuntimeTemplatesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OnlineEvaluatorsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *NotebookRuntimeTemplatesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -73500,17 +73970,17 @@ func (c *OnlineEvaluatorsOperationsListCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.onlineEvaluators.operations.list" call. +// Do executes the "aiplatform.notebookRuntimeTemplates.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *OnlineEvaluatorsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *NotebookRuntimeTemplatesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73540,14 +74010,14 @@ func (c *OnlineEvaluatorsOperationsListCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *OnlineEvaluatorsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *NotebookRuntimeTemplatesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -73565,7 +74035,7 @@ func (c *OnlineEvaluatorsOperationsListCall) Pages(ctx context.Context, f func(* } } -type OnlineEvaluatorsOperationsWaitCall struct { +type NotebookRuntimeTemplatesOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -73584,8 +74054,8 @@ type OnlineEvaluatorsOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *OnlineEvaluatorsOperationsService) Wait(name string) *OnlineEvaluatorsOperationsWaitCall { - c := &OnlineEvaluatorsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *NotebookRuntimeTemplatesOperationsService) Wait(name string) *NotebookRuntimeTemplatesOperationsWaitCall { + c := &NotebookRuntimeTemplatesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -73594,7 +74064,7 @@ func (r *OnlineEvaluatorsOperationsService) Wait(name string) *OnlineEvaluatorsO // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *OnlineEvaluatorsOperationsWaitCall) Timeout(timeout string) *OnlineEvaluatorsOperationsWaitCall { +func (c *NotebookRuntimeTemplatesOperationsWaitCall) Timeout(timeout string) *NotebookRuntimeTemplatesOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -73602,27 +74072,27 @@ func (c *OnlineEvaluatorsOperationsWaitCall) Timeout(timeout string) *OnlineEval // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OnlineEvaluatorsOperationsWaitCall) Fields(s ...googleapi.Field) *OnlineEvaluatorsOperationsWaitCall { +func (c *NotebookRuntimeTemplatesOperationsWaitCall) Fields(s ...googleapi.Field) *NotebookRuntimeTemplatesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OnlineEvaluatorsOperationsWaitCall) Context(ctx context.Context) *OnlineEvaluatorsOperationsWaitCall { +func (c *NotebookRuntimeTemplatesOperationsWaitCall) Context(ctx context.Context) *NotebookRuntimeTemplatesOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OnlineEvaluatorsOperationsWaitCall) Header() http.Header { +func (c *NotebookRuntimeTemplatesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OnlineEvaluatorsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *NotebookRuntimeTemplatesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -73636,17 +74106,17 @@ func (c *OnlineEvaluatorsOperationsWaitCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.onlineEvaluators.operations.wait" call. +// Do executes the "aiplatform.notebookRuntimeTemplates.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *OnlineEvaluatorsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *NotebookRuntimeTemplatesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73676,11 +74146,11 @@ func (c *OnlineEvaluatorsOperationsWaitCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimeTemplates.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OperationsCancelCall struct { +type NotebookRuntimesOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -73699,8 +74169,8 @@ type OperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *OperationsService) Cancel(name string) *OperationsCancelCall { - c := &OperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *NotebookRuntimesOperationsService) Cancel(name string) *NotebookRuntimesOperationsCancelCall { + c := &NotebookRuntimesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -73708,27 +74178,27 @@ func (r *OperationsService) Cancel(name string) *OperationsCancelCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall { +func (c *NotebookRuntimesOperationsCancelCall) Fields(s ...googleapi.Field) *NotebookRuntimesOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall { +func (c *NotebookRuntimesOperationsCancelCall) Context(ctx context.Context) *NotebookRuntimesOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OperationsCancelCall) Header() http.Header { +func (c *NotebookRuntimesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *NotebookRuntimesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -73742,17 +74212,17 @@ func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.operations.cancel" call. +// Do executes the "aiplatform.notebookRuntimes.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *NotebookRuntimesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73782,11 +74252,11 @@ func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobuf if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OperationsDeleteCall struct { +type NotebookRuntimesOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -73800,8 +74270,8 @@ type OperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *OperationsService) Delete(name string) *OperationsDeleteCall { - c := &OperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *NotebookRuntimesOperationsService) Delete(name string) *NotebookRuntimesOperationsDeleteCall { + c := &NotebookRuntimesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -73809,27 +74279,27 @@ func (r *OperationsService) Delete(name string) *OperationsDeleteCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OperationsDeleteCall) Fields(s ...googleapi.Field) *OperationsDeleteCall { +func (c *NotebookRuntimesOperationsDeleteCall) Fields(s ...googleapi.Field) *NotebookRuntimesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OperationsDeleteCall) Context(ctx context.Context) *OperationsDeleteCall { +func (c *NotebookRuntimesOperationsDeleteCall) Context(ctx context.Context) *NotebookRuntimesOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OperationsDeleteCall) Header() http.Header { +func (c *NotebookRuntimesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *NotebookRuntimesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -73843,17 +74313,17 @@ func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.operations.delete" call. +// Do executes the "aiplatform.notebookRuntimes.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *NotebookRuntimesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73883,11 +74353,11 @@ func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobuf if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OperationsGetCall struct { +type NotebookRuntimesOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -73901,8 +74371,8 @@ type OperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *OperationsService) Get(name string) *OperationsGetCall { - c := &OperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *NotebookRuntimesOperationsService) Get(name string) *NotebookRuntimesOperationsGetCall { + c := &NotebookRuntimesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -73910,7 +74380,7 @@ func (r *OperationsService) Get(name string) *OperationsGetCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { +func (c *NotebookRuntimesOperationsGetCall) Fields(s ...googleapi.Field) *NotebookRuntimesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -73918,27 +74388,27 @@ func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall { +func (c *NotebookRuntimesOperationsGetCall) IfNoneMatch(entityTag string) *NotebookRuntimesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall { +func (c *NotebookRuntimesOperationsGetCall) Context(ctx context.Context) *NotebookRuntimesOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OperationsGetCall) Header() http.Header { +func (c *NotebookRuntimesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *NotebookRuntimesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -73955,17 +74425,17 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.operations.get" call. +// Do executes the "aiplatform.notebookRuntimes.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *OperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *NotebookRuntimesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73995,12 +74465,13 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunning if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type OperationsListCall struct { +type NotebookRuntimesOperationsListCall struct { s *Service + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context @@ -74009,34 +74480,30 @@ type OperationsListCall struct { // List: Lists operations that match the specified filter in the request. If // the server doesn't support this method, it returns `UNIMPLEMENTED`. -func (r *OperationsService) List() *OperationsListCall { - c := &OperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// +// - name: The name of the operation's parent resource. +func (r *NotebookRuntimesOperationsService) List(name string) *NotebookRuntimesOperationsListCall { + c := &NotebookRuntimesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *OperationsListCall) Filter(filter string) *OperationsListCall { +func (c *NotebookRuntimesOperationsListCall) Filter(filter string) *NotebookRuntimesOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// Name sets the optional parameter "name": The name of the operation's parent -// resource. -func (c *OperationsListCall) Name(name string) *OperationsListCall { - c.urlParams_.Set("name", name) - return c -} - // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall { +func (c *NotebookRuntimesOperationsListCall) PageSize(pageSize int64) *NotebookRuntimesOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { +func (c *NotebookRuntimesOperationsListCall) PageToken(pageToken string) *NotebookRuntimesOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -74049,7 +74516,7 @@ func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *OperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OperationsListCall { +func (c *NotebookRuntimesOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *NotebookRuntimesOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -74057,7 +74524,7 @@ func (c *OperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *Op // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { +func (c *NotebookRuntimesOperationsListCall) Fields(s ...googleapi.Field) *NotebookRuntimesOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -74065,51 +74532,54 @@ func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall { +func (c *NotebookRuntimesOperationsListCall) IfNoneMatch(entityTag string) *NotebookRuntimesOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall { +func (c *NotebookRuntimesOperationsListCall) Context(ctx context.Context) *NotebookRuntimesOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OperationsListCall) Header() http.Header { +func (c *NotebookRuntimesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *NotebookRuntimesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.operations.list", "request", internallog.HTTPRequest(req, nil)) + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.operations.list" call. +// Do executes the "aiplatform.notebookRuntimes.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *NotebookRuntimesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74139,14 +74609,14 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *OperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *NotebookRuntimesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -74164,7 +74634,7 @@ func (c *OperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunnin } } -type OperationsWaitCall struct { +type NotebookRuntimesOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -74183,8 +74653,8 @@ type OperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *OperationsService) Wait(name string) *OperationsWaitCall { - c := &OperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *NotebookRuntimesOperationsService) Wait(name string) *NotebookRuntimesOperationsWaitCall { + c := &NotebookRuntimesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -74193,7 +74663,7 @@ func (r *OperationsService) Wait(name string) *OperationsWaitCall { // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *OperationsWaitCall) Timeout(timeout string) *OperationsWaitCall { +func (c *NotebookRuntimesOperationsWaitCall) Timeout(timeout string) *NotebookRuntimesOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -74201,27 +74671,27 @@ func (c *OperationsWaitCall) Timeout(timeout string) *OperationsWaitCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OperationsWaitCall) Fields(s ...googleapi.Field) *OperationsWaitCall { +func (c *NotebookRuntimesOperationsWaitCall) Fields(s ...googleapi.Field) *NotebookRuntimesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OperationsWaitCall) Context(ctx context.Context) *OperationsWaitCall { +func (c *NotebookRuntimesOperationsWaitCall) Context(ctx context.Context) *NotebookRuntimesOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *OperationsWaitCall) Header() http.Header { +func (c *NotebookRuntimesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *NotebookRuntimesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -74235,17 +74705,17 @@ func (c *OperationsWaitCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.operations.wait" call. +// Do executes the "aiplatform.notebookRuntimes.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *OperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *NotebookRuntimesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74275,11 +74745,11 @@ func (c *OperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.notebookRuntimes.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PersistentResourcesOperationsCancelCall struct { +type OnlineEvaluatorsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -74298,8 +74768,8 @@ type PersistentResourcesOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *PersistentResourcesOperationsService) Cancel(name string) *PersistentResourcesOperationsCancelCall { - c := &PersistentResourcesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *OnlineEvaluatorsOperationsService) Cancel(name string) *OnlineEvaluatorsOperationsCancelCall { + c := &OnlineEvaluatorsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -74307,27 +74777,27 @@ func (r *PersistentResourcesOperationsService) Cancel(name string) *PersistentRe // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PersistentResourcesOperationsCancelCall) Fields(s ...googleapi.Field) *PersistentResourcesOperationsCancelCall { +func (c *OnlineEvaluatorsOperationsCancelCall) Fields(s ...googleapi.Field) *OnlineEvaluatorsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PersistentResourcesOperationsCancelCall) Context(ctx context.Context) *PersistentResourcesOperationsCancelCall { +func (c *OnlineEvaluatorsOperationsCancelCall) Context(ctx context.Context) *OnlineEvaluatorsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PersistentResourcesOperationsCancelCall) Header() http.Header { +func (c *OnlineEvaluatorsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PersistentResourcesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *OnlineEvaluatorsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -74341,17 +74811,17 @@ func (c *PersistentResourcesOperationsCancelCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.persistentResources.operations.cancel" call. +// Do executes the "aiplatform.onlineEvaluators.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *PersistentResourcesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *OnlineEvaluatorsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74381,11 +74851,11 @@ func (c *PersistentResourcesOperationsCancelCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PersistentResourcesOperationsDeleteCall struct { +type OnlineEvaluatorsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -74399,8 +74869,8 @@ type PersistentResourcesOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *PersistentResourcesOperationsService) Delete(name string) *PersistentResourcesOperationsDeleteCall { - c := &PersistentResourcesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *OnlineEvaluatorsOperationsService) Delete(name string) *OnlineEvaluatorsOperationsDeleteCall { + c := &OnlineEvaluatorsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -74408,27 +74878,27 @@ func (r *PersistentResourcesOperationsService) Delete(name string) *PersistentRe // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PersistentResourcesOperationsDeleteCall) Fields(s ...googleapi.Field) *PersistentResourcesOperationsDeleteCall { +func (c *OnlineEvaluatorsOperationsDeleteCall) Fields(s ...googleapi.Field) *OnlineEvaluatorsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PersistentResourcesOperationsDeleteCall) Context(ctx context.Context) *PersistentResourcesOperationsDeleteCall { +func (c *OnlineEvaluatorsOperationsDeleteCall) Context(ctx context.Context) *OnlineEvaluatorsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PersistentResourcesOperationsDeleteCall) Header() http.Header { +func (c *OnlineEvaluatorsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PersistentResourcesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OnlineEvaluatorsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -74442,17 +74912,17 @@ func (c *PersistentResourcesOperationsDeleteCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.persistentResources.operations.delete" call. +// Do executes the "aiplatform.onlineEvaluators.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *PersistentResourcesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *OnlineEvaluatorsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74482,11 +74952,11 @@ func (c *PersistentResourcesOperationsDeleteCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PersistentResourcesOperationsGetCall struct { +type OnlineEvaluatorsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -74500,8 +74970,8 @@ type PersistentResourcesOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *PersistentResourcesOperationsService) Get(name string) *PersistentResourcesOperationsGetCall { - c := &PersistentResourcesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *OnlineEvaluatorsOperationsService) Get(name string) *OnlineEvaluatorsOperationsGetCall { + c := &OnlineEvaluatorsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -74509,7 +74979,7 @@ func (r *PersistentResourcesOperationsService) Get(name string) *PersistentResou // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PersistentResourcesOperationsGetCall) Fields(s ...googleapi.Field) *PersistentResourcesOperationsGetCall { +func (c *OnlineEvaluatorsOperationsGetCall) Fields(s ...googleapi.Field) *OnlineEvaluatorsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -74517,27 +74987,27 @@ func (c *PersistentResourcesOperationsGetCall) Fields(s ...googleapi.Field) *Per // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *PersistentResourcesOperationsGetCall) IfNoneMatch(entityTag string) *PersistentResourcesOperationsGetCall { +func (c *OnlineEvaluatorsOperationsGetCall) IfNoneMatch(entityTag string) *OnlineEvaluatorsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *PersistentResourcesOperationsGetCall) Context(ctx context.Context) *PersistentResourcesOperationsGetCall { +func (c *OnlineEvaluatorsOperationsGetCall) Context(ctx context.Context) *OnlineEvaluatorsOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PersistentResourcesOperationsGetCall) Header() http.Header { +func (c *OnlineEvaluatorsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PersistentResourcesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OnlineEvaluatorsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -74554,17 +75024,17 @@ func (c *PersistentResourcesOperationsGetCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.persistentResources.operations.get" call. +// Do executes the "aiplatform.onlineEvaluators.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *PersistentResourcesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *OnlineEvaluatorsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74594,11 +75064,11 @@ func (c *PersistentResourcesOperationsGetCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PersistentResourcesOperationsListCall struct { +type OnlineEvaluatorsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -74611,28 +75081,28 @@ type PersistentResourcesOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *PersistentResourcesOperationsService) List(name string) *PersistentResourcesOperationsListCall { - c := &PersistentResourcesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *OnlineEvaluatorsOperationsService) List(name string) *OnlineEvaluatorsOperationsListCall { + c := &OnlineEvaluatorsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *PersistentResourcesOperationsListCall) Filter(filter string) *PersistentResourcesOperationsListCall { +func (c *OnlineEvaluatorsOperationsListCall) Filter(filter string) *OnlineEvaluatorsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *PersistentResourcesOperationsListCall) PageSize(pageSize int64) *PersistentResourcesOperationsListCall { +func (c *OnlineEvaluatorsOperationsListCall) PageSize(pageSize int64) *OnlineEvaluatorsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *PersistentResourcesOperationsListCall) PageToken(pageToken string) *PersistentResourcesOperationsListCall { +func (c *OnlineEvaluatorsOperationsListCall) PageToken(pageToken string) *OnlineEvaluatorsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -74645,7 +75115,7 @@ func (c *PersistentResourcesOperationsListCall) PageToken(pageToken string) *Per // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *PersistentResourcesOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PersistentResourcesOperationsListCall { +func (c *OnlineEvaluatorsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OnlineEvaluatorsOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -74653,7 +75123,7 @@ func (c *PersistentResourcesOperationsListCall) ReturnPartialSuccess(returnParti // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PersistentResourcesOperationsListCall) Fields(s ...googleapi.Field) *PersistentResourcesOperationsListCall { +func (c *OnlineEvaluatorsOperationsListCall) Fields(s ...googleapi.Field) *OnlineEvaluatorsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -74661,27 +75131,27 @@ func (c *PersistentResourcesOperationsListCall) Fields(s ...googleapi.Field) *Pe // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *PersistentResourcesOperationsListCall) IfNoneMatch(entityTag string) *PersistentResourcesOperationsListCall { +func (c *OnlineEvaluatorsOperationsListCall) IfNoneMatch(entityTag string) *OnlineEvaluatorsOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *PersistentResourcesOperationsListCall) Context(ctx context.Context) *PersistentResourcesOperationsListCall { +func (c *OnlineEvaluatorsOperationsListCall) Context(ctx context.Context) *OnlineEvaluatorsOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PersistentResourcesOperationsListCall) Header() http.Header { +func (c *OnlineEvaluatorsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PersistentResourcesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OnlineEvaluatorsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -74698,17 +75168,17 @@ func (c *PersistentResourcesOperationsListCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.persistentResources.operations.list" call. +// Do executes the "aiplatform.onlineEvaluators.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *PersistentResourcesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *OnlineEvaluatorsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74738,14 +75208,14 @@ func (c *PersistentResourcesOperationsListCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *PersistentResourcesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *OnlineEvaluatorsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -74763,7 +75233,7 @@ func (c *PersistentResourcesOperationsListCall) Pages(ctx context.Context, f fun } } -type PersistentResourcesOperationsWaitCall struct { +type OnlineEvaluatorsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -74782,8 +75252,8 @@ type PersistentResourcesOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *PersistentResourcesOperationsService) Wait(name string) *PersistentResourcesOperationsWaitCall { - c := &PersistentResourcesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *OnlineEvaluatorsOperationsService) Wait(name string) *OnlineEvaluatorsOperationsWaitCall { + c := &OnlineEvaluatorsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -74792,7 +75262,7 @@ func (r *PersistentResourcesOperationsService) Wait(name string) *PersistentReso // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *PersistentResourcesOperationsWaitCall) Timeout(timeout string) *PersistentResourcesOperationsWaitCall { +func (c *OnlineEvaluatorsOperationsWaitCall) Timeout(timeout string) *OnlineEvaluatorsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -74800,27 +75270,27 @@ func (c *PersistentResourcesOperationsWaitCall) Timeout(timeout string) *Persist // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PersistentResourcesOperationsWaitCall) Fields(s ...googleapi.Field) *PersistentResourcesOperationsWaitCall { +func (c *OnlineEvaluatorsOperationsWaitCall) Fields(s ...googleapi.Field) *OnlineEvaluatorsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PersistentResourcesOperationsWaitCall) Context(ctx context.Context) *PersistentResourcesOperationsWaitCall { +func (c *OnlineEvaluatorsOperationsWaitCall) Context(ctx context.Context) *OnlineEvaluatorsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PersistentResourcesOperationsWaitCall) Header() http.Header { +func (c *OnlineEvaluatorsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PersistentResourcesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *OnlineEvaluatorsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -74834,17 +75304,17 @@ func (c *PersistentResourcesOperationsWaitCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.persistentResources.operations.wait" call. +// Do executes the "aiplatform.onlineEvaluators.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *PersistentResourcesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *OnlineEvaluatorsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74874,11 +75344,11 @@ func (c *PersistentResourcesOperationsWaitCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.onlineEvaluators.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PipelineJobsOperationsCancelCall struct { +type OperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -74897,8 +75367,8 @@ type PipelineJobsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *PipelineJobsOperationsService) Cancel(name string) *PipelineJobsOperationsCancelCall { - c := &PipelineJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *OperationsService) Cancel(name string) *OperationsCancelCall { + c := &OperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -74906,27 +75376,27 @@ func (r *PipelineJobsOperationsService) Cancel(name string) *PipelineJobsOperati // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PipelineJobsOperationsCancelCall) Fields(s ...googleapi.Field) *PipelineJobsOperationsCancelCall { +func (c *OperationsCancelCall) Fields(s ...googleapi.Field) *OperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PipelineJobsOperationsCancelCall) Context(ctx context.Context) *PipelineJobsOperationsCancelCall { +func (c *OperationsCancelCall) Context(ctx context.Context) *OperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PipelineJobsOperationsCancelCall) Header() http.Header { +func (c *OperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PipelineJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *OperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -74940,17 +75410,17 @@ func (c *PipelineJobsOperationsCancelCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.pipelineJobs.operations.cancel" call. +// Do executes the "aiplatform.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *PipelineJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *OperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74980,11 +75450,11 @@ func (c *PipelineJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Go if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PipelineJobsOperationsDeleteCall struct { +type OperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -74998,8 +75468,8 @@ type PipelineJobsOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *PipelineJobsOperationsService) Delete(name string) *PipelineJobsOperationsDeleteCall { - c := &PipelineJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *OperationsService) Delete(name string) *OperationsDeleteCall { + c := &OperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -75007,27 +75477,27 @@ func (r *PipelineJobsOperationsService) Delete(name string) *PipelineJobsOperati // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PipelineJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *PipelineJobsOperationsDeleteCall { +func (c *OperationsDeleteCall) Fields(s ...googleapi.Field) *OperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PipelineJobsOperationsDeleteCall) Context(ctx context.Context) *PipelineJobsOperationsDeleteCall { +func (c *OperationsDeleteCall) Context(ctx context.Context) *OperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PipelineJobsOperationsDeleteCall) Header() http.Header { +func (c *OperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PipelineJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -75041,17 +75511,17 @@ func (c *PipelineJobsOperationsDeleteCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.pipelineJobs.operations.delete" call. +// Do executes the "aiplatform.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *PipelineJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *OperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75081,11 +75551,11 @@ func (c *PipelineJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Go if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PipelineJobsOperationsGetCall struct { +type OperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -75099,8 +75569,8 @@ type PipelineJobsOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *PipelineJobsOperationsService) Get(name string) *PipelineJobsOperationsGetCall { - c := &PipelineJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *OperationsService) Get(name string) *OperationsGetCall { + c := &OperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -75108,7 +75578,7 @@ func (r *PipelineJobsOperationsService) Get(name string) *PipelineJobsOperations // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PipelineJobsOperationsGetCall) Fields(s ...googleapi.Field) *PipelineJobsOperationsGetCall { +func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -75116,27 +75586,27 @@ func (c *PipelineJobsOperationsGetCall) Fields(s ...googleapi.Field) *PipelineJo // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *PipelineJobsOperationsGetCall) IfNoneMatch(entityTag string) *PipelineJobsOperationsGetCall { +func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *PipelineJobsOperationsGetCall) Context(ctx context.Context) *PipelineJobsOperationsGetCall { +func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PipelineJobsOperationsGetCall) Header() http.Header { +func (c *OperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PipelineJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -75153,17 +75623,17 @@ func (c *PipelineJobsOperationsGetCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.pipelineJobs.operations.get" call. +// Do executes the "aiplatform.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *PipelineJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75193,13 +75663,12 @@ func (c *PipelineJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Googl if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PipelineJobsOperationsListCall struct { +type OperationsListCall struct { s *Service - name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context @@ -75208,30 +75677,34 @@ type PipelineJobsOperationsListCall struct { // List: Lists operations that match the specified filter in the request. If // the server doesn't support this method, it returns `UNIMPLEMENTED`. -// -// - name: The name of the operation's parent resource. -func (r *PipelineJobsOperationsService) List(name string) *PipelineJobsOperationsListCall { - c := &PipelineJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +func (r *OperationsService) List() *OperationsListCall { + c := &OperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *PipelineJobsOperationsListCall) Filter(filter string) *PipelineJobsOperationsListCall { +func (c *OperationsListCall) Filter(filter string) *OperationsListCall { c.urlParams_.Set("filter", filter) return c } +// Name sets the optional parameter "name": The name of the operation's parent +// resource. +func (c *OperationsListCall) Name(name string) *OperationsListCall { + c.urlParams_.Set("name", name) + return c +} + // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *PipelineJobsOperationsListCall) PageSize(pageSize int64) *PipelineJobsOperationsListCall { +func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *PipelineJobsOperationsListCall) PageToken(pageToken string) *PipelineJobsOperationsListCall { +func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -75244,7 +75717,7 @@ func (c *PipelineJobsOperationsListCall) PageToken(pageToken string) *PipelineJo // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *PipelineJobsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PipelineJobsOperationsListCall { +func (c *OperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -75252,7 +75725,7 @@ func (c *PipelineJobsOperationsListCall) ReturnPartialSuccess(returnPartialSucce // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PipelineJobsOperationsListCall) Fields(s ...googleapi.Field) *PipelineJobsOperationsListCall { +func (c *OperationsListCall) Fields(s ...googleapi.Field) *OperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -75260,54 +75733,51 @@ func (c *PipelineJobsOperationsListCall) Fields(s ...googleapi.Field) *PipelineJ // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *PipelineJobsOperationsListCall) IfNoneMatch(entityTag string) *PipelineJobsOperationsListCall { +func (c *OperationsListCall) IfNoneMatch(entityTag string) *OperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *PipelineJobsOperationsListCall) Context(ctx context.Context) *PipelineJobsOperationsListCall { +func (c *OperationsListCall) Context(ctx context.Context) *OperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PipelineJobsOperationsListCall) Header() http.Header { +func (c *OperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PipelineJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.pipelineJobs.operations.list" call. +// Do executes the "aiplatform.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *PipelineJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75337,14 +75807,14 @@ func (c *PipelineJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*Goog if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *PipelineJobsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *OperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -75362,7 +75832,7 @@ func (c *PipelineJobsOperationsListCall) Pages(ctx context.Context, f func(*Goog } } -type PipelineJobsOperationsWaitCall struct { +type OperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -75381,8 +75851,8 @@ type PipelineJobsOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *PipelineJobsOperationsService) Wait(name string) *PipelineJobsOperationsWaitCall { - c := &PipelineJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *OperationsService) Wait(name string) *OperationsWaitCall { + c := &OperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -75391,7 +75861,7 @@ func (r *PipelineJobsOperationsService) Wait(name string) *PipelineJobsOperation // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *PipelineJobsOperationsWaitCall) Timeout(timeout string) *PipelineJobsOperationsWaitCall { +func (c *OperationsWaitCall) Timeout(timeout string) *OperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -75399,27 +75869,27 @@ func (c *PipelineJobsOperationsWaitCall) Timeout(timeout string) *PipelineJobsOp // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PipelineJobsOperationsWaitCall) Fields(s ...googleapi.Field) *PipelineJobsOperationsWaitCall { +func (c *OperationsWaitCall) Fields(s ...googleapi.Field) *OperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PipelineJobsOperationsWaitCall) Context(ctx context.Context) *PipelineJobsOperationsWaitCall { +func (c *OperationsWaitCall) Context(ctx context.Context) *OperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PipelineJobsOperationsWaitCall) Header() http.Header { +func (c *OperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PipelineJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *OperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -75433,17 +75903,17 @@ func (c *PipelineJobsOperationsWaitCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.pipelineJobs.operations.wait" call. +// Do executes the "aiplatform.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *PipelineJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *OperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75473,25 +75943,31 @@ func (c *PipelineJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*Goog if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsGetCacheConfigCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type PersistentResourcesOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetCacheConfig: Gets a GenAI cache config. +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of `1`, corresponding to +// `Code.CANCELLED`. // -// - name: Name of the cache config. Format: - -// `projects/{project}/cacheConfig`. -func (r *ProjectsService) GetCacheConfig(name string) *ProjectsGetCacheConfigCall { - c := &ProjectsGetCacheConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be cancelled. +func (r *PersistentResourcesOperationsService) Cancel(name string) *PersistentResourcesOperationsCancelCall { + c := &PersistentResourcesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -75499,44 +75975,134 @@ func (r *ProjectsService) GetCacheConfig(name string) *ProjectsGetCacheConfigCal // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsGetCacheConfigCall) Fields(s ...googleapi.Field) *ProjectsGetCacheConfigCall { +func (c *PersistentResourcesOperationsCancelCall) Fields(s ...googleapi.Field) *PersistentResourcesOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsGetCacheConfigCall) IfNoneMatch(entityTag string) *ProjectsGetCacheConfigCall { - c.ifNoneMatch_ = entityTag +// Context sets the context to be used in this call's Do method. +func (c *PersistentResourcesOperationsCancelCall) Context(ctx context.Context) *PersistentResourcesOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *PersistentResourcesOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PersistentResourcesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.persistentResources.operations.cancel" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *PersistentResourcesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.cancel", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type PersistentResourcesOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *PersistentResourcesOperationsService) Delete(name string) *PersistentResourcesOperationsDeleteCall { + c := &PersistentResourcesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *PersistentResourcesOperationsDeleteCall) Fields(s ...googleapi.Field) *PersistentResourcesOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsGetCacheConfigCall) Context(ctx context.Context) *ProjectsGetCacheConfigCall { +func (c *PersistentResourcesOperationsDeleteCall) Context(ctx context.Context) *PersistentResourcesOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsGetCacheConfigCall) Header() http.Header { +func (c *PersistentResourcesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsGetCacheConfigCall) doRequest(alt string) (*http.Response, error) { +func (c *PersistentResourcesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } @@ -75544,17 +76110,17 @@ func (c *ProjectsGetCacheConfigCall) doRequest(alt string) (*http.Response, erro googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.getCacheConfig", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.getCacheConfig" call. +// Do executes the "aiplatform.persistentResources.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1CacheConfig.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 *ProjectsGetCacheConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1CacheConfig, error) { +// *GoogleProtobufEmpty.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 *PersistentResourcesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75573,7 +76139,7 @@ func (c *ProjectsGetCacheConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1CacheConfig{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -75584,64 +76150,71 @@ func (c *ProjectsGetCacheConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCl if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.getCacheConfig", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsUpdateCacheConfigCall struct { - s *Service - name string - googlecloudaiplatformv1cacheconfig *GoogleCloudAiplatformV1CacheConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PersistentResourcesOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// UpdateCacheConfig: Updates a cache config. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // -// - name: Identifier. Name of the cache config. Format: - -// `projects/{project}/cacheConfig`. -func (r *ProjectsService) UpdateCacheConfig(name string, googlecloudaiplatformv1cacheconfig *GoogleCloudAiplatformV1CacheConfig) *ProjectsUpdateCacheConfigCall { - c := &ProjectsUpdateCacheConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *PersistentResourcesOperationsService) Get(name string) *PersistentResourcesOperationsGetCall { + c := &PersistentResourcesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1cacheconfig = googlecloudaiplatformv1cacheconfig return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsUpdateCacheConfigCall) Fields(s ...googleapi.Field) *ProjectsUpdateCacheConfigCall { +func (c *PersistentResourcesOperationsGetCall) Fields(s ...googleapi.Field) *PersistentResourcesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *PersistentResourcesOperationsGetCall) IfNoneMatch(entityTag string) *PersistentResourcesOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsUpdateCacheConfigCall) Context(ctx context.Context) *ProjectsUpdateCacheConfigCall { +func (c *PersistentResourcesOperationsGetCall) Context(ctx context.Context) *PersistentResourcesOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsUpdateCacheConfigCall) Header() http.Header { +func (c *PersistentResourcesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsUpdateCacheConfigCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1cacheconfig) - if err != nil { - return nil, err +func (c *PersistentResourcesOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -75649,17 +76222,17 @@ func (c *ProjectsUpdateCacheConfigCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.updateCacheConfig", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.updateCacheConfig" call. +// Do executes the "aiplatform.persistentResources.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsUpdateCacheConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *PersistentResourcesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75689,83 +76262,121 @@ func (c *ProjectsUpdateCacheConfigCall) Do(opts ...googleapi.CallOption) (*Googl if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.updateCacheConfig", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAskContextsCall struct { - s *Service - parent string - googlecloudaiplatformv1askcontextsrequest *GoogleCloudAiplatformV1AskContextsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PersistentResourcesOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// AskContexts: Agentic Retrieval Ask API for RAG. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. // -// - parent: The resource name of the Location from which to retrieve -// RagContexts. The users must have permission to make a call in the project. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsService) AskContexts(parent string, googlecloudaiplatformv1askcontextsrequest *GoogleCloudAiplatformV1AskContextsRequest) *ProjectsLocationsAskContextsCall { - c := &ProjectsLocationsAskContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1askcontextsrequest = googlecloudaiplatformv1askcontextsrequest +// - name: The name of the operation's parent resource. +func (r *PersistentResourcesOperationsService) List(name string) *PersistentResourcesOperationsListCall { + c := &PersistentResourcesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *PersistentResourcesOperationsListCall) Filter(filter string) *PersistentResourcesOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *PersistentResourcesOperationsListCall) PageSize(pageSize int64) *PersistentResourcesOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *PersistentResourcesOperationsListCall) PageToken(pageToken string) *PersistentResourcesOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// ListOperationsResponse.unreachable field. This can only be `true` when +// reading across collections. For example, when `parent` is set to +// "projects/example/locations/-". This field is not supported by default and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *PersistentResourcesOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PersistentResourcesOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAskContextsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAskContextsCall { +func (c *PersistentResourcesOperationsListCall) Fields(s ...googleapi.Field) *PersistentResourcesOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *PersistentResourcesOperationsListCall) IfNoneMatch(entityTag string) *PersistentResourcesOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAskContextsCall) Context(ctx context.Context) *ProjectsLocationsAskContextsCall { +func (c *PersistentResourcesOperationsListCall) Context(ctx context.Context) *PersistentResourcesOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAskContextsCall) Header() http.Header { +func (c *PersistentResourcesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAskContextsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1askcontextsrequest) - if err != nil { - return nil, err +func (c *PersistentResourcesOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:askContexts") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.askContexts", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.askContexts" call. +// Do executes the "aiplatform.persistentResources.operations.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1AskContextsResponse.ServerResponse.Header or (if a +// *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsAskContextsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1AskContextsResponse, error) { +func (c *PersistentResourcesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75784,7 +76395,7 @@ func (c *ProjectsLocationsAskContextsCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1AskContextsResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -75795,84 +76406,113 @@ func (c *ProjectsLocationsAskContextsCall) Do(opts ...googleapi.CallOption) (*Go if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.askContexts", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAsyncRetrieveContextsCall struct { - s *Service - parent string - googlecloudaiplatformv1asyncretrievecontextsrequest *GoogleCloudAiplatformV1AsyncRetrieveContextsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *PersistentResourcesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// AsyncRetrieveContexts: Asynchronous API to retrieves relevant contexts for a -// query. +type PersistentResourcesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or reaches at +// most a specified timeout, returning the latest state. If the operation is +// already done, the latest state is immediately returned. If the timeout +// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout +// is used. If the server does not support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort +// basis. It may return the latest state before the specified timeout +// (including immediately), meaning even an immediate response is no guarantee +// that the operation is done. // -// - parent: The resource name of the Location from which to retrieve -// RagContexts. The users must have permission to make a call in the project. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsService) AsyncRetrieveContexts(parent string, googlecloudaiplatformv1asyncretrievecontextsrequest *GoogleCloudAiplatformV1AsyncRetrieveContextsRequest) *ProjectsLocationsAsyncRetrieveContextsCall { - c := &ProjectsLocationsAsyncRetrieveContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1asyncretrievecontextsrequest = googlecloudaiplatformv1asyncretrievecontextsrequest +// - name: The name of the operation resource to wait on. +func (r *PersistentResourcesOperationsService) Wait(name string) *PersistentResourcesOperationsWaitCall { + c := &PersistentResourcesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration to wait +// before timing out. If left blank, the wait will be at most the time +// permitted by the underlying HTTP/RPC protocol. If RPC context deadline is +// also specified, the shorter one will be used. +func (c *PersistentResourcesOperationsWaitCall) Timeout(timeout string) *PersistentResourcesOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAsyncRetrieveContextsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAsyncRetrieveContextsCall { +func (c *PersistentResourcesOperationsWaitCall) Fields(s ...googleapi.Field) *PersistentResourcesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAsyncRetrieveContextsCall) Context(ctx context.Context) *ProjectsLocationsAsyncRetrieveContextsCall { +func (c *PersistentResourcesOperationsWaitCall) Context(ctx context.Context) *PersistentResourcesOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAsyncRetrieveContextsCall) Header() http.Header { +func (c *PersistentResourcesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAsyncRetrieveContextsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1asyncretrievecontextsrequest) - if err != nil { - return nil, err - } +func (c *PersistentResourcesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:asyncRetrieveContexts") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("POST", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.asyncRetrieveContexts", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.asyncRetrieveContexts" call. +// Do executes the "aiplatform.persistentResources.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsAsyncRetrieveContextsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *PersistentResourcesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75902,84 +76542,83 @@ func (c *ProjectsLocationsAsyncRetrieveContextsCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.asyncRetrieveContexts", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.persistentResources.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsAugmentPromptCall struct { - s *Service - parent string - googlecloudaiplatformv1augmentpromptrequest *GoogleCloudAiplatformV1AugmentPromptRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PipelineJobsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// AugmentPrompt: Given an input prompt, it returns augmented prompt from -// vertex rag store to guide LLM towards generating grounded responses. +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of `1`, corresponding to +// `Code.CANCELLED`. // -// - parent: The resource name of the Location from which to augment prompt. -// The users must have permission to make a call in the project. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsService) AugmentPrompt(parent string, googlecloudaiplatformv1augmentpromptrequest *GoogleCloudAiplatformV1AugmentPromptRequest) *ProjectsLocationsAugmentPromptCall { - c := &ProjectsLocationsAugmentPromptCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1augmentpromptrequest = googlecloudaiplatformv1augmentpromptrequest +// - name: The name of the operation resource to be cancelled. +func (r *PipelineJobsOperationsService) Cancel(name string) *PipelineJobsOperationsCancelCall { + c := &PipelineJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsAugmentPromptCall) Fields(s ...googleapi.Field) *ProjectsLocationsAugmentPromptCall { +func (c *PipelineJobsOperationsCancelCall) Fields(s ...googleapi.Field) *PipelineJobsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsAugmentPromptCall) Context(ctx context.Context) *ProjectsLocationsAugmentPromptCall { +func (c *PipelineJobsOperationsCancelCall) Context(ctx context.Context) *PipelineJobsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsAugmentPromptCall) Header() http.Header { +func (c *PipelineJobsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsAugmentPromptCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1augmentpromptrequest) - if err != nil { - return nil, err - } +func (c *PipelineJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:augmentPrompt") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("POST", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.augmentPrompt", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.augmentPrompt" call. +// Do executes the "aiplatform.pipelineJobs.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1AugmentPromptResponse.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 *ProjectsLocationsAugmentPromptCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1AugmentPromptResponse, error) { +// *GoogleProtobufEmpty.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 *PipelineJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75998,7 +76637,7 @@ func (c *ProjectsLocationsAugmentPromptCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1AugmentPromptResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76009,85 +76648,78 @@ func (c *ProjectsLocationsAugmentPromptCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.augmentPrompt", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsCorroborateContentCall struct { - s *Service - parent string - googlecloudaiplatformv1corroboratecontentrequest *GoogleCloudAiplatformV1CorroborateContentRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PipelineJobsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// CorroborateContent: Given an input text, it returns a score that evaluates -// the factuality of the text. It also extracts and returns claims from the -// text and provides supporting facts. +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. // -// - parent: The resource name of the Location from which to corroborate text. -// The users must have permission to make a call in the project. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsService) CorroborateContent(parent string, googlecloudaiplatformv1corroboratecontentrequest *GoogleCloudAiplatformV1CorroborateContentRequest) *ProjectsLocationsCorroborateContentCall { - c := &ProjectsLocationsCorroborateContentCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1corroboratecontentrequest = googlecloudaiplatformv1corroboratecontentrequest +// - name: The name of the operation resource to be deleted. +func (r *PipelineJobsOperationsService) Delete(name string) *PipelineJobsOperationsDeleteCall { + c := &PipelineJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsCorroborateContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsCorroborateContentCall { +func (c *PipelineJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *PipelineJobsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsCorroborateContentCall) Context(ctx context.Context) *ProjectsLocationsCorroborateContentCall { +func (c *PipelineJobsOperationsDeleteCall) Context(ctx context.Context) *PipelineJobsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsCorroborateContentCall) Header() http.Header { +func (c *PipelineJobsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCorroborateContentCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1corroboratecontentrequest) - if err != nil { - return nil, err - } +func (c *PipelineJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:corroborateContent") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.corroborateContent", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.corroborateContent" call. +// Do executes the "aiplatform.pipelineJobs.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1CorroborateContentResponse.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 *ProjectsLocationsCorroborateContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1CorroborateContentResponse, error) { +// *GoogleProtobufEmpty.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 *PipelineJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76106,7 +76738,7 @@ func (c *ProjectsLocationsCorroborateContentCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1CorroborateContentResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76117,82 +76749,89 @@ func (c *ProjectsLocationsCorroborateContentCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.corroborateContent", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsDeployCall struct { - s *Service - destination string - googlecloudaiplatformv1deployrequest *GoogleCloudAiplatformV1DeployRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PipelineJobsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Deploy: Deploys a model to a new endpoint. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // -// - destination: The resource name of the Location to deploy the model in. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsService) Deploy(destination string, googlecloudaiplatformv1deployrequest *GoogleCloudAiplatformV1DeployRequest) *ProjectsLocationsDeployCall { - c := &ProjectsLocationsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.destination = destination - c.googlecloudaiplatformv1deployrequest = googlecloudaiplatformv1deployrequest +// - name: The name of the operation resource. +func (r *PipelineJobsOperationsService) Get(name string) *PipelineJobsOperationsGetCall { + c := &PipelineJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsDeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeployCall { +func (c *PipelineJobsOperationsGetCall) Fields(s ...googleapi.Field) *PipelineJobsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *PipelineJobsOperationsGetCall) IfNoneMatch(entityTag string) *PipelineJobsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsDeployCall) Context(ctx context.Context) *ProjectsLocationsDeployCall { +func (c *PipelineJobsOperationsGetCall) Context(ctx context.Context) *PipelineJobsOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsDeployCall) Header() http.Header { +func (c *PipelineJobsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeployCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1deployrequest) - if err != nil { - return nil, err +func (c *PipelineJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+destination}:deploy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "destination": c.destination, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.deploy", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploy" call. +// Do executes the "aiplatform.pipelineJobs.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *PipelineJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76222,82 +76861,121 @@ func (c *ProjectsLocationsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleL if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.deploy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsEvaluateDatasetCall struct { - s *Service - location string - googlecloudaiplatformv1evaluatedatasetrequest *GoogleCloudAiplatformV1EvaluateDatasetRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PipelineJobsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// EvaluateDataset: Evaluates a dataset based on a set of given metrics. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. // -// - location: The resource name of the Location to evaluate the dataset. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsService) EvaluateDataset(location string, googlecloudaiplatformv1evaluatedatasetrequest *GoogleCloudAiplatformV1EvaluateDatasetRequest) *ProjectsLocationsEvaluateDatasetCall { - c := &ProjectsLocationsEvaluateDatasetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.location = location - c.googlecloudaiplatformv1evaluatedatasetrequest = googlecloudaiplatformv1evaluatedatasetrequest +// - name: The name of the operation's parent resource. +func (r *PipelineJobsOperationsService) List(name string) *PipelineJobsOperationsListCall { + c := &PipelineJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *PipelineJobsOperationsListCall) Filter(filter string) *PipelineJobsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *PipelineJobsOperationsListCall) PageSize(pageSize int64) *PipelineJobsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *PipelineJobsOperationsListCall) PageToken(pageToken string) *PipelineJobsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// ListOperationsResponse.unreachable field. This can only be `true` when +// reading across collections. For example, when `parent` is set to +// "projects/example/locations/-". This field is not supported by default and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *PipelineJobsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PipelineJobsOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsEvaluateDatasetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluateDatasetCall { +func (c *PipelineJobsOperationsListCall) Fields(s ...googleapi.Field) *PipelineJobsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *PipelineJobsOperationsListCall) IfNoneMatch(entityTag string) *PipelineJobsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEvaluateDatasetCall) Context(ctx context.Context) *ProjectsLocationsEvaluateDatasetCall { +func (c *PipelineJobsOperationsListCall) Context(ctx context.Context) *PipelineJobsOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsEvaluateDatasetCall) Header() http.Header { +func (c *PipelineJobsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluateDatasetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1evaluatedatasetrequest) - if err != nil { - return nil, err +func (c *PipelineJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:evaluateDataset") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "location": c.location, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluateDataset", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.evaluateDataset" call. +// Do executes the "aiplatform.pipelineJobs.operations.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsEvaluateDatasetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *PipelineJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76316,7 +76994,7 @@ func (c *ProjectsLocationsEvaluateDatasetCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76327,82 +77005,113 @@ func (c *ProjectsLocationsEvaluateDatasetCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluateDataset", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsEvaluateInstancesCall struct { - s *Service - location string - googlecloudaiplatformv1evaluateinstancesrequest *GoogleCloudAiplatformV1EvaluateInstancesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *PipelineJobsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// EvaluateInstances: Evaluates instances based on a given metric. +type PipelineJobsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or reaches at +// most a specified timeout, returning the latest state. If the operation is +// already done, the latest state is immediately returned. If the timeout +// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout +// is used. If the server does not support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort +// basis. It may return the latest state before the specified timeout +// (including immediately), meaning even an immediate response is no guarantee +// that the operation is done. // -// - location: The resource name of the Location to evaluate the instances. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsService) EvaluateInstances(location string, googlecloudaiplatformv1evaluateinstancesrequest *GoogleCloudAiplatformV1EvaluateInstancesRequest) *ProjectsLocationsEvaluateInstancesCall { - c := &ProjectsLocationsEvaluateInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.location = location - c.googlecloudaiplatformv1evaluateinstancesrequest = googlecloudaiplatformv1evaluateinstancesrequest +// - name: The name of the operation resource to wait on. +func (r *PipelineJobsOperationsService) Wait(name string) *PipelineJobsOperationsWaitCall { + c := &PipelineJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration to wait +// before timing out. If left blank, the wait will be at most the time +// permitted by the underlying HTTP/RPC protocol. If RPC context deadline is +// also specified, the shorter one will be used. +func (c *PipelineJobsOperationsWaitCall) Timeout(timeout string) *PipelineJobsOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsEvaluateInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluateInstancesCall { +func (c *PipelineJobsOperationsWaitCall) Fields(s ...googleapi.Field) *PipelineJobsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEvaluateInstancesCall) Context(ctx context.Context) *ProjectsLocationsEvaluateInstancesCall { +func (c *PipelineJobsOperationsWaitCall) Context(ctx context.Context) *PipelineJobsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsEvaluateInstancesCall) Header() http.Header { +func (c *PipelineJobsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluateInstancesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1evaluateinstancesrequest) - if err != nil { - return nil, err - } +func (c *PipelineJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:evaluateInstances") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("POST", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "location": c.location, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluateInstances", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.evaluateInstances" call. +// Do executes the "aiplatform.pipelineJobs.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1EvaluateInstancesResponse.ServerResponse.Header or -// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleLongrunningOperation.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 *ProjectsLocationsEvaluateInstancesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EvaluateInstancesResponse, error) { +func (c *PipelineJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76421,7 +77130,7 @@ func (c *ProjectsLocationsEvaluateInstancesCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1EvaluateInstancesResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76432,88 +77141,88 @@ func (c *ProjectsLocationsEvaluateInstancesCall) Do(opts ...googleapi.CallOption if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluateInstances", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.pipelineJobs.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGenerateInstanceRubricsCall struct { - s *Service - location string - googlecloudaiplatformv1generateinstancerubricsrequest *GoogleCloudAiplatformV1GenerateInstanceRubricsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsGetCacheConfigCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// GenerateInstanceRubrics: Generates rubrics for a given prompt. A rubric -// represents a single testable criterion for evaluation. One input prompt -// could have multiple rubrics This RPC allows users to get suggested rubrics -// based on provided prompt, which can then be reviewed and used for subsequent -// evaluations. +// GetCacheConfig: Gets a GenAI cache config. // -// - location: The resource name of the Location to generate rubrics from. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsService) GenerateInstanceRubrics(location string, googlecloudaiplatformv1generateinstancerubricsrequest *GoogleCloudAiplatformV1GenerateInstanceRubricsRequest) *ProjectsLocationsGenerateInstanceRubricsCall { - c := &ProjectsLocationsGenerateInstanceRubricsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.location = location - c.googlecloudaiplatformv1generateinstancerubricsrequest = googlecloudaiplatformv1generateinstancerubricsrequest +// - name: Name of the cache config. Format: - +// `projects/{project}/cacheConfig`. +func (r *ProjectsService) GetCacheConfig(name string) *ProjectsGetCacheConfigCall { + c := &ProjectsGetCacheConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGenerateInstanceRubricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGenerateInstanceRubricsCall { +func (c *ProjectsGetCacheConfigCall) Fields(s ...googleapi.Field) *ProjectsGetCacheConfigCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsGetCacheConfigCall) IfNoneMatch(entityTag string) *ProjectsGetCacheConfigCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGenerateInstanceRubricsCall) Context(ctx context.Context) *ProjectsLocationsGenerateInstanceRubricsCall { +func (c *ProjectsGetCacheConfigCall) Context(ctx context.Context) *ProjectsGetCacheConfigCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsGenerateInstanceRubricsCall) Header() http.Header { +func (c *ProjectsGetCacheConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGenerateInstanceRubricsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1generateinstancerubricsrequest) - if err != nil { - return nil, err +func (c *ProjectsGetCacheConfigCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:generateInstanceRubrics") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "location": c.location, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.generateInstanceRubrics", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.getCacheConfig", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.generateInstanceRubrics" call. +// Do executes the "aiplatform.projects.getCacheConfig" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1GenerateInstanceRubricsResponse.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 +// *GoogleCloudAiplatformV1CacheConfig.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 *ProjectsLocationsGenerateInstanceRubricsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1GenerateInstanceRubricsResponse, error) { +func (c *ProjectsGetCacheConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1CacheConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76532,7 +77241,7 @@ func (c *ProjectsLocationsGenerateInstanceRubricsCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1GenerateInstanceRubricsResponse{ + ret := &GoogleCloudAiplatformV1CacheConfig{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76543,83 +77252,82 @@ func (c *ProjectsLocationsGenerateInstanceRubricsCall) Do(opts ...googleapi.Call if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.generateInstanceRubrics", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.getCacheConfig", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGenerateLossClustersCall struct { - s *Service - location string - googlecloudaiplatformv1generatelossclustersrequest *GoogleCloudAiplatformV1GenerateLossClustersRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsUpdateCacheConfigCall struct { + s *Service + name string + googlecloudaiplatformv1cacheconfig *GoogleCloudAiplatformV1CacheConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GenerateLossClusters: Generates loss clusters from evaluation results. This -// is a statelss API method that would not modify the EvaluationSet resource. +// UpdateCacheConfig: Updates a cache config. // -// - location: The resource name of the Location. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsService) GenerateLossClusters(location string, googlecloudaiplatformv1generatelossclustersrequest *GoogleCloudAiplatformV1GenerateLossClustersRequest) *ProjectsLocationsGenerateLossClustersCall { - c := &ProjectsLocationsGenerateLossClustersCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.location = location - c.googlecloudaiplatformv1generatelossclustersrequest = googlecloudaiplatformv1generatelossclustersrequest +// - name: Identifier. Name of the cache config. Format: - +// `projects/{project}/cacheConfig`. +func (r *ProjectsService) UpdateCacheConfig(name string, googlecloudaiplatformv1cacheconfig *GoogleCloudAiplatformV1CacheConfig) *ProjectsUpdateCacheConfigCall { + c := &ProjectsUpdateCacheConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1cacheconfig = googlecloudaiplatformv1cacheconfig return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGenerateLossClustersCall) Fields(s ...googleapi.Field) *ProjectsLocationsGenerateLossClustersCall { +func (c *ProjectsUpdateCacheConfigCall) Fields(s ...googleapi.Field) *ProjectsUpdateCacheConfigCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGenerateLossClustersCall) Context(ctx context.Context) *ProjectsLocationsGenerateLossClustersCall { +func (c *ProjectsUpdateCacheConfigCall) Context(ctx context.Context) *ProjectsUpdateCacheConfigCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsGenerateLossClustersCall) Header() http.Header { +func (c *ProjectsUpdateCacheConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGenerateLossClustersCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsUpdateCacheConfigCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1generatelossclustersrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1cacheconfig) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:generateLossClusters") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "location": c.location, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.generateLossClusters", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.updateCacheConfig", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.generateLossClusters" call. +// Do executes the "aiplatform.projects.updateCacheConfig" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsGenerateLossClustersCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsUpdateCacheConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76649,65 +77357,63 @@ func (c *ProjectsLocationsGenerateLossClustersCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.generateLossClusters", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.updateCacheConfig", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGenerateSyntheticDataCall struct { - s *Service - location string - googlecloudaiplatformv1generatesyntheticdatarequest *GoogleCloudAiplatformV1GenerateSyntheticDataRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAskContextsCall struct { + s *Service + parent string + googlecloudaiplatformv1askcontextsrequest *GoogleCloudAiplatformV1AskContextsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GenerateSyntheticData: Generates synthetic (artificial) data based on a -// description +// AskContexts: Agentic Retrieval Ask API for RAG. // -// - location: The geographic location where the synthetic data generation -// request is processed. This should be in the format -// `projects/{project}/locations/{location}`. For example, -// `projects/my-project/locations/us-central1`. -func (r *ProjectsLocationsService) GenerateSyntheticData(location string, googlecloudaiplatformv1generatesyntheticdatarequest *GoogleCloudAiplatformV1GenerateSyntheticDataRequest) *ProjectsLocationsGenerateSyntheticDataCall { - c := &ProjectsLocationsGenerateSyntheticDataCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.location = location - c.googlecloudaiplatformv1generatesyntheticdatarequest = googlecloudaiplatformv1generatesyntheticdatarequest +// - parent: The resource name of the Location from which to retrieve +// RagContexts. The users must have permission to make a call in the project. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsService) AskContexts(parent string, googlecloudaiplatformv1askcontextsrequest *GoogleCloudAiplatformV1AskContextsRequest) *ProjectsLocationsAskContextsCall { + c := &ProjectsLocationsAskContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1askcontextsrequest = googlecloudaiplatformv1askcontextsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGenerateSyntheticDataCall) Fields(s ...googleapi.Field) *ProjectsLocationsGenerateSyntheticDataCall { +func (c *ProjectsLocationsAskContextsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAskContextsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGenerateSyntheticDataCall) Context(ctx context.Context) *ProjectsLocationsGenerateSyntheticDataCall { +func (c *ProjectsLocationsAskContextsCall) Context(ctx context.Context) *ProjectsLocationsAskContextsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsGenerateSyntheticDataCall) Header() http.Header { +func (c *ProjectsLocationsAskContextsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGenerateSyntheticDataCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAskContextsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1generatesyntheticdatarequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1askcontextsrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:generateSyntheticData") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:askContexts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -76715,19 +77421,19 @@ func (c *ProjectsLocationsGenerateSyntheticDataCall) doRequest(alt string) (*htt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "location": c.location, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.generateSyntheticData", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.askContexts", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.generateSyntheticData" call. +// Do executes the "aiplatform.projects.locations.askContexts" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1GenerateSyntheticDataResponse.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 +// *GoogleCloudAiplatformV1AskContextsResponse.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 *ProjectsLocationsGenerateSyntheticDataCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1GenerateSyntheticDataResponse, error) { +func (c *ProjectsLocationsAskContextsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1AskContextsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76746,7 +77452,7 @@ func (c *ProjectsLocationsGenerateSyntheticDataCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1GenerateSyntheticDataResponse{ + ret := &GoogleCloudAiplatformV1AskContextsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76757,62 +77463,64 @@ func (c *ProjectsLocationsGenerateSyntheticDataCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.generateSyntheticData", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.askContexts", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGenerateUserScenariosCall struct { +type ProjectsLocationsAsyncRetrieveContextsCall struct { s *Service - location string - googlecloudaiplatformv1generateuserscenariosrequest *GoogleCloudAiplatformV1GenerateUserScenariosRequest + parent string + googlecloudaiplatformv1asyncretrievecontextsrequest *GoogleCloudAiplatformV1AsyncRetrieveContextsRequest urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// GenerateUserScenarios: Generates user scenarios for agent evaluation. +// AsyncRetrieveContexts: Asynchronous API to retrieves relevant contexts for a +// query. // -// - location: The resource name of the Location to run the job. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsService) GenerateUserScenarios(location string, googlecloudaiplatformv1generateuserscenariosrequest *GoogleCloudAiplatformV1GenerateUserScenariosRequest) *ProjectsLocationsGenerateUserScenariosCall { - c := &ProjectsLocationsGenerateUserScenariosCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.location = location - c.googlecloudaiplatformv1generateuserscenariosrequest = googlecloudaiplatformv1generateuserscenariosrequest +// - parent: The resource name of the Location from which to retrieve +// RagContexts. The users must have permission to make a call in the project. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsService) AsyncRetrieveContexts(parent string, googlecloudaiplatformv1asyncretrievecontextsrequest *GoogleCloudAiplatformV1AsyncRetrieveContextsRequest) *ProjectsLocationsAsyncRetrieveContextsCall { + c := &ProjectsLocationsAsyncRetrieveContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1asyncretrievecontextsrequest = googlecloudaiplatformv1asyncretrievecontextsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGenerateUserScenariosCall) Fields(s ...googleapi.Field) *ProjectsLocationsGenerateUserScenariosCall { +func (c *ProjectsLocationsAsyncRetrieveContextsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAsyncRetrieveContextsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGenerateUserScenariosCall) Context(ctx context.Context) *ProjectsLocationsGenerateUserScenariosCall { +func (c *ProjectsLocationsAsyncRetrieveContextsCall) Context(ctx context.Context) *ProjectsLocationsAsyncRetrieveContextsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsGenerateUserScenariosCall) Header() http.Header { +func (c *ProjectsLocationsAsyncRetrieveContextsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGenerateUserScenariosCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsAsyncRetrieveContextsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1generateuserscenariosrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1asyncretrievecontextsrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:generateUserScenarios") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:asyncRetrieveContexts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -76820,19 +77528,19 @@ func (c *ProjectsLocationsGenerateUserScenariosCall) doRequest(alt string) (*htt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "location": c.location, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.generateUserScenarios", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.asyncRetrieveContexts", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.generateUserScenarios" call. +// Do executes the "aiplatform.projects.locations.asyncRetrieveContexts" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1GenerateUserScenariosResponse.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 +// *GoogleLongrunningOperation.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 *ProjectsLocationsGenerateUserScenariosCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1GenerateUserScenariosResponse, error) { +func (c *ProjectsLocationsAsyncRetrieveContextsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76851,7 +77559,7 @@ func (c *ProjectsLocationsGenerateUserScenariosCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1GenerateUserScenariosResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76862,87 +77570,84 @@ func (c *ProjectsLocationsGenerateUserScenariosCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.generateUserScenarios", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.asyncRetrieveContexts", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsAugmentPromptCall struct { + s *Service + parent string + googlecloudaiplatformv1augmentpromptrequest *GoogleCloudAiplatformV1AugmentPromptRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets information about a location. +// AugmentPrompt: Given an input prompt, it returns augmented prompt from +// vertex rag store to guide LLM towards generating grounded responses. // -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location from which to augment prompt. +// The users must have permission to make a call in the project. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsService) AugmentPrompt(parent string, googlecloudaiplatformv1augmentpromptrequest *GoogleCloudAiplatformV1AugmentPromptRequest) *ProjectsLocationsAugmentPromptCall { + c := &ProjectsLocationsAugmentPromptCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1augmentpromptrequest = googlecloudaiplatformv1augmentpromptrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { +func (c *ProjectsLocationsAugmentPromptCall) Fields(s ...googleapi.Field) *ProjectsLocationsAugmentPromptCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { +func (c *ProjectsLocationsAugmentPromptCall) Context(ctx context.Context) *ProjectsLocationsAugmentPromptCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsGetCall) Header() http.Header { +func (c *ProjectsLocationsAugmentPromptCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsAugmentPromptCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1augmentpromptrequest) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:augmentPrompt") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + 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, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.augmentPrompt", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.get" call. +// Do executes the "aiplatform.projects.locations.augmentPrompt" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudLocationLocation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudAiplatformV1AugmentPromptResponse.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) { +func (c *ProjectsLocationsAugmentPromptCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1AugmentPromptResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76961,7 +77666,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleClou if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudLocationLocation{ + ret := &GoogleCloudAiplatformV1AugmentPromptResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76972,88 +77677,85 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleClou if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.augmentPrompt", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGetRagEngineConfigCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsCorroborateContentCall struct { + s *Service + parent string + googlecloudaiplatformv1corroboratecontentrequest *GoogleCloudAiplatformV1CorroborateContentRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetRagEngineConfig: Gets a RagEngineConfig. +// CorroborateContent: Given an input text, it returns a score that evaluates +// the factuality of the text. It also extracts and returns claims from the +// text and provides supporting facts. // -// - name: The name of the RagEngineConfig resource. Format: -// `projects/{project}/locations/{location}/ragEngineConfig`. -func (r *ProjectsLocationsService) GetRagEngineConfig(name string) *ProjectsLocationsGetRagEngineConfigCall { - c := &ProjectsLocationsGetRagEngineConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location from which to corroborate text. +// The users must have permission to make a call in the project. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsService) CorroborateContent(parent string, googlecloudaiplatformv1corroboratecontentrequest *GoogleCloudAiplatformV1CorroborateContentRequest) *ProjectsLocationsCorroborateContentCall { + c := &ProjectsLocationsCorroborateContentCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1corroboratecontentrequest = googlecloudaiplatformv1corroboratecontentrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGetRagEngineConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetRagEngineConfigCall { +func (c *ProjectsLocationsCorroborateContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsCorroborateContentCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsGetRagEngineConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetRagEngineConfigCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGetRagEngineConfigCall) Context(ctx context.Context) *ProjectsLocationsGetRagEngineConfigCall { +func (c *ProjectsLocationsCorroborateContentCall) Context(ctx context.Context) *ProjectsLocationsCorroborateContentCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsGetRagEngineConfigCall) Header() http.Header { +func (c *ProjectsLocationsCorroborateContentCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetRagEngineConfigCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsCorroborateContentCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1corroboratecontentrequest) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:corroborateContent") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + 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, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.getRagEngineConfig", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.corroborateContent", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.getRagEngineConfig" call. +// Do executes the "aiplatform.projects.locations.corroborateContent" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1RagEngineConfig.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudAiplatformV1CorroborateContentResponse.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 *ProjectsLocationsGetRagEngineConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1RagEngineConfig, error) { +func (c *ProjectsLocationsCorroborateContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1CorroborateContentResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -77072,7 +77774,7 @@ func (c *ProjectsLocationsGetRagEngineConfigCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1RagEngineConfig{ + ret := &GoogleCloudAiplatformV1CorroborateContentResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -77083,30 +77785,996 @@ func (c *ProjectsLocationsGetRagEngineConfigCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.getRagEngineConfig", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.corroborateContent", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGetSemanticGovernancePolicyEngineCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDeployCall struct { + s *Service + destination string + googlecloudaiplatformv1deployrequest *GoogleCloudAiplatformV1DeployRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetSemanticGovernancePolicyEngine: Gets a SemanticGovernancePolicyEngine. A -// SemanticGovernancePolicyEngine is a singleton resource that is created when -// its parent is created, and deleted when its parent is deleted. This method -// retrieves the current state of the Semantic Governance Policy Engine. +// Deploy: Deploys a model to a new endpoint. // -// - name: The resource name of the SemanticGovernancePolicyEngine to retrieve. -// Format: -// projects/{project}/locations/{location}/semanticGovernancePolicyEngine. -func (r *ProjectsLocationsService) GetSemanticGovernancePolicyEngine(name string) *ProjectsLocationsGetSemanticGovernancePolicyEngineCall { - c := &ProjectsLocationsGetSemanticGovernancePolicyEngineCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - destination: The resource name of the Location to deploy the model in. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsService) Deploy(destination string, googlecloudaiplatformv1deployrequest *GoogleCloudAiplatformV1DeployRequest) *ProjectsLocationsDeployCall { + c := &ProjectsLocationsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.destination = destination + c.googlecloudaiplatformv1deployrequest = googlecloudaiplatformv1deployrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsDeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeployCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDeployCall) Context(ctx context.Context) *ProjectsLocationsDeployCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsDeployCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDeployCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1deployrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+destination}:deploy") + 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{ + "destination": c.destination, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.deploy", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.deploy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.deploy", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsEvaluateDatasetCall struct { + s *Service + location string + googlecloudaiplatformv1evaluatedatasetrequest *GoogleCloudAiplatformV1EvaluateDatasetRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// EvaluateDataset: Evaluates a dataset based on a set of given metrics. +// +// - location: The resource name of the Location to evaluate the dataset. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsService) EvaluateDataset(location string, googlecloudaiplatformv1evaluatedatasetrequest *GoogleCloudAiplatformV1EvaluateDatasetRequest) *ProjectsLocationsEvaluateDatasetCall { + c := &ProjectsLocationsEvaluateDatasetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + c.googlecloudaiplatformv1evaluatedatasetrequest = googlecloudaiplatformv1evaluatedatasetrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsEvaluateDatasetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluateDatasetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEvaluateDatasetCall) Context(ctx context.Context) *ProjectsLocationsEvaluateDatasetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsEvaluateDatasetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluateDatasetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1evaluatedatasetrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:evaluateDataset") + 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{ + "location": c.location, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluateDataset", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.evaluateDataset" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsEvaluateDatasetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluateDataset", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsEvaluateInstancesCall struct { + s *Service + location string + googlecloudaiplatformv1evaluateinstancesrequest *GoogleCloudAiplatformV1EvaluateInstancesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// EvaluateInstances: Evaluates instances based on a given metric. +// +// - location: The resource name of the Location to evaluate the instances. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsService) EvaluateInstances(location string, googlecloudaiplatformv1evaluateinstancesrequest *GoogleCloudAiplatformV1EvaluateInstancesRequest) *ProjectsLocationsEvaluateInstancesCall { + c := &ProjectsLocationsEvaluateInstancesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + c.googlecloudaiplatformv1evaluateinstancesrequest = googlecloudaiplatformv1evaluateinstancesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsEvaluateInstancesCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluateInstancesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEvaluateInstancesCall) Context(ctx context.Context) *ProjectsLocationsEvaluateInstancesCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsEvaluateInstancesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluateInstancesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1evaluateinstancesrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:evaluateInstances") + 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{ + "location": c.location, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluateInstances", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.evaluateInstances" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1EvaluateInstancesResponse.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 *ProjectsLocationsEvaluateInstancesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EvaluateInstancesResponse, 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 := &GoogleCloudAiplatformV1EvaluateInstancesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluateInstances", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsGenerateInstanceRubricsCall struct { + s *Service + location string + googlecloudaiplatformv1generateinstancerubricsrequest *GoogleCloudAiplatformV1GenerateInstanceRubricsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GenerateInstanceRubrics: Generates rubrics for a given prompt. A rubric +// represents a single testable criterion for evaluation. One input prompt +// could have multiple rubrics This RPC allows users to get suggested rubrics +// based on provided prompt, which can then be reviewed and used for subsequent +// evaluations. +// +// - location: The resource name of the Location to generate rubrics from. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsService) GenerateInstanceRubrics(location string, googlecloudaiplatformv1generateinstancerubricsrequest *GoogleCloudAiplatformV1GenerateInstanceRubricsRequest) *ProjectsLocationsGenerateInstanceRubricsCall { + c := &ProjectsLocationsGenerateInstanceRubricsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + c.googlecloudaiplatformv1generateinstancerubricsrequest = googlecloudaiplatformv1generateinstancerubricsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGenerateInstanceRubricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGenerateInstanceRubricsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGenerateInstanceRubricsCall) Context(ctx context.Context) *ProjectsLocationsGenerateInstanceRubricsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGenerateInstanceRubricsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGenerateInstanceRubricsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1generateinstancerubricsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:generateInstanceRubrics") + 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{ + "location": c.location, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.generateInstanceRubrics", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.generateInstanceRubrics" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1GenerateInstanceRubricsResponse.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 *ProjectsLocationsGenerateInstanceRubricsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1GenerateInstanceRubricsResponse, 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 := &GoogleCloudAiplatformV1GenerateInstanceRubricsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.generateInstanceRubrics", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsGenerateLossClustersCall struct { + s *Service + location string + googlecloudaiplatformv1generatelossclustersrequest *GoogleCloudAiplatformV1GenerateLossClustersRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GenerateLossClusters: Generates loss clusters from evaluation results. This +// is a statelss API method that would not modify the EvaluationSet resource. +// +// - location: The resource name of the Location. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsService) GenerateLossClusters(location string, googlecloudaiplatformv1generatelossclustersrequest *GoogleCloudAiplatformV1GenerateLossClustersRequest) *ProjectsLocationsGenerateLossClustersCall { + c := &ProjectsLocationsGenerateLossClustersCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + c.googlecloudaiplatformv1generatelossclustersrequest = googlecloudaiplatformv1generatelossclustersrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGenerateLossClustersCall) Fields(s ...googleapi.Field) *ProjectsLocationsGenerateLossClustersCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGenerateLossClustersCall) Context(ctx context.Context) *ProjectsLocationsGenerateLossClustersCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGenerateLossClustersCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGenerateLossClustersCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1generatelossclustersrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:generateLossClusters") + 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{ + "location": c.location, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.generateLossClusters", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.generateLossClusters" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsGenerateLossClustersCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.generateLossClusters", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsGenerateSyntheticDataCall struct { + s *Service + location string + googlecloudaiplatformv1generatesyntheticdatarequest *GoogleCloudAiplatformV1GenerateSyntheticDataRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GenerateSyntheticData: Generates synthetic (artificial) data based on a +// description +// +// - location: The geographic location where the synthetic data generation +// request is processed. This should be in the format +// `projects/{project}/locations/{location}`. For example, +// `projects/my-project/locations/us-central1`. +func (r *ProjectsLocationsService) GenerateSyntheticData(location string, googlecloudaiplatformv1generatesyntheticdatarequest *GoogleCloudAiplatformV1GenerateSyntheticDataRequest) *ProjectsLocationsGenerateSyntheticDataCall { + c := &ProjectsLocationsGenerateSyntheticDataCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + c.googlecloudaiplatformv1generatesyntheticdatarequest = googlecloudaiplatformv1generatesyntheticdatarequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGenerateSyntheticDataCall) Fields(s ...googleapi.Field) *ProjectsLocationsGenerateSyntheticDataCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGenerateSyntheticDataCall) Context(ctx context.Context) *ProjectsLocationsGenerateSyntheticDataCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGenerateSyntheticDataCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGenerateSyntheticDataCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1generatesyntheticdatarequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:generateSyntheticData") + 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{ + "location": c.location, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.generateSyntheticData", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.generateSyntheticData" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1GenerateSyntheticDataResponse.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 *ProjectsLocationsGenerateSyntheticDataCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1GenerateSyntheticDataResponse, 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 := &GoogleCloudAiplatformV1GenerateSyntheticDataResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.generateSyntheticData", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsGenerateUserScenariosCall struct { + s *Service + location string + googlecloudaiplatformv1generateuserscenariosrequest *GoogleCloudAiplatformV1GenerateUserScenariosRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GenerateUserScenarios: Generates user scenarios for agent evaluation. +// +// - location: The resource name of the Location to run the job. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsService) GenerateUserScenarios(location string, googlecloudaiplatformv1generateuserscenariosrequest *GoogleCloudAiplatformV1GenerateUserScenariosRequest) *ProjectsLocationsGenerateUserScenariosCall { + c := &ProjectsLocationsGenerateUserScenariosCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + c.googlecloudaiplatformv1generateuserscenariosrequest = googlecloudaiplatformv1generateuserscenariosrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGenerateUserScenariosCall) Fields(s ...googleapi.Field) *ProjectsLocationsGenerateUserScenariosCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGenerateUserScenariosCall) Context(ctx context.Context) *ProjectsLocationsGenerateUserScenariosCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGenerateUserScenariosCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGenerateUserScenariosCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1generateuserscenariosrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}:generateUserScenarios") + 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{ + "location": c.location, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.generateUserScenarios", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.generateUserScenarios" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1GenerateUserScenariosResponse.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 *ProjectsLocationsGenerateUserScenariosCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1GenerateUserScenariosResponse, 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 := &GoogleCloudAiplatformV1GenerateUserScenariosResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.generateUserScenarios", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +// +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudLocationLocation.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, 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 := &GoogleCloudLocationLocation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsGetRagEngineConfigCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetRagEngineConfig: Gets a RagEngineConfig. +// +// - name: The name of the RagEngineConfig resource. Format: +// `projects/{project}/locations/{location}/ragEngineConfig`. +func (r *ProjectsLocationsService) GetRagEngineConfig(name string) *ProjectsLocationsGetRagEngineConfigCall { + c := &ProjectsLocationsGetRagEngineConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGetRagEngineConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetRagEngineConfigCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsGetRagEngineConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetRagEngineConfigCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGetRagEngineConfigCall) Context(ctx context.Context) *ProjectsLocationsGetRagEngineConfigCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGetRagEngineConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetRagEngineConfigCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.getRagEngineConfig", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.getRagEngineConfig" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1RagEngineConfig.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 *ProjectsLocationsGetRagEngineConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1RagEngineConfig, 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 := &GoogleCloudAiplatformV1RagEngineConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.getRagEngineConfig", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsGetSemanticGovernancePolicyEngineCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetSemanticGovernancePolicyEngine: Gets a SemanticGovernancePolicyEngine. A +// SemanticGovernancePolicyEngine is a singleton resource that is created when +// its parent is created, and deleted when its parent is deleted. This method +// retrieves the current state of the Semantic Governance Policy Engine. +// +// - name: The resource name of the SemanticGovernancePolicyEngine to retrieve. +// Format: +// projects/{project}/locations/{location}/semanticGovernancePolicyEngine. +func (r *ProjectsLocationsService) GetSemanticGovernancePolicyEngine(name string) *ProjectsLocationsGetSemanticGovernancePolicyEngineCall { + c := &ProjectsLocationsGetSemanticGovernancePolicyEngineCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } @@ -93344,164 +95012,68 @@ func (c *ProjectsLocationsEvaluationItemsListCall) Pages(ctx context.Context, f } } -type ProjectsLocationsEvaluationRunsCancelCall struct { - s *Service - name string - googlecloudaiplatformv1cancelevaluationrunrequest *GoogleCloudAiplatformV1CancelEvaluationRunRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEvaluationMetricsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1evaluationmetric *GoogleCloudAiplatformV1EvaluationMetric + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Cancel: Cancels an Evaluation Run. Attempts to cancel a running Evaluation -// Run asynchronously. Status of run can be checked via GetEvaluationRun. +// Create: Creates an EvaluationMetric. // -// - name: The name of the EvaluationRun resource to be cancelled. Format: -// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`. -func (r *ProjectsLocationsEvaluationRunsService) Cancel(name string, googlecloudaiplatformv1cancelevaluationrunrequest *GoogleCloudAiplatformV1CancelEvaluationRunRequest) *ProjectsLocationsEvaluationRunsCancelCall { - c := &ProjectsLocationsEvaluationRunsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1cancelevaluationrunrequest = googlecloudaiplatformv1cancelevaluationrunrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsEvaluationRunsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationRunsCancelCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) +// - parent: The resource name of the Location to create the EvaluationMetric +// in. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsEvaluationMetricsService) Create(parent string, googlecloudaiplatformv1evaluationmetric *GoogleCloudAiplatformV1EvaluationMetric) *ProjectsLocationsEvaluationMetricsCreateCall { + c := &ProjectsLocationsEvaluationMetricsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1evaluationmetric = googlecloudaiplatformv1evaluationmetric return c } -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEvaluationRunsCancelCall) Context(ctx context.Context) *ProjectsLocationsEvaluationRunsCancelCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsEvaluationRunsCancelCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsEvaluationRunsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1cancelevaluationrunrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") - 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, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.cancel", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.evaluationRuns.cancel" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.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 *ProjectsLocationsEvaluationRunsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.cancel", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsEvaluationRunsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1evaluationrun *GoogleCloudAiplatformV1EvaluationRun - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates an Evaluation Run. -// -// - parent: The resource name of the Location to create the Evaluation Run in. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsEvaluationRunsService) Create(parent string, googlecloudaiplatformv1evaluationrun *GoogleCloudAiplatformV1EvaluationRun) *ProjectsLocationsEvaluationRunsCreateCall { - c := &ProjectsLocationsEvaluationRunsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1evaluationrun = googlecloudaiplatformv1evaluationrun +// EvaluationMetricId sets the optional parameter "evaluationMetricId": The ID +// to use for the EvaluationMetric, which will become the final component of +// the EvaluationMetric's resource name. This value should be 1-63 characters, +// and valid characters are /a-z-/. The first character must be a lowercase +// letter, and the last character must be a lowercase letter or number. +func (c *ProjectsLocationsEvaluationMetricsCreateCall) EvaluationMetricId(evaluationMetricId string) *ProjectsLocationsEvaluationMetricsCreateCall { + c.urlParams_.Set("evaluationMetricId", evaluationMetricId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsEvaluationRunsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationRunsCreateCall { +func (c *ProjectsLocationsEvaluationMetricsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationMetricsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEvaluationRunsCreateCall) Context(ctx context.Context) *ProjectsLocationsEvaluationRunsCreateCall { +func (c *ProjectsLocationsEvaluationMetricsCreateCall) Context(ctx context.Context) *ProjectsLocationsEvaluationMetricsCreateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsEvaluationRunsCreateCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationMetricsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationRunsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEvaluationMetricsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1evaluationrun) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1evaluationmetric) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluationRuns") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluationMetrics") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -93511,17 +95083,17 @@ func (c *ProjectsLocationsEvaluationRunsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationMetrics.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.evaluationRuns.create" call. +// Do executes the "aiplatform.projects.locations.evaluationMetrics.create" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1EvaluationRun.ServerResponse.Header or (if a +// *GoogleCloudAiplatformV1EvaluationMetric.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 *ProjectsLocationsEvaluationRunsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EvaluationRun, error) { +func (c *ProjectsLocationsEvaluationMetricsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EvaluationMetric, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -93540,7 +95112,7 @@ func (c *ProjectsLocationsEvaluationRunsCreateCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1EvaluationRun{ + ret := &GoogleCloudAiplatformV1EvaluationMetric{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -93551,11 +95123,11 @@ func (c *ProjectsLocationsEvaluationRunsCreateCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationMetrics.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsEvaluationRunsDeleteCall struct { +type ProjectsLocationsEvaluationMetricsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -93563,12 +95135,13 @@ type ProjectsLocationsEvaluationRunsDeleteCall struct { header_ http.Header } -// Delete: Deletes an Evaluation Run. +// Delete: Deletes an EvaluationMetric. // -// - name: The name of the EvaluationRun resource to be deleted. Format: -// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`. -func (r *ProjectsLocationsEvaluationRunsService) Delete(name string) *ProjectsLocationsEvaluationRunsDeleteCall { - c := &ProjectsLocationsEvaluationRunsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the EvaluationMetric resource to be deleted. Format: +// `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metr +// ic}`. +func (r *ProjectsLocationsEvaluationMetricsService) Delete(name string) *ProjectsLocationsEvaluationMetricsDeleteCall { + c := &ProjectsLocationsEvaluationMetricsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -93576,27 +95149,27 @@ func (r *ProjectsLocationsEvaluationRunsService) Delete(name string) *ProjectsLo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsEvaluationRunsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationRunsDeleteCall { +func (c *ProjectsLocationsEvaluationMetricsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationMetricsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEvaluationRunsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEvaluationRunsDeleteCall { +func (c *ProjectsLocationsEvaluationMetricsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEvaluationMetricsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsEvaluationRunsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationMetricsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationRunsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEvaluationMetricsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -93610,17 +95183,17 @@ func (c *ProjectsLocationsEvaluationRunsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationMetrics.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.evaluationRuns.delete" call. +// Do executes the "aiplatform.projects.locations.evaluationMetrics.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsEvaluationRunsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEvaluationMetricsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -93650,11 +95223,11 @@ func (c *ProjectsLocationsEvaluationRunsDeleteCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationMetrics.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsEvaluationRunsGetCall struct { +type ProjectsLocationsEvaluationMetricsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -93663,12 +95236,13 @@ type ProjectsLocationsEvaluationRunsGetCall struct { header_ http.Header } -// Get: Gets an Evaluation Run. +// Get: Gets an EvaluationMetric. // -// - name: The name of the EvaluationRun resource. Format: -// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`. -func (r *ProjectsLocationsEvaluationRunsService) Get(name string) *ProjectsLocationsEvaluationRunsGetCall { - c := &ProjectsLocationsEvaluationRunsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the EvaluationMetric resource. Format: +// `projects/{project}/locations/{location}/evaluationMetrics/{evaluation_metr +// ic}`. +func (r *ProjectsLocationsEvaluationMetricsService) Get(name string) *ProjectsLocationsEvaluationMetricsGetCall { + c := &ProjectsLocationsEvaluationMetricsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -93676,7 +95250,7 @@ func (r *ProjectsLocationsEvaluationRunsService) Get(name string) *ProjectsLocat // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsEvaluationRunsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationRunsGetCall { +func (c *ProjectsLocationsEvaluationMetricsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationMetricsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -93684,27 +95258,27 @@ func (c *ProjectsLocationsEvaluationRunsGetCall) Fields(s ...googleapi.Field) *P // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsEvaluationRunsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationRunsGetCall { +func (c *ProjectsLocationsEvaluationMetricsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationMetricsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEvaluationRunsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationRunsGetCall { +func (c *ProjectsLocationsEvaluationMetricsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationMetricsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsEvaluationRunsGetCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationMetricsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationRunsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEvaluationMetricsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -93721,17 +95295,17 @@ func (c *ProjectsLocationsEvaluationRunsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationMetrics.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.evaluationRuns.get" call. +// Do executes the "aiplatform.projects.locations.evaluationMetrics.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1EvaluationRun.ServerResponse.Header or (if a +// *GoogleCloudAiplatformV1EvaluationMetric.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 *ProjectsLocationsEvaluationRunsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EvaluationRun, error) { +func (c *ProjectsLocationsEvaluationMetricsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EvaluationMetric, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -93750,7 +95324,7 @@ func (c *ProjectsLocationsEvaluationRunsGetCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1EvaluationRun{ + ret := &GoogleCloudAiplatformV1EvaluationMetric{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -93761,11 +95335,11 @@ func (c *ProjectsLocationsEvaluationRunsGetCall) Do(opts ...googleapi.CallOption if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationMetrics.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsEvaluationRunsListCall struct { +type ProjectsLocationsEvaluationMetricsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -93774,21 +95348,21 @@ type ProjectsLocationsEvaluationRunsListCall struct { header_ http.Header } -// List: Lists Evaluation Runs. +// List: Lists EvaluationMetrics. // // - parent: The resource name of the Location from which to list the -// Evaluation Runs. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsEvaluationRunsService) List(parent string) *ProjectsLocationsEvaluationRunsListCall { - c := &ProjectsLocationsEvaluationRunsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// EvaluationMetrics. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsEvaluationMetricsService) List(parent string) *ProjectsLocationsEvaluationMetricsListCall { + c := &ProjectsLocationsEvaluationMetricsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // Filter sets the optional parameter "filter": Filter expression that matches -// a subset of the EvaluationRuns to show. For field names both snake_case and -// camelCase are supported. For more information about filter syntax, see +// a subset of the EvaluationMetrics to show. For field names both snake_case +// and camelCase are supported. For more information about filter syntax, see // AIP-160 (https://google.aip.dev/160). -func (c *ProjectsLocationsEvaluationRunsListCall) Filter(filter string) *ProjectsLocationsEvaluationRunsListCall { +func (c *ProjectsLocationsEvaluationMetricsListCall) Filter(filter string) *ProjectsLocationsEvaluationMetricsListCall { c.urlParams_.Set("filter", filter) return c } @@ -93796,22 +95370,22 @@ func (c *ProjectsLocationsEvaluationRunsListCall) Filter(filter string) *Project // OrderBy sets the optional parameter "orderBy": A comma-separated list of // fields to order by, sorted in ascending order by default. Use `desc` after a // field name for descending. -func (c *ProjectsLocationsEvaluationRunsListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationRunsListCall { +func (c *ProjectsLocationsEvaluationMetricsListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationMetricsListCall { c.urlParams_.Set("orderBy", orderBy) return c } // PageSize sets the optional parameter "pageSize": The maximum number of -// Evaluation Runs to return. -func (c *ProjectsLocationsEvaluationRunsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationRunsListCall { +// EvaluationMetrics to return. +func (c *ProjectsLocationsEvaluationMetricsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationMetricsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token, received -// from a previous `ListEvaluationRuns` call. Provide this to retrieve the +// from a previous `ListEvaluationMetrics` call. Provide this to retrieve the // subsequent page. -func (c *ProjectsLocationsEvaluationRunsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationRunsListCall { +func (c *ProjectsLocationsEvaluationMetricsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationMetricsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -93819,7 +95393,7 @@ func (c *ProjectsLocationsEvaluationRunsListCall) PageToken(pageToken string) *P // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsEvaluationRunsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationRunsListCall { +func (c *ProjectsLocationsEvaluationMetricsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationMetricsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -93827,34 +95401,34 @@ func (c *ProjectsLocationsEvaluationRunsListCall) Fields(s ...googleapi.Field) * // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsEvaluationRunsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationRunsListCall { +func (c *ProjectsLocationsEvaluationMetricsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationMetricsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEvaluationRunsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationRunsListCall { +func (c *ProjectsLocationsEvaluationMetricsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationMetricsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsEvaluationRunsListCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationMetricsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationRunsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEvaluationMetricsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluationRuns") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluationMetrics") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -93864,17 +95438,17 @@ func (c *ProjectsLocationsEvaluationRunsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationMetrics.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.evaluationRuns.list" call. +// Do executes the "aiplatform.projects.locations.evaluationMetrics.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1ListEvaluationRunsResponse.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 +// *GoogleCloudAiplatformV1ListEvaluationMetricsResponse.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 *ProjectsLocationsEvaluationRunsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListEvaluationRunsResponse, error) { +func (c *ProjectsLocationsEvaluationMetricsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListEvaluationMetricsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -93893,7 +95467,7 @@ func (c *ProjectsLocationsEvaluationRunsListCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListEvaluationRunsResponse{ + ret := &GoogleCloudAiplatformV1ListEvaluationMetricsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -93904,14 +95478,14 @@ func (c *ProjectsLocationsEvaluationRunsListCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationMetrics.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsEvaluationRunsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListEvaluationRunsResponse) error) error { +func (c *ProjectsLocationsEvaluationMetricsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListEvaluationMetricsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -93929,58 +95503,59 @@ func (c *ProjectsLocationsEvaluationRunsListCall) Pages(ctx context.Context, f f } } -type ProjectsLocationsEvaluationSetsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1evaluationset *GoogleCloudAiplatformV1EvaluationSet - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEvaluationRunsCancelCall struct { + s *Service + name string + googlecloudaiplatformv1cancelevaluationrunrequest *GoogleCloudAiplatformV1CancelEvaluationRunRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates an Evaluation Set. +// Cancel: Cancels an Evaluation Run. Attempts to cancel a running Evaluation +// Run asynchronously. Status of run can be checked via GetEvaluationRun. // -// - parent: The resource name of the Location to create the Evaluation Set in. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsEvaluationSetsService) Create(parent string, googlecloudaiplatformv1evaluationset *GoogleCloudAiplatformV1EvaluationSet) *ProjectsLocationsEvaluationSetsCreateCall { - c := &ProjectsLocationsEvaluationSetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1evaluationset = googlecloudaiplatformv1evaluationset +// - name: The name of the EvaluationRun resource to be cancelled. Format: +// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`. +func (r *ProjectsLocationsEvaluationRunsService) Cancel(name string, googlecloudaiplatformv1cancelevaluationrunrequest *GoogleCloudAiplatformV1CancelEvaluationRunRequest) *ProjectsLocationsEvaluationRunsCancelCall { + c := &ProjectsLocationsEvaluationRunsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1cancelevaluationrunrequest = googlecloudaiplatformv1cancelevaluationrunrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsEvaluationSetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationSetsCreateCall { +func (c *ProjectsLocationsEvaluationRunsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationRunsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEvaluationSetsCreateCall) Context(ctx context.Context) *ProjectsLocationsEvaluationSetsCreateCall { +func (c *ProjectsLocationsEvaluationRunsCancelCall) Context(ctx context.Context) *ProjectsLocationsEvaluationRunsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsEvaluationSetsCreateCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationRunsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationSetsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEvaluationRunsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1evaluationset) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1cancelevaluationrunrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluationSets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -93988,19 +95563,19 @@ func (c *ProjectsLocationsEvaluationSetsCreateCall) doRequest(alt string) (*http } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.cancel", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.evaluationSets.create" call. +// Do executes the "aiplatform.projects.locations.evaluationRuns.cancel" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1EvaluationSet.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 *ProjectsLocationsEvaluationSetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EvaluationSet, error) { +// *GoogleProtobufEmpty.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 *ProjectsLocationsEvaluationRunsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94019,7 +95594,7 @@ func (c *ProjectsLocationsEvaluationSetsCreateCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1EvaluationSet{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -94030,76 +95605,82 @@ func (c *ProjectsLocationsEvaluationSetsCreateCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsEvaluationSetsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEvaluationRunsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1evaluationrun *GoogleCloudAiplatformV1EvaluationRun + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an Evaluation Set. +// Create: Creates an Evaluation Run. // -// - name: The name of the EvaluationSet resource to be deleted. Format: -// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`. -func (r *ProjectsLocationsEvaluationSetsService) Delete(name string) *ProjectsLocationsEvaluationSetsDeleteCall { - c := &ProjectsLocationsEvaluationSetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to create the Evaluation Run in. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsEvaluationRunsService) Create(parent string, googlecloudaiplatformv1evaluationrun *GoogleCloudAiplatformV1EvaluationRun) *ProjectsLocationsEvaluationRunsCreateCall { + c := &ProjectsLocationsEvaluationRunsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1evaluationrun = googlecloudaiplatformv1evaluationrun return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsEvaluationSetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationSetsDeleteCall { +func (c *ProjectsLocationsEvaluationRunsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationRunsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEvaluationSetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEvaluationSetsDeleteCall { +func (c *ProjectsLocationsEvaluationRunsCreateCall) Context(ctx context.Context) *ProjectsLocationsEvaluationRunsCreateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsEvaluationSetsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationRunsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationSetsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsLocationsEvaluationRunsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1evaluationrun) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluationRuns") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + 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, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.evaluationSets.delete" call. +// Do executes the "aiplatform.projects.locations.evaluationRuns.create" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudAiplatformV1EvaluationRun.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 *ProjectsLocationsEvaluationSetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEvaluationRunsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EvaluationRun, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94118,7 +95699,7 @@ func (c *ProjectsLocationsEvaluationSetsDeleteCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1EvaluationRun{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -94129,25 +95710,24 @@ func (c *ProjectsLocationsEvaluationSetsDeleteCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsEvaluationSetsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEvaluationRunsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets an Evaluation Set. +// Delete: Deletes an Evaluation Run. // -// - name: The name of the EvaluationSet resource. Format: -// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`. -func (r *ProjectsLocationsEvaluationSetsService) Get(name string) *ProjectsLocationsEvaluationSetsGetCall { - c := &ProjectsLocationsEvaluationSetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the EvaluationRun resource to be deleted. Format: +// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`. +func (r *ProjectsLocationsEvaluationRunsService) Delete(name string) *ProjectsLocationsEvaluationRunsDeleteCall { + c := &ProjectsLocationsEvaluationRunsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -94155,44 +95735,33 @@ func (r *ProjectsLocationsEvaluationSetsService) Get(name string) *ProjectsLocat // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsEvaluationSetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationSetsGetCall { +func (c *ProjectsLocationsEvaluationRunsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationRunsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsEvaluationSetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationSetsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEvaluationSetsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationSetsGetCall { +func (c *ProjectsLocationsEvaluationRunsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEvaluationRunsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsEvaluationSetsGetCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationRunsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationSetsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEvaluationRunsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } @@ -94200,17 +95769,17 @@ func (c *ProjectsLocationsEvaluationSetsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.evaluationSets.get" call. +// Do executes the "aiplatform.projects.locations.evaluationRuns.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1EvaluationSet.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleLongrunningOperation.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 *ProjectsLocationsEvaluationSetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EvaluationSet, error) { +func (c *ProjectsLocationsEvaluationRunsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94229,7 +95798,7 @@ func (c *ProjectsLocationsEvaluationSetsGetCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1EvaluationSet{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -94240,81 +95809,88 @@ func (c *ProjectsLocationsEvaluationSetsGetCall) Do(opts ...googleapi.CallOption if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsEvaluationSetsImportCall struct { - s *Service - parent string - googlecloudaiplatformv1importevaluationsetrequest *GoogleCloudAiplatformV1ImportEvaluationSetRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEvaluationRunsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Import: Imports an Evaluation Set. +// Get: Gets an Evaluation Run. // -// - parent: Parent resource name. -func (r *ProjectsLocationsEvaluationSetsService) Import(parent string, googlecloudaiplatformv1importevaluationsetrequest *GoogleCloudAiplatformV1ImportEvaluationSetRequest) *ProjectsLocationsEvaluationSetsImportCall { - c := &ProjectsLocationsEvaluationSetsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1importevaluationsetrequest = googlecloudaiplatformv1importevaluationsetrequest +// - name: The name of the EvaluationRun resource. Format: +// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`. +func (r *ProjectsLocationsEvaluationRunsService) Get(name string) *ProjectsLocationsEvaluationRunsGetCall { + c := &ProjectsLocationsEvaluationRunsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsEvaluationSetsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationSetsImportCall { +func (c *ProjectsLocationsEvaluationRunsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationRunsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsEvaluationRunsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationRunsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEvaluationSetsImportCall) Context(ctx context.Context) *ProjectsLocationsEvaluationSetsImportCall { +func (c *ProjectsLocationsEvaluationRunsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationRunsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsEvaluationSetsImportCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationRunsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationSetsImportCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1importevaluationsetrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsEvaluationRunsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluationSets:import") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.import", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.evaluationSets.import" call. +// Do executes the "aiplatform.projects.locations.evaluationRuns.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudAiplatformV1EvaluationRun.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 *ProjectsLocationsEvaluationSetsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEvaluationRunsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EvaluationRun, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94333,7 +95909,7 @@ func (c *ProjectsLocationsEvaluationSetsImportCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1EvaluationRun{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -94344,11 +95920,11 @@ func (c *ProjectsLocationsEvaluationSetsImportCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.import", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsEvaluationSetsListCall struct { +type ProjectsLocationsEvaluationRunsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -94357,21 +95933,21 @@ type ProjectsLocationsEvaluationSetsListCall struct { header_ http.Header } -// List: Lists Evaluation Sets. +// List: Lists Evaluation Runs. // // - parent: The resource name of the Location from which to list the -// Evaluation Sets. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsEvaluationSetsService) List(parent string) *ProjectsLocationsEvaluationSetsListCall { - c := &ProjectsLocationsEvaluationSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Evaluation Runs. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsEvaluationRunsService) List(parent string) *ProjectsLocationsEvaluationRunsListCall { + c := &ProjectsLocationsEvaluationRunsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // Filter sets the optional parameter "filter": Filter expression that matches -// a subset of the EvaluationSets to show. For field names both snake_case and +// a subset of the EvaluationRuns to show. For field names both snake_case and // camelCase are supported. For more information about filter syntax, see // AIP-160 (https://google.aip.dev/160). -func (c *ProjectsLocationsEvaluationSetsListCall) Filter(filter string) *ProjectsLocationsEvaluationSetsListCall { +func (c *ProjectsLocationsEvaluationRunsListCall) Filter(filter string) *ProjectsLocationsEvaluationRunsListCall { c.urlParams_.Set("filter", filter) return c } @@ -94379,22 +95955,22 @@ func (c *ProjectsLocationsEvaluationSetsListCall) Filter(filter string) *Project // OrderBy sets the optional parameter "orderBy": A comma-separated list of // fields to order by, sorted in ascending order by default. Use `desc` after a // field name for descending. -func (c *ProjectsLocationsEvaluationSetsListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationSetsListCall { +func (c *ProjectsLocationsEvaluationRunsListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationRunsListCall { c.urlParams_.Set("orderBy", orderBy) return c } // PageSize sets the optional parameter "pageSize": The maximum number of -// Evaluation Sets to return. -func (c *ProjectsLocationsEvaluationSetsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationSetsListCall { +// Evaluation Runs to return. +func (c *ProjectsLocationsEvaluationRunsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationRunsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token, received -// from a previous `ListEvaluationSets` call. Provide this to retrieve the +// from a previous `ListEvaluationRuns` call. Provide this to retrieve the // subsequent page. -func (c *ProjectsLocationsEvaluationSetsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationSetsListCall { +func (c *ProjectsLocationsEvaluationRunsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationRunsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -94402,7 +95978,7 @@ func (c *ProjectsLocationsEvaluationSetsListCall) PageToken(pageToken string) *P // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsEvaluationSetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationSetsListCall { +func (c *ProjectsLocationsEvaluationRunsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationRunsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -94410,34 +95986,34 @@ func (c *ProjectsLocationsEvaluationSetsListCall) Fields(s ...googleapi.Field) * // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsEvaluationSetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationSetsListCall { +func (c *ProjectsLocationsEvaluationRunsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationRunsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEvaluationSetsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationSetsListCall { +func (c *ProjectsLocationsEvaluationRunsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationRunsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsEvaluationSetsListCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationRunsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationSetsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEvaluationRunsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluationSets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluationRuns") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -94447,17 +96023,17 @@ func (c *ProjectsLocationsEvaluationSetsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.evaluationSets.list" call. +// Do executes the "aiplatform.projects.locations.evaluationRuns.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1ListEvaluationSetsResponse.ServerResponse.Header or +// *GoogleCloudAiplatformV1ListEvaluationRunsResponse.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 *ProjectsLocationsEvaluationSetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListEvaluationSetsResponse, error) { +func (c *ProjectsLocationsEvaluationRunsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListEvaluationRunsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94476,7 +96052,7 @@ func (c *ProjectsLocationsEvaluationSetsListCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListEvaluationSetsResponse{ + ret := &GoogleCloudAiplatformV1ListEvaluationRunsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -94487,14 +96063,14 @@ func (c *ProjectsLocationsEvaluationSetsListCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationRuns.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsEvaluationSetsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListEvaluationSetsResponse) error) error { +func (c *ProjectsLocationsEvaluationRunsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListEvaluationRunsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -94512,58 +96088,50 @@ func (c *ProjectsLocationsEvaluationSetsListCall) Pages(ctx context.Context, f f } } -type ProjectsLocationsEvaluationSetsPatchCall struct { +type ProjectsLocationsEvaluationSetsCreateCall struct { s *Service - name string + parent string googlecloudaiplatformv1evaluationset *GoogleCloudAiplatformV1EvaluationSet urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Patch: Updates an Evaluation Set. +// Create: Creates an Evaluation Set. // -// - name: Identifier. The resource name of the EvaluationSet. Format: -// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`. -func (r *ProjectsLocationsEvaluationSetsService) Patch(name string, googlecloudaiplatformv1evaluationset *GoogleCloudAiplatformV1EvaluationSet) *ProjectsLocationsEvaluationSetsPatchCall { - c := &ProjectsLocationsEvaluationSetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to create the Evaluation Set in. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsEvaluationSetsService) Create(parent string, googlecloudaiplatformv1evaluationset *GoogleCloudAiplatformV1EvaluationSet) *ProjectsLocationsEvaluationSetsCreateCall { + c := &ProjectsLocationsEvaluationSetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent c.googlecloudaiplatformv1evaluationset = googlecloudaiplatformv1evaluationset return c } -// UpdateMask sets the optional parameter "updateMask": The update mask applies -// to the resource. For the `FieldMask` definition, see -// google.protobuf.FieldMask. -func (c *ProjectsLocationsEvaluationSetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEvaluationSetsPatchCall { - c.urlParams_.Set("updateMask", updateMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsEvaluationSetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationSetsPatchCall { +func (c *ProjectsLocationsEvaluationSetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationSetsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsEvaluationSetsPatchCall) Context(ctx context.Context) *ProjectsLocationsEvaluationSetsPatchCall { +func (c *ProjectsLocationsEvaluationSetsCreateCall) Context(ctx context.Context) *ProjectsLocationsEvaluationSetsCreateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsEvaluationSetsPatchCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationSetsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationSetsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEvaluationSetsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1evaluationset) if err != nil { @@ -94571,27 +96139,618 @@ func (c *ProjectsLocationsEvaluationSetsPatchCall) doRequest(alt string) (*http. } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluationSets") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + 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, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.evaluationSets.patch" call. +// Do executes the "aiplatform.projects.locations.evaluationSets.create" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleCloudAiplatformV1EvaluationSet.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 *ProjectsLocationsEvaluationSetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EvaluationSet, error) { +func (c *ProjectsLocationsEvaluationSetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EvaluationSet, 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 := &GoogleCloudAiplatformV1EvaluationSet{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsEvaluationSetsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an Evaluation Set. +// +// - name: The name of the EvaluationSet resource to be deleted. Format: +// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`. +func (r *ProjectsLocationsEvaluationSetsService) Delete(name string) *ProjectsLocationsEvaluationSetsDeleteCall { + c := &ProjectsLocationsEvaluationSetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsEvaluationSetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationSetsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEvaluationSetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEvaluationSetsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsEvaluationSetsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluationSetsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.evaluationSets.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsEvaluationSetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsEvaluationSetsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an Evaluation Set. +// +// - name: The name of the EvaluationSet resource. Format: +// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`. +func (r *ProjectsLocationsEvaluationSetsService) Get(name string) *ProjectsLocationsEvaluationSetsGetCall { + c := &ProjectsLocationsEvaluationSetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsEvaluationSetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationSetsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsEvaluationSetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationSetsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEvaluationSetsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationSetsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsEvaluationSetsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluationSetsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.evaluationSets.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1EvaluationSet.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 *ProjectsLocationsEvaluationSetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EvaluationSet, 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 := &GoogleCloudAiplatformV1EvaluationSet{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsEvaluationSetsImportCall struct { + s *Service + parent string + googlecloudaiplatformv1importevaluationsetrequest *GoogleCloudAiplatformV1ImportEvaluationSetRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Import: Imports an Evaluation Set. +// +// - parent: Parent resource name. +func (r *ProjectsLocationsEvaluationSetsService) Import(parent string, googlecloudaiplatformv1importevaluationsetrequest *GoogleCloudAiplatformV1ImportEvaluationSetRequest) *ProjectsLocationsEvaluationSetsImportCall { + c := &ProjectsLocationsEvaluationSetsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1importevaluationsetrequest = googlecloudaiplatformv1importevaluationsetrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsEvaluationSetsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationSetsImportCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEvaluationSetsImportCall) Context(ctx context.Context) *ProjectsLocationsEvaluationSetsImportCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsEvaluationSetsImportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluationSetsImportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1importevaluationsetrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluationSets:import") + 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{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.import", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.evaluationSets.import" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsEvaluationSetsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.import", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsEvaluationSetsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Evaluation Sets. +// +// - parent: The resource name of the Location from which to list the +// Evaluation Sets. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsEvaluationSetsService) List(parent string) *ProjectsLocationsEvaluationSetsListCall { + c := &ProjectsLocationsEvaluationSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter expression that matches +// a subset of the EvaluationSets to show. For field names both snake_case and +// camelCase are supported. For more information about filter syntax, see +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsEvaluationSetsListCall) Filter(filter string) *ProjectsLocationsEvaluationSetsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": A comma-separated list of +// fields to order by, sorted in ascending order by default. Use `desc` after a +// field name for descending. +func (c *ProjectsLocationsEvaluationSetsListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationSetsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// Evaluation Sets to return. +func (c *ProjectsLocationsEvaluationSetsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationSetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListEvaluationSets` call. Provide this to retrieve the +// subsequent page. +func (c *ProjectsLocationsEvaluationSetsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationSetsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsEvaluationSetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationSetsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsEvaluationSetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationSetsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEvaluationSetsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationSetsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsEvaluationSetsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluationSetsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluationSets") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.evaluationSets.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1ListEvaluationSetsResponse.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 *ProjectsLocationsEvaluationSetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListEvaluationSetsResponse, 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 := &GoogleCloudAiplatformV1ListEvaluationSetsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsEvaluationSetsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListEvaluationSetsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsEvaluationSetsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1evaluationset *GoogleCloudAiplatformV1EvaluationSet + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an Evaluation Set. +// +// - name: Identifier. The resource name of the EvaluationSet. Format: +// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`. +func (r *ProjectsLocationsEvaluationSetsService) Patch(name string, googlecloudaiplatformv1evaluationset *GoogleCloudAiplatformV1EvaluationSet) *ProjectsLocationsEvaluationSetsPatchCall { + c := &ProjectsLocationsEvaluationSetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1evaluationset = googlecloudaiplatformv1evaluationset + return c +} + +// UpdateMask sets the optional parameter "updateMask": The update mask applies +// to the resource. For the `FieldMask` definition, see +// google.protobuf.FieldMask. +func (c *ProjectsLocationsEvaluationSetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEvaluationSetsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsEvaluationSetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationSetsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEvaluationSetsPatchCall) Context(ctx context.Context) *ProjectsLocationsEvaluationSetsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsEvaluationSetsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluationSetsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1evaluationset) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.evaluationSets.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.evaluationSets.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1EvaluationSet.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 *ProjectsLocationsEvaluationSetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EvaluationSet, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -104921,27 +107080,1938 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Del // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) List(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// ListOperationsResponse.unreachable field. This can only be `true` when +// reading across collections. For example, when `parent` is set to +// "projects/example/locations/-". This field is not supported by default and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, 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 := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or reaches at +// most a specified timeout, returning the latest state. If the operation is +// already done, the latest state is immediately returned. If the timeout +// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout +// is used. If the server does not support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort +// basis. It may return the latest state before the specified timeout +// (including immediately), meaning even an immediate response is no guarantee +// that the operation is done. +// +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration to wait +// before timing out. If left blank, the wait will be at most the time +// permitted by the underlying HTTP/RPC protocol. If RPC context deadline is +// also specified, the shorter one will be used. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of `1`, corresponding to +// `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Cancel(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { + c := &ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { + c := &ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { + c := &ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsFeaturestoresEntityTypesOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) List(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + c := &ProjectsLocationsFeaturestoresEntityTypesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// ListOperationsResponse.unreachable field. This can only be `true` when +// reading across collections. For example, when `parent` is set to +// "projects/example/locations/-". This field is not supported by default and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, 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 := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or reaches at +// most a specified timeout, returning the latest state. If the operation is +// already done, the latest state is immediately returned. If the timeout +// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout +// is used. If the server does not support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort +// basis. It may return the latest state before the specified timeout +// (including immediately), meaning even an immediate response is no guarantee +// that the operation is done. +// +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { + c := &ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration to wait +// before timing out. If left blank, the wait will be at most the time +// permitted by the underlying HTTP/RPC protocol. If RPC context deadline is +// also specified, the shorter one will be used. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.wait", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.wait" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.wait", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsFeaturestoresOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of `1`, corresponding to +// `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsFeaturestoresOperationsService) Cancel(name string) *ProjectsLocationsFeaturestoresOperationsCancelCall { + c := &ProjectsLocationsFeaturestoresOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.operations.cancel" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsFeaturestoresOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.cancel", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsFeaturestoresOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsFeaturestoresOperationsService) Delete(name string) *ProjectsLocationsFeaturestoresOperationsDeleteCall { + c := &ProjectsLocationsFeaturestoresOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.operations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsFeaturestoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsFeaturestoresOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsFeaturestoresOperationsService) Get(name string) *ProjectsLocationsFeaturestoresOperationsGetCall { + c := &ProjectsLocationsFeaturestoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsFeaturestoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.operations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsFeaturestoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsFeaturestoresOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsFeaturestoresOperationsService) List(name string) *ProjectsLocationsFeaturestoresOperationsListCall { + c := &ProjectsLocationsFeaturestoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsFeaturestoresOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsFeaturestoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsFeaturestoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// ListOperationsResponse.unreachable field. This can only be `true` when +// reading across collections. For example, when `parent` is set to +// "projects/example/locations/-". This field is not supported by default and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsFeaturestoresOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsFeaturestoresOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeaturestoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsFeaturestoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeaturestoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeaturestoresOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.operations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsFeaturestoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, 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 := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeaturestoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsFeaturestoresOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or reaches at +// most a specified timeout, returning the latest state. If the operation is +// already done, the latest state is immediately returned. If the timeout +// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout +// is used. If the server does not support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort +// basis. It may return the latest state before the specified timeout +// (including immediately), meaning even an immediate response is no guarantee +// that the operation is done. +// +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsFeaturestoresOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresOperationsWaitCall { + c := &ProjectsLocationsFeaturestoresOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration to wait +// before timing out. If left blank, the wait will be at most the time +// permitted by the underlying HTTP/RPC protocol. If RPC context deadline is +// also specified, the shorter one will be used. +func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsWaitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsWaitCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.wait", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.operations.wait" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsFeaturestoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.wait", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsHyperparameterTuningJobsCancelCall struct { + s *Service + name string + googlecloudaiplatformv1cancelhyperparametertuningjobrequest *GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Cancels a HyperparameterTuningJob. Starts asynchronous cancellation +// on the HyperparameterTuningJob. The server makes a best effort to cancel the +// job, but success is not guaranteed. Clients can use +// JobService.GetHyperparameterTuningJob or other methods to check whether the +// cancellation succeeded or whether the job completed despite cancellation. On +// successful cancellation, the HyperparameterTuningJob is not deleted; instead +// it becomes a job with a HyperparameterTuningJob.error value with a +// google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and +// HyperparameterTuningJob.state is set to `CANCELLED`. +// +// - name: The name of the HyperparameterTuningJob to cancel. Format: +// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperpar +// ameter_tuning_job}`. +func (r *ProjectsLocationsHyperparameterTuningJobsService) Cancel(name string, googlecloudaiplatformv1cancelhyperparametertuningjobrequest *GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest) *ProjectsLocationsHyperparameterTuningJobsCancelCall { + c := &ProjectsLocationsHyperparameterTuningJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1cancelhyperparametertuningjobrequest = googlecloudaiplatformv1cancelhyperparametertuningjobrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1cancelhyperparametertuningjobrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + 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, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.cancel", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.cancel" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsLocationsHyperparameterTuningJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.cancel", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsHyperparameterTuningJobsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1hyperparametertuningjob *GoogleCloudAiplatformV1HyperparameterTuningJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a HyperparameterTuningJob +// +// - parent: The resource name of the Location to create the +// HyperparameterTuningJob in. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsHyperparameterTuningJobsService) Create(parent string, googlecloudaiplatformv1hyperparametertuningjob *GoogleCloudAiplatformV1HyperparameterTuningJob) *ProjectsLocationsHyperparameterTuningJobsCreateCall { + c := &ProjectsLocationsHyperparameterTuningJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1hyperparametertuningjob = googlecloudaiplatformv1hyperparametertuningjob + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1hyperparametertuningjob) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hyperparameterTuningJobs") + 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{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1HyperparameterTuningJob.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 *ProjectsLocationsHyperparameterTuningJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1HyperparameterTuningJob, 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 := &GoogleCloudAiplatformV1HyperparameterTuningJob{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsHyperparameterTuningJobsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a HyperparameterTuningJob. +// +// - name: The name of the HyperparameterTuningJob resource to be deleted. +// Format: +// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperpar +// ameter_tuning_job}`. +func (r *ProjectsLocationsHyperparameterTuningJobsService) Delete(name string) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { + c := &ProjectsLocationsHyperparameterTuningJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall { +func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -104955,17 +109025,17 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete" call. +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// *GoogleLongrunningOperation.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 *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -104984,7 +109054,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -104995,11 +109065,11 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall struct { +type ProjectsLocationsHyperparameterTuningJobsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -105008,13 +109078,13 @@ type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can use this -// method to poll the operation result at intervals as recommended by the API -// service. +// Get: Gets a HyperparameterTuningJob // -// - name: The name of the operation resource. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the HyperparameterTuningJob resource. Format: +// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperpar +// ameter_tuning_job}`. +func (r *ProjectsLocationsHyperparameterTuningJobsService) Get(name string) *ProjectsLocationsHyperparameterTuningJobsGetCall { + c := &ProjectsLocationsHyperparameterTuningJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -105022,7 +109092,7 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Get // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -105030,27 +109100,27 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Fie // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -105067,17 +109137,17 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get" call. +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudAiplatformV1HyperparameterTuningJob.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1HyperparameterTuningJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -105096,7 +109166,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Do( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1HyperparameterTuningJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -105107,66 +109177,73 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Do( if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall struct { +type ProjectsLocationsHyperparameterTuningJobsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists operations that match the specified filter in the request. If -// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// List: Lists HyperparameterTuningJobs in a Location. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) List(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to list the +// HyperparameterTuningJobs from. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsHyperparameterTuningJobsService) List(parent string) *ProjectsLocationsHyperparameterTuningJobsListCall { + c := &ProjectsLocationsHyperparameterTuningJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { +// Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` +// wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports +// `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 +// format. * `labels` supports general map functions that is: +// `labels.key=value` - key:value equality `labels.key:* - key existence Some +// examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND +// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR +// display_name="my_job" * `NOT display_name="my_job" * +// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * +// `labels.keyB:*` +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Filter(filter string) *ProjectsLocationsHyperparameterTuningJobsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) PageSize(pageSize int64) *ProjectsLocationsHyperparameterTuningJobsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page -// token. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { +// token. Typically obtained via +// ListHyperparameterTuningJobsResponse.next_page_token of the previous +// JobService.ListHyperparameterTuningJobs call. +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) PageToken(pageToken string) *ProjectsLocationsHyperparameterTuningJobsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": -// When set to `true`, operations that are reachable are returned as normal, -// and those that are unreachable are returned in the -// ListOperationsResponse.unreachable field. This can only be `true` when -// reading across collections. For example, when `parent` is set to -// "projects/example/locations/-". This field is not supported by default and -// will result in an `UNIMPLEMENTED` error if set unless explicitly documented -// otherwise in service or product specific documentation. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) +// ReadMask sets the optional parameter "readMask": Mask specifying which +// fields to read. +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) ReadMask(readMask string) *ProjectsLocationsHyperparameterTuningJobsListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -105174,34 +109251,34 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Fi // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hyperparameterTuningJobs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -105209,19 +109286,19 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) do } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list" call. +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// *GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse.ServerResponse.H +// eader 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 *ProjectsLocationsHyperparameterTuningJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -105240,7 +109317,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Do if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -105251,14 +109328,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Do if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -105276,122 +109353,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Pa } } -type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Wait: Waits until the specified long-running operation is done or reaches at -// most a specified timeout, returning the latest state. If the operation is -// already done, the latest state is immediately returned. If the timeout -// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout -// is used. If the server does not support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort -// basis. It may return the latest state before the specified timeout -// (including immediately), meaning even an immediate response is no guarantee -// that the operation is done. -// -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Timeout sets the optional parameter "timeout": The maximum duration to wait -// before timing out. If left blank, the wait will be at most the time -// permitted by the underlying HTTP/RPC protocol. If RPC context deadline is -// also specified, the shorter one will be used. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall struct { +type ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -105410,8 +109372,8 @@ type ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Cancel(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { - c := &ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Cancel(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { + c := &ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -105419,27 +109381,27 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Cancel(name // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -105453,17 +109415,17 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -105493,11 +109455,11 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Do(opts if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall struct { +type ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -105511,8 +109473,8 @@ type ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { - c := &ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Delete(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { + c := &ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -105520,27 +109482,27 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Delete(name // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -105554,17 +109516,17 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.delete" call. +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -105594,11 +109556,11 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Do(opts if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall struct { +type ProjectsLocationsHyperparameterTuningJobsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -105612,8 +109574,8 @@ type ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { - c := &ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Get(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { + c := &ProjectsLocationsHyperparameterTuningJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -105621,7 +109583,7 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Get(name st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -105629,27 +109591,27 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Fields(s .. // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -105666,17 +109628,17 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.get" call. +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -105706,11 +109668,11 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Do(opts ... if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsFeaturestoresEntityTypesOperationsListCall struct { +type ProjectsLocationsHyperparameterTuningJobsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -105723,28 +109685,28 @@ type ProjectsLocationsFeaturestoresEntityTypesOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) List(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { - c := &ProjectsLocationsFeaturestoresEntityTypesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) List(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { + c := &ProjectsLocationsHyperparameterTuningJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Filter(filter string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -105757,7 +109719,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) PageToken( // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -105765,7 +109727,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) ReturnPart // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -105773,27 +109735,27 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Fields(s . // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -105810,17 +109772,17 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.list" call. +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -105850,14 +109812,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Do(opts .. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -105875,7 +109837,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Pages(ctx } } -type ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall struct { +type ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -105894,8 +109856,8 @@ type ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { - c := &ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Wait(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { + c := &ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -105904,7 +109866,7 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Wait(name s // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -105912,27 +109874,27 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Timeout(ti // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -105946,17 +109908,17 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.wait" call. +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -105986,83 +109948,82 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Do(opts .. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.entityTypes.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsFeaturestoresOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1indexendpoint *GoogleCloudAiplatformV1IndexEndpoint + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. The -// server makes a best effort to cancel the operation, but success is not -// guaranteed. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or -// other methods to check whether the cancellation succeeded or whether the -// operation completed despite cancellation. On successful cancellation, the -// operation is not deleted; instead, it becomes an operation with an -// Operation.error value with a google.rpc.Status.code of `1`, corresponding to -// `Code.CANCELLED`. +// Create: Creates an IndexEndpoint. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsFeaturestoresOperationsService) Cancel(name string) *ProjectsLocationsFeaturestoresOperationsCancelCall { - c := &ProjectsLocationsFeaturestoresOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to create the IndexEndpoint in. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsIndexEndpointsService) Create(parent string, googlecloudaiplatformv1indexendpoint *GoogleCloudAiplatformV1IndexEndpoint) *ProjectsLocationsIndexEndpointsCreateCall { + c := &ProjectsLocationsIndexEndpointsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1indexendpoint = googlecloudaiplatformv1indexendpoint return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsCancelCall { +func (c *ProjectsLocationsIndexEndpointsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsCancelCall { +func (c *ProjectsLocationsIndexEndpointsCreateCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsCreateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsLocationsIndexEndpointsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1indexendpoint) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/indexEndpoints") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, nil) + 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, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.create" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.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 *ProjectsLocationsFeaturestoresOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// *GoogleLongrunningOperation.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 *ProjectsLocationsIndexEndpointsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -106081,7 +110042,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -106092,11 +110053,11 @@ func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Do(opts ...googleap if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsFeaturestoresOperationsDeleteCall struct { +type ProjectsLocationsIndexEndpointsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -106104,14 +110065,12 @@ type ProjectsLocationsFeaturestoresOperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that the -// client is no longer interested in the operation result. It does not cancel -// the operation. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes an IndexEndpoint. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeaturestoresOperationsService) Delete(name string) *ProjectsLocationsFeaturestoresOperationsDeleteCall { - c := &ProjectsLocationsFeaturestoresOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the IndexEndpoint resource to be deleted. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`. +func (r *ProjectsLocationsIndexEndpointsService) Delete(name string) *ProjectsLocationsIndexEndpointsDeleteCall { + c := &ProjectsLocationsIndexEndpointsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -106119,27 +110078,27 @@ func (r *ProjectsLocationsFeaturestoresOperationsService) Delete(name string) *P // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -106153,17 +110112,17 @@ func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.operations.delete" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.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 *ProjectsLocationsFeaturestoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// *GoogleLongrunningOperation.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 *ProjectsLocationsIndexEndpointsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -106182,7 +110141,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -106193,89 +110152,84 @@ func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Do(opts ...googleap if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsFeaturestoresOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsDeployIndexCall struct { + s *Service + indexEndpoint string + googlecloudaiplatformv1deployindexrequest *GoogleCloudAiplatformV1DeployIndexRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can use this -// method to poll the operation result at intervals as recommended by the API -// service. +// DeployIndex: Deploys an Index into this IndexEndpoint, creating a +// DeployedIndex within it. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsFeaturestoresOperationsService) Get(name string) *ProjectsLocationsFeaturestoresOperationsGetCall { - c := &ProjectsLocationsFeaturestoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - indexEndpoint: The name of the IndexEndpoint resource into which to deploy +// an Index. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`. +func (r *ProjectsLocationsIndexEndpointsService) DeployIndex(indexEndpoint string, googlecloudaiplatformv1deployindexrequest *GoogleCloudAiplatformV1DeployIndexRequest) *ProjectsLocationsIndexEndpointsDeployIndexCall { + c := &ProjectsLocationsIndexEndpointsDeployIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.indexEndpoint = indexEndpoint + c.googlecloudaiplatformv1deployindexrequest = googlecloudaiplatformv1deployindexrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsGetCall { +func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsDeployIndexCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsFeaturestoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresOperationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsGetCall { +func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsDeployIndexCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1deployindexrequest) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+indexEndpoint}:deployIndex") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + 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, + "indexEndpoint": c.indexEndpoint, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.deployIndex", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.operations.get" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.deployIndex" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsFeaturestoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -106305,121 +110259,83 @@ func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Do(opts ...googleapi.C if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.deployIndex", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsFeaturestoresOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsFindNeighborsCall struct { + s *Service + indexEndpoint string + googlecloudaiplatformv1findneighborsrequest *GoogleCloudAiplatformV1FindNeighborsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists operations that match the specified filter in the request. If -// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// FindNeighbors: Finds the nearest neighbors of each vector within the +// request. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeaturestoresOperationsService) List(name string) *ProjectsLocationsFeaturestoresOperationsListCall { - c := &ProjectsLocationsFeaturestoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list filter. -func (c *ProjectsLocationsFeaturestoresOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list page -// size. -func (c *ProjectsLocationsFeaturestoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list page -// token. -func (c *ProjectsLocationsFeaturestoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": -// When set to `true`, operations that are reachable are returned as normal, -// and those that are unreachable are returned in the -// ListOperationsResponse.unreachable field. This can only be `true` when -// reading across collections. For example, when `parent` is set to -// "projects/example/locations/-". This field is not supported by default and -// will result in an `UNIMPLEMENTED` error if set unless explicitly documented -// otherwise in service or product specific documentation. -func (c *ProjectsLocationsFeaturestoresOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsFeaturestoresOperationsListCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) +// - indexEndpoint: The name of the index endpoint. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`. +func (r *ProjectsLocationsIndexEndpointsService) FindNeighbors(indexEndpoint string, googlecloudaiplatformv1findneighborsrequest *GoogleCloudAiplatformV1FindNeighborsRequest) *ProjectsLocationsIndexEndpointsFindNeighborsCall { + c := &ProjectsLocationsIndexEndpointsFindNeighborsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.indexEndpoint = indexEndpoint + c.googlecloudaiplatformv1findneighborsrequest = googlecloudaiplatformv1findneighborsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFeaturestoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsFindNeighborsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsFeaturestoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresOperationsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFeaturestoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsFindNeighborsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsFeaturestoresOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1findneighborsrequest) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+indexEndpoint}:findNeighbors") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + 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, + "indexEndpoint": c.indexEndpoint, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.findNeighbors", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.operations.list" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.findNeighbors" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// *GoogleCloudAiplatformV1FindNeighborsResponse.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 *ProjectsLocationsFeaturestoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1FindNeighborsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -106438,7 +110354,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsListCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1FindNeighborsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -106449,95 +110365,70 @@ func (c *ProjectsLocationsFeaturestoresOperationsListCall) Do(opts ...googleapi. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.findNeighbors", "response", internallog.HTTPResponse(res, b)) return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsFeaturestoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type ProjectsLocationsFeaturestoresOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Wait: Waits until the specified long-running operation is done or reaches at -// most a specified timeout, returning the latest state. If the operation is -// already done, the latest state is immediately returned. If the timeout -// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout -// is used. If the server does not support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort -// basis. It may return the latest state before the specified timeout -// (including immediately), meaning even an immediate response is no guarantee -// that the operation is done. +// Get: Gets an IndexEndpoint. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeaturestoresOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresOperationsWaitCall { - c := &ProjectsLocationsFeaturestoresOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the IndexEndpoint resource. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`. +func (r *ProjectsLocationsIndexEndpointsService) Get(name string) *ProjectsLocationsIndexEndpointsGetCall { + c := &ProjectsLocationsIndexEndpointsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Timeout sets the optional parameter "timeout": The maximum duration to wait -// before timing out. If left blank, the wait will be at most the time -// permitted by the underlying HTTP/RPC protocol. If RPC context deadline is -// also specified, the shorter one will be used. -func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsIndexEndpointsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, nil) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -106545,17 +110436,17 @@ func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.operations.wait" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudAiplatformV1IndexEndpoint.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 *ProjectsLocationsFeaturestoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexEndpointsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1IndexEndpoint, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -106574,7 +110465,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1IndexEndpoint{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -106585,91 +110476,126 @@ func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Do(opts ...googleapi. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.featurestores.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsHyperparameterTuningJobsCancelCall struct { - s *Service - name string - googlecloudaiplatformv1cancelhyperparametertuningjobrequest *GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Cancel: Cancels a HyperparameterTuningJob. Starts asynchronous cancellation -// on the HyperparameterTuningJob. The server makes a best effort to cancel the -// job, but success is not guaranteed. Clients can use -// JobService.GetHyperparameterTuningJob or other methods to check whether the -// cancellation succeeded or whether the job completed despite cancellation. On -// successful cancellation, the HyperparameterTuningJob is not deleted; instead -// it becomes a job with a HyperparameterTuningJob.error value with a -// google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and -// HyperparameterTuningJob.state is set to `CANCELLED`. +// List: Lists IndexEndpoints in a Location. // -// - name: The name of the HyperparameterTuningJob to cancel. Format: -// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperpar -// ameter_tuning_job}`. -func (r *ProjectsLocationsHyperparameterTuningJobsService) Cancel(name string, googlecloudaiplatformv1cancelhyperparametertuningjobrequest *GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest) *ProjectsLocationsHyperparameterTuningJobsCancelCall { - c := &ProjectsLocationsHyperparameterTuningJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1cancelhyperparametertuningjobrequest = googlecloudaiplatformv1cancelhyperparametertuningjobrequest +// - parent: The resource name of the Location from which to list the +// IndexEndpoints. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsIndexEndpointsService) List(parent string) *ProjectsLocationsIndexEndpointsListCall { + c := &ProjectsLocationsIndexEndpointsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for filtering the +// results of the request. For field names both snake_case and camelCase are +// supported. * `index_endpoint` supports = and !=. `index_endpoint` represents +// the IndexEndpoint ID, ie. the last segment of the IndexEndpoint's +// resourcename. * `display_name` supports =, != and regex() (uses re2 +// (https://github.com/google/re2/wiki/Syntax) syntax) * `labels` supports +// general map functions that is: `labels.key=value` - key:value equality +// `labels.key:* or labels:key - key existence A key including a space must be +// quoted. `labels."a key". Some examples: * `index_endpoint="1" * +// `display_name="myDisplayName" * `regex(display_name, "^A") -> The display +// name starts with an A. * `labels.myKey="myValue" +func (c *ProjectsLocationsIndexEndpointsListCall) Filter(filter string) *ProjectsLocationsIndexEndpointsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsIndexEndpointsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexEndpointsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. Typically obtained via ListIndexEndpointsResponse.next_page_token of +// the previous IndexEndpointService.ListIndexEndpoints call. +func (c *ProjectsLocationsIndexEndpointsListCall) PageToken(pageToken string) *ProjectsLocationsIndexEndpointsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying which +// fields to read. +func (c *ProjectsLocationsIndexEndpointsListCall) ReadMask(readMask string) *ProjectsLocationsIndexEndpointsListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsCancelCall { +func (c *ProjectsLocationsIndexEndpointsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsIndexEndpointsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsCancelCall { +func (c *ProjectsLocationsIndexEndpointsListCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1cancelhyperparametertuningjobrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsIndexEndpointsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/indexEndpoints") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.cancel", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.cancel" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.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 *ProjectsLocationsHyperparameterTuningJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// *GoogleCloudAiplatformV1ListIndexEndpointsResponse.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 *ProjectsLocationsIndexEndpointsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListIndexEndpointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -106688,7 +110614,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1ListIndexEndpointsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -106699,63 +110625,85 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Do(opts ...googlea if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsHyperparameterTuningJobsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1hyperparametertuningjob *GoogleCloudAiplatformV1HyperparameterTuningJob - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsIndexEndpointsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListIndexEndpointsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// Create: Creates a HyperparameterTuningJob +type ProjectsLocationsIndexEndpointsMutateDeployedIndexCall struct { + s *Service + indexEndpoint string + googlecloudaiplatformv1deployedindex *GoogleCloudAiplatformV1DeployedIndex + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// MutateDeployedIndex: Update an existing DeployedIndex under an +// IndexEndpoint. // -// - parent: The resource name of the Location to create the -// HyperparameterTuningJob in. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsHyperparameterTuningJobsService) Create(parent string, googlecloudaiplatformv1hyperparametertuningjob *GoogleCloudAiplatformV1HyperparameterTuningJob) *ProjectsLocationsHyperparameterTuningJobsCreateCall { - c := &ProjectsLocationsHyperparameterTuningJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1hyperparametertuningjob = googlecloudaiplatformv1hyperparametertuningjob +// - indexEndpoint: The name of the IndexEndpoint resource into which to deploy +// an Index. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`. +func (r *ProjectsLocationsIndexEndpointsService) MutateDeployedIndex(indexEndpoint string, googlecloudaiplatformv1deployedindex *GoogleCloudAiplatformV1DeployedIndex) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { + c := &ProjectsLocationsIndexEndpointsMutateDeployedIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.indexEndpoint = indexEndpoint + c.googlecloudaiplatformv1deployedindex = googlecloudaiplatformv1deployedindex return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsCreateCall { +func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsCreateCall { +func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1hyperparametertuningjob) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1deployedindex) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hyperparameterTuningJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+indexEndpoint}:mutateDeployedIndex") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -106763,19 +110711,19 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) doRequest(alt stri } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "indexEndpoint": c.indexEndpoint, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.mutateDeployedIndex", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.create" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.mutateDeployedIndex" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1HyperparameterTuningJob.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleLongrunningOperation.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 *ProjectsLocationsHyperparameterTuningJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1HyperparameterTuningJob, error) { +func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -106794,7 +110742,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1HyperparameterTuningJob{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -106805,60 +110753,70 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Do(opts ...googlea if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.mutateDeployedIndex", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsHyperparameterTuningJobsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1indexendpoint *GoogleCloudAiplatformV1IndexEndpoint + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a HyperparameterTuningJob. +// Patch: Updates an IndexEndpoint. // -// - name: The name of the HyperparameterTuningJob resource to be deleted. -// Format: -// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperpar -// ameter_tuning_job}`. -func (r *ProjectsLocationsHyperparameterTuningJobsService) Delete(name string) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { - c := &ProjectsLocationsHyperparameterTuningJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. The resource name of the IndexEndpoint. +func (r *ProjectsLocationsIndexEndpointsService) Patch(name string, googlecloudaiplatformv1indexendpoint *GoogleCloudAiplatformV1IndexEndpoint) *ProjectsLocationsIndexEndpointsPatchCall { + c := &ProjectsLocationsIndexEndpointsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1indexendpoint = googlecloudaiplatformv1indexendpoint + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The update +// mask applies to the resource. See google.protobuf.FieldMask. +func (c *ProjectsLocationsIndexEndpointsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIndexEndpointsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsPatchCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsPatchCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsLocationsIndexEndpointsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1indexendpoint) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -106866,17 +110824,17 @@ func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.delete" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.patch" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudAiplatformV1IndexEndpoint.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 *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexEndpointsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1IndexEndpoint, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -106895,7 +110853,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1IndexEndpoint{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -106906,89 +110864,83 @@ func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Do(opts ...googlea if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsHyperparameterTuningJobsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsReadIndexDatapointsCall struct { + s *Service + indexEndpoint string + googlecloudaiplatformv1readindexdatapointsrequest *GoogleCloudAiplatformV1ReadIndexDatapointsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a HyperparameterTuningJob +// ReadIndexDatapoints: Reads the datapoints/vectors of the given IDs. A +// maximum of 1000 datapoints can be retrieved in a batch. // -// - name: The name of the HyperparameterTuningJob resource. Format: -// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperpar -// ameter_tuning_job}`. -func (r *ProjectsLocationsHyperparameterTuningJobsService) Get(name string) *ProjectsLocationsHyperparameterTuningJobsGetCall { - c := &ProjectsLocationsHyperparameterTuningJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - indexEndpoint: The name of the index endpoint. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`. +func (r *ProjectsLocationsIndexEndpointsService) ReadIndexDatapoints(indexEndpoint string, googlecloudaiplatformv1readindexdatapointsrequest *GoogleCloudAiplatformV1ReadIndexDatapointsRequest) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { + c := &ProjectsLocationsIndexEndpointsReadIndexDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.indexEndpoint = indexEndpoint + c.googlecloudaiplatformv1readindexdatapointsrequest = googlecloudaiplatformv1readindexdatapointsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsGetCall { +func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsGetCall { +func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1readindexdatapointsrequest) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+indexEndpoint}:readIndexDatapoints") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + 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, + "indexEndpoint": c.indexEndpoint, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.get" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1HyperparameterTuningJob.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudAiplatformV1ReadIndexDatapointsResponse.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 *ProjectsLocationsHyperparameterTuningJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1HyperparameterTuningJob, error) { +func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ReadIndexDatapointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -107007,7 +110959,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1HyperparameterTuningJob{ + ret := &GoogleCloudAiplatformV1ReadIndexDatapointsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -107018,128 +110970,84 @@ func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Do(opts ...googleapi. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsHyperparameterTuningJobsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsUndeployIndexCall struct { + s *Service + indexEndpoint string + googlecloudaiplatformv1undeployindexrequest *GoogleCloudAiplatformV1UndeployIndexRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists HyperparameterTuningJobs in a Location. +// UndeployIndex: Undeploys an Index from an IndexEndpoint, removing a +// DeployedIndex from it, and freeing all resources it's using. // -// - parent: The resource name of the Location to list the -// HyperparameterTuningJobs from. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsHyperparameterTuningJobsService) List(parent string) *ProjectsLocationsHyperparameterTuningJobsListCall { - c := &ProjectsLocationsHyperparameterTuningJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": The standard list filter. -// Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` -// wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports -// `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 -// format. * `labels` supports general map functions that is: -// `labels.key=value` - key:value equality `labels.key:* - key existence Some -// examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND -// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR -// display_name="my_job" * `NOT display_name="my_job" * -// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * -// `labels.keyB:*` -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Filter(filter string) *ProjectsLocationsHyperparameterTuningJobsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list page -// size. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) PageSize(pageSize int64) *ProjectsLocationsHyperparameterTuningJobsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list page -// token. Typically obtained via -// ListHyperparameterTuningJobsResponse.next_page_token of the previous -// JobService.ListHyperparameterTuningJobs call. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) PageToken(pageToken string) *ProjectsLocationsHyperparameterTuningJobsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying which -// fields to read. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) ReadMask(readMask string) *ProjectsLocationsHyperparameterTuningJobsListCall { - c.urlParams_.Set("readMask", readMask) +// - indexEndpoint: The name of the IndexEndpoint resource from which to +// undeploy an Index. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`. +func (r *ProjectsLocationsIndexEndpointsService) UndeployIndex(indexEndpoint string, googlecloudaiplatformv1undeployindexrequest *GoogleCloudAiplatformV1UndeployIndexRequest) *ProjectsLocationsIndexEndpointsUndeployIndexCall { + c := &ProjectsLocationsIndexEndpointsUndeployIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.indexEndpoint = indexEndpoint + c.googlecloudaiplatformv1undeployindexrequest = googlecloudaiplatformv1undeployindexrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsListCall { +func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsUndeployIndexCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsListCall { +func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsUndeployIndexCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1undeployindexrequest) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hyperparameterTuningJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+indexEndpoint}:undeployIndex") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "indexEndpoint": c.indexEndpoint, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.undeployIndex", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.list" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.undeployIndex" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse.ServerResponse.H -// eader 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 *ProjectsLocationsHyperparameterTuningJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse, error) { +// *GoogleLongrunningOperation.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 *ProjectsLocationsIndexEndpointsUndeployIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -107158,7 +111066,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -107169,32 +111077,11 @@ func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Do(opts ...googleapi if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.undeployIndex", "response", internallog.HTTPResponse(res, b)) return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall struct { +type ProjectsLocationsIndexEndpointsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -107213,8 +111100,8 @@ type ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Cancel(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { - c := &ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexEndpointsOperationsService) Cancel(name string) *ProjectsLocationsIndexEndpointsOperationsCancelCall { + c := &ProjectsLocationsIndexEndpointsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -107222,27 +111109,27 @@ func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Cancel(name // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { +func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { +func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -107256,17 +111143,17 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -107296,11 +111183,11 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Do(opts if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall struct { +type ProjectsLocationsIndexEndpointsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -107314,8 +111201,8 @@ type ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Delete(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { - c := &ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexEndpointsOperationsService) Delete(name string) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { + c := &ProjectsLocationsIndexEndpointsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -107323,27 +111210,27 @@ func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Delete(name // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -107357,17 +111244,17 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) doReques googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -107397,11 +111284,11 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Do(opts if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsHyperparameterTuningJobsOperationsGetCall struct { +type ProjectsLocationsIndexEndpointsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -107415,8 +111302,8 @@ type ProjectsLocationsHyperparameterTuningJobsOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Get(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { - c := &ProjectsLocationsHyperparameterTuningJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexEndpointsOperationsService) Get(name string) *ProjectsLocationsIndexEndpointsOperationsGetCall { + c := &ProjectsLocationsIndexEndpointsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -107424,7 +111311,7 @@ func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Get(name st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -107432,27 +111319,27 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Fields(s .. // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -107469,17 +111356,17 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -107509,11 +111396,11 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Do(opts ... if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsHyperparameterTuningJobsOperationsListCall struct { +type ProjectsLocationsIndexEndpointsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -107526,28 +111413,28 @@ type ProjectsLocationsHyperparameterTuningJobsOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) List(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { - c := &ProjectsLocationsHyperparameterTuningJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexEndpointsOperationsService) List(name string) *ProjectsLocationsIndexEndpointsOperationsListCall { + c := &ProjectsLocationsIndexEndpointsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Filter(filter string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Filter(filter string) *ProjectsLocationsIndexEndpointsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexEndpointsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsIndexEndpointsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -107560,7 +111447,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) PageToken( // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsIndexEndpointsOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -107568,7 +111455,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) ReturnPart // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -107576,27 +111463,27 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Fields(s . // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -107613,17 +111500,17 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -107653,14 +111540,14 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Do(opts .. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -107678,7 +111565,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Pages(ctx } } -type ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall struct { +type ProjectsLocationsIndexEndpointsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -107697,8 +111584,8 @@ type ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Wait(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { - c := &ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexEndpointsOperationsService) Wait(name string) *ProjectsLocationsIndexEndpointsOperationsWaitCall { + c := &ProjectsLocationsIndexEndpointsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -107707,7 +111594,7 @@ func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Wait(name s // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsIndexEndpointsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -107715,27 +111602,27 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Timeout(ti // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -107749,17 +111636,17 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -107789,62 +111676,62 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Do(opts .. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexEndpointsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1indexendpoint *GoogleCloudAiplatformV1IndexEndpoint - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexesCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1index *GoogleCloudAiplatformV1Index + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates an IndexEndpoint. +// Create: Creates an Index. // -// - parent: The resource name of the Location to create the IndexEndpoint in. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsIndexEndpointsService) Create(parent string, googlecloudaiplatformv1indexendpoint *GoogleCloudAiplatformV1IndexEndpoint) *ProjectsLocationsIndexEndpointsCreateCall { - c := &ProjectsLocationsIndexEndpointsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Location to create the Index in. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsIndexesService) Create(parent string, googlecloudaiplatformv1index *GoogleCloudAiplatformV1Index) *ProjectsLocationsIndexesCreateCall { + c := &ProjectsLocationsIndexesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1indexendpoint = googlecloudaiplatformv1indexendpoint + c.googlecloudaiplatformv1index = googlecloudaiplatformv1index return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexEndpointsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsCreateCall { +func (c *ProjectsLocationsIndexesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexEndpointsCreateCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsCreateCall { +func (c *ProjectsLocationsIndexesCreateCall) Context(ctx context.Context) *ProjectsLocationsIndexesCreateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexEndpointsCreateCall) Header() http.Header { +func (c *ProjectsLocationsIndexesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1indexendpoint) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1index) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/indexEndpoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/indexes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -107854,17 +111741,17 @@ func (c *ProjectsLocationsIndexEndpointsCreateCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.create" call. +// Do executes the "aiplatform.projects.locations.indexes.create" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsIndexEndpointsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -107894,11 +111781,11 @@ func (c *ProjectsLocationsIndexEndpointsCreateCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexEndpointsDeleteCall struct { +type ProjectsLocationsIndexesDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -107906,12 +111793,13 @@ type ProjectsLocationsIndexEndpointsDeleteCall struct { header_ http.Header } -// Delete: Deletes an IndexEndpoint. +// Delete: Deletes an Index. An Index can only be deleted when all its +// DeployedIndexes had been undeployed. // -// - name: The name of the IndexEndpoint resource to be deleted. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`. -func (r *ProjectsLocationsIndexEndpointsService) Delete(name string) *ProjectsLocationsIndexEndpointsDeleteCall { - c := &ProjectsLocationsIndexEndpointsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the Index resource to be deleted. Format: +// `projects/{project}/locations/{location}/indexes/{index}`. +func (r *ProjectsLocationsIndexesService) Delete(name string) *ProjectsLocationsIndexesDeleteCall { + c := &ProjectsLocationsIndexesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -107919,27 +111807,27 @@ func (r *ProjectsLocationsIndexEndpointsService) Delete(name string) *ProjectsLo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexEndpointsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsDeleteCall { +func (c *ProjectsLocationsIndexesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexEndpointsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsDeleteCall { +func (c *ProjectsLocationsIndexesDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexesDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexEndpointsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIndexesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -107953,124 +111841,17 @@ func (c *ProjectsLocationsIndexEndpointsDeleteCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.delete", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.indexEndpoints.delete" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.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 *ProjectsLocationsIndexEndpointsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.delete", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsIndexEndpointsDeployIndexCall struct { - s *Service - indexEndpoint string - googlecloudaiplatformv1deployindexrequest *GoogleCloudAiplatformV1DeployIndexRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// DeployIndex: Deploys an Index into this IndexEndpoint, creating a -// DeployedIndex within it. -// -// - indexEndpoint: The name of the IndexEndpoint resource into which to deploy -// an Index. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`. -func (r *ProjectsLocationsIndexEndpointsService) DeployIndex(indexEndpoint string, googlecloudaiplatformv1deployindexrequest *GoogleCloudAiplatformV1DeployIndexRequest) *ProjectsLocationsIndexEndpointsDeployIndexCall { - c := &ProjectsLocationsIndexEndpointsDeployIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.indexEndpoint = indexEndpoint - c.googlecloudaiplatformv1deployindexrequest = googlecloudaiplatformv1deployindexrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsDeployIndexCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsDeployIndexCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1deployindexrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+indexEndpoint}:deployIndex") - 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{ - "indexEndpoint": c.indexEndpoint, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.deployIndex", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.deployIndex" call. +// Do executes the "aiplatform.projects.locations.indexes.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsIndexEndpointsDeployIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -108100,117 +111881,11 @@ func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Do(opts ...googleapi.Ca if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.deployIndex", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsIndexEndpointsFindNeighborsCall struct { - s *Service - indexEndpoint string - googlecloudaiplatformv1findneighborsrequest *GoogleCloudAiplatformV1FindNeighborsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// FindNeighbors: Finds the nearest neighbors of each vector within the -// request. -// -// - indexEndpoint: The name of the index endpoint. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`. -func (r *ProjectsLocationsIndexEndpointsService) FindNeighbors(indexEndpoint string, googlecloudaiplatformv1findneighborsrequest *GoogleCloudAiplatformV1FindNeighborsRequest) *ProjectsLocationsIndexEndpointsFindNeighborsCall { - c := &ProjectsLocationsIndexEndpointsFindNeighborsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.indexEndpoint = indexEndpoint - c.googlecloudaiplatformv1findneighborsrequest = googlecloudaiplatformv1findneighborsrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsFindNeighborsCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsFindNeighborsCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1findneighborsrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+indexEndpoint}:findNeighbors") - 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{ - "indexEndpoint": c.indexEndpoint, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.findNeighbors", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.indexEndpoints.findNeighbors" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1FindNeighborsResponse.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 *ProjectsLocationsIndexEndpointsFindNeighborsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1FindNeighborsResponse, 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 := &GoogleCloudAiplatformV1FindNeighborsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.findNeighbors", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexEndpointsGetCall struct { +type ProjectsLocationsIndexesGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -108219,12 +111894,12 @@ type ProjectsLocationsIndexEndpointsGetCall struct { header_ http.Header } -// Get: Gets an IndexEndpoint. +// Get: Gets an Index. // -// - name: The name of the IndexEndpoint resource. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`. -func (r *ProjectsLocationsIndexEndpointsService) Get(name string) *ProjectsLocationsIndexEndpointsGetCall { - c := &ProjectsLocationsIndexEndpointsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the Index resource. Format: +// `projects/{project}/locations/{location}/indexes/{index}`. +func (r *ProjectsLocationsIndexesService) Get(name string) *ProjectsLocationsIndexesGetCall { + c := &ProjectsLocationsIndexesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -108232,7 +111907,7 @@ func (r *ProjectsLocationsIndexEndpointsService) Get(name string) *ProjectsLocat // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexEndpointsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsGetCall { +func (c *ProjectsLocationsIndexesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -108240,27 +111915,27 @@ func (c *ProjectsLocationsIndexEndpointsGetCall) Fields(s ...googleapi.Field) *P // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsIndexEndpointsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsGetCall { +func (c *ProjectsLocationsIndexesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexEndpointsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsGetCall { +func (c *ProjectsLocationsIndexesGetCall) Context(ctx context.Context) *ProjectsLocationsIndexesGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexEndpointsGetCall) Header() http.Header { +func (c *ProjectsLocationsIndexesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -108277,17 +111952,17 @@ func (c *ProjectsLocationsIndexEndpointsGetCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.get" call. +// Do executes the "aiplatform.projects.locations.indexes.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1IndexEndpoint.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudAiplatformV1Index.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 *ProjectsLocationsIndexEndpointsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1IndexEndpoint, error) { +func (c *ProjectsLocationsIndexesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Index, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -108306,7 +111981,7 @@ func (c *ProjectsLocationsIndexEndpointsGetCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1IndexEndpoint{ + ret := &GoogleCloudAiplatformV1Index{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -108317,11 +111992,11 @@ func (c *ProjectsLocationsIndexEndpointsGetCall) Do(opts ...googleapi.CallOption if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexEndpointsListCall struct { +type ProjectsLocationsIndexesListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -108330,50 +112005,40 @@ type ProjectsLocationsIndexEndpointsListCall struct { header_ http.Header } -// List: Lists IndexEndpoints in a Location. +// List: Lists Indexes in a Location. // -// - parent: The resource name of the Location from which to list the -// IndexEndpoints. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsIndexEndpointsService) List(parent string) *ProjectsLocationsIndexEndpointsListCall { - c := &ProjectsLocationsIndexEndpointsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Location from which to list the Indexes. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsIndexesService) List(parent string) *ProjectsLocationsIndexesListCall { + c := &ProjectsLocationsIndexesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": An expression for filtering the -// results of the request. For field names both snake_case and camelCase are -// supported. * `index_endpoint` supports = and !=. `index_endpoint` represents -// the IndexEndpoint ID, ie. the last segment of the IndexEndpoint's -// resourcename. * `display_name` supports =, != and regex() (uses re2 -// (https://github.com/google/re2/wiki/Syntax) syntax) * `labels` supports -// general map functions that is: `labels.key=value` - key:value equality -// `labels.key:* or labels:key - key existence A key including a space must be -// quoted. `labels."a key". Some examples: * `index_endpoint="1" * -// `display_name="myDisplayName" * `regex(display_name, "^A") -> The display -// name starts with an A. * `labels.myKey="myValue" -func (c *ProjectsLocationsIndexEndpointsListCall) Filter(filter string) *ProjectsLocationsIndexEndpointsListCall { +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsIndexesListCall) Filter(filter string) *ProjectsLocationsIndexesListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *ProjectsLocationsIndexEndpointsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexEndpointsListCall { +func (c *ProjectsLocationsIndexesListCall) PageSize(pageSize int64) *ProjectsLocationsIndexesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page -// token. Typically obtained via ListIndexEndpointsResponse.next_page_token of -// the previous IndexEndpointService.ListIndexEndpoints call. -func (c *ProjectsLocationsIndexEndpointsListCall) PageToken(pageToken string) *ProjectsLocationsIndexEndpointsListCall { +// token. Typically obtained via ListIndexesResponse.next_page_token of the +// previous IndexService.ListIndexes call. +func (c *ProjectsLocationsIndexesListCall) PageToken(pageToken string) *ProjectsLocationsIndexesListCall { c.urlParams_.Set("pageToken", pageToken) return c } // ReadMask sets the optional parameter "readMask": Mask specifying which // fields to read. -func (c *ProjectsLocationsIndexEndpointsListCall) ReadMask(readMask string) *ProjectsLocationsIndexEndpointsListCall { +func (c *ProjectsLocationsIndexesListCall) ReadMask(readMask string) *ProjectsLocationsIndexesListCall { c.urlParams_.Set("readMask", readMask) return c } @@ -108381,7 +112046,7 @@ func (c *ProjectsLocationsIndexEndpointsListCall) ReadMask(readMask string) *Pro // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexEndpointsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsListCall { +func (c *ProjectsLocationsIndexesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -108389,34 +112054,34 @@ func (c *ProjectsLocationsIndexEndpointsListCall) Fields(s ...googleapi.Field) * // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsIndexEndpointsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsListCall { +func (c *ProjectsLocationsIndexesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexEndpointsListCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsListCall { +func (c *ProjectsLocationsIndexesListCall) Context(ctx context.Context) *ProjectsLocationsIndexesListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexEndpointsListCall) Header() http.Header { +func (c *ProjectsLocationsIndexesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/indexEndpoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/indexes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -108426,17 +112091,17 @@ func (c *ProjectsLocationsIndexEndpointsListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.list" call. +// Do executes the "aiplatform.projects.locations.indexes.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1ListIndexEndpointsResponse.ServerResponse.Header or -// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudAiplatformV1ListIndexesResponse.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 *ProjectsLocationsIndexEndpointsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListIndexEndpointsResponse, error) { +func (c *ProjectsLocationsIndexesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListIndexesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -108455,7 +112120,7 @@ func (c *ProjectsLocationsIndexEndpointsListCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListIndexEndpointsResponse{ + ret := &GoogleCloudAiplatformV1ListIndexesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -108466,14 +112131,14 @@ func (c *ProjectsLocationsIndexEndpointsListCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsIndexEndpointsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListIndexEndpointsResponse) error) error { +func (c *ProjectsLocationsIndexesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListIndexesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -108491,135 +112156,29 @@ func (c *ProjectsLocationsIndexEndpointsListCall) Pages(ctx context.Context, f f } } -type ProjectsLocationsIndexEndpointsMutateDeployedIndexCall struct { - s *Service - indexEndpoint string - googlecloudaiplatformv1deployedindex *GoogleCloudAiplatformV1DeployedIndex - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// MutateDeployedIndex: Update an existing DeployedIndex under an -// IndexEndpoint. -// -// - indexEndpoint: The name of the IndexEndpoint resource into which to deploy -// an Index. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`. -func (r *ProjectsLocationsIndexEndpointsService) MutateDeployedIndex(indexEndpoint string, googlecloudaiplatformv1deployedindex *GoogleCloudAiplatformV1DeployedIndex) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { - c := &ProjectsLocationsIndexEndpointsMutateDeployedIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.indexEndpoint = indexEndpoint - c.googlecloudaiplatformv1deployedindex = googlecloudaiplatformv1deployedindex - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1deployedindex) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+indexEndpoint}:mutateDeployedIndex") - 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{ - "indexEndpoint": c.indexEndpoint, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.mutateDeployedIndex", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.indexEndpoints.mutateDeployedIndex" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.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 *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.mutateDeployedIndex", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsIndexEndpointsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1indexendpoint *GoogleCloudAiplatformV1IndexEndpoint - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexesPatchCall struct { + s *Service + name string + googlecloudaiplatformv1index *GoogleCloudAiplatformV1Index + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates an IndexEndpoint. +// Patch: Updates an Index. // -// - name: Output only. The resource name of the IndexEndpoint. -func (r *ProjectsLocationsIndexEndpointsService) Patch(name string, googlecloudaiplatformv1indexendpoint *GoogleCloudAiplatformV1IndexEndpoint) *ProjectsLocationsIndexEndpointsPatchCall { - c := &ProjectsLocationsIndexEndpointsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. The resource name of the Index. +func (r *ProjectsLocationsIndexesService) Patch(name string, googlecloudaiplatformv1index *GoogleCloudAiplatformV1Index) *ProjectsLocationsIndexesPatchCall { + c := &ProjectsLocationsIndexesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1indexendpoint = googlecloudaiplatformv1indexendpoint + c.googlecloudaiplatformv1index = googlecloudaiplatformv1index return c } -// UpdateMask sets the optional parameter "updateMask": Required. The update -// mask applies to the resource. See google.protobuf.FieldMask. -func (c *ProjectsLocationsIndexEndpointsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIndexEndpointsPatchCall { +// UpdateMask sets the optional parameter "updateMask": The update mask applies +// to the resource. For the `FieldMask` definition, see +// google.protobuf.FieldMask. +func (c *ProjectsLocationsIndexesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIndexesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -108627,29 +112186,29 @@ func (c *ProjectsLocationsIndexEndpointsPatchCall) UpdateMask(updateMask string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexEndpointsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsPatchCall { +func (c *ProjectsLocationsIndexesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexEndpointsPatchCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsPatchCall { +func (c *ProjectsLocationsIndexesPatchCall) Context(ctx context.Context) *ProjectsLocationsIndexesPatchCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexEndpointsPatchCall) Header() http.Header { +func (c *ProjectsLocationsIndexesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1indexendpoint) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1index) if err != nil { return nil, err } @@ -108665,17 +112224,17 @@ func (c *ProjectsLocationsIndexEndpointsPatchCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.patch" call. +// Do executes the "aiplatform.projects.locations.indexes.patch" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1IndexEndpoint.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleLongrunningOperation.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 *ProjectsLocationsIndexEndpointsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1IndexEndpoint, error) { +func (c *ProjectsLocationsIndexesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -108694,7 +112253,7 @@ func (c *ProjectsLocationsIndexEndpointsPatchCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1IndexEndpoint{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -108705,63 +112264,62 @@ func (c *ProjectsLocationsIndexEndpointsPatchCall) Do(opts ...googleapi.CallOpti if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexEndpointsReadIndexDatapointsCall struct { - s *Service - indexEndpoint string - googlecloudaiplatformv1readindexdatapointsrequest *GoogleCloudAiplatformV1ReadIndexDatapointsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexesRemoveDatapointsCall struct { + s *Service + index string + googlecloudaiplatformv1removedatapointsrequest *GoogleCloudAiplatformV1RemoveDatapointsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ReadIndexDatapoints: Reads the datapoints/vectors of the given IDs. A -// maximum of 1000 datapoints can be retrieved in a batch. +// RemoveDatapoints: Remove Datapoints from an Index. // -// - indexEndpoint: The name of the index endpoint. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`. -func (r *ProjectsLocationsIndexEndpointsService) ReadIndexDatapoints(indexEndpoint string, googlecloudaiplatformv1readindexdatapointsrequest *GoogleCloudAiplatformV1ReadIndexDatapointsRequest) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { - c := &ProjectsLocationsIndexEndpointsReadIndexDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.indexEndpoint = indexEndpoint - c.googlecloudaiplatformv1readindexdatapointsrequest = googlecloudaiplatformv1readindexdatapointsrequest +// - index: The name of the Index resource to be updated. Format: +// `projects/{project}/locations/{location}/indexes/{index}`. +func (r *ProjectsLocationsIndexesService) RemoveDatapoints(index string, googlecloudaiplatformv1removedatapointsrequest *GoogleCloudAiplatformV1RemoveDatapointsRequest) *ProjectsLocationsIndexesRemoveDatapointsCall { + c := &ProjectsLocationsIndexesRemoveDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.index = index + c.googlecloudaiplatformv1removedatapointsrequest = googlecloudaiplatformv1removedatapointsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { +func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesRemoveDatapointsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { +func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexesRemoveDatapointsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Header() http.Header { +func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesRemoveDatapointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1readindexdatapointsrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1removedatapointsrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+indexEndpoint}:readIndexDatapoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+index}:removeDatapoints") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -108769,19 +112327,19 @@ func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) doRequest(alt s } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "indexEndpoint": c.indexEndpoint, + "index": c.index, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.removeDatapoints", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints" call. +// Do executes the "aiplatform.projects.locations.indexes.removeDatapoints" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1ReadIndexDatapointsResponse.ServerResponse.Header or +// *GoogleCloudAiplatformV1RemoveDatapointsResponse.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 *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ReadIndexDatapointsResponse, error) { +func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1RemoveDatapointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -108800,7 +112358,7 @@ func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ReadIndexDatapointsResponse{ + ret := &GoogleCloudAiplatformV1RemoveDatapointsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -108811,64 +112369,62 @@ func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Do(opts ...goog if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.removeDatapoints", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexEndpointsUndeployIndexCall struct { - s *Service - indexEndpoint string - googlecloudaiplatformv1undeployindexrequest *GoogleCloudAiplatformV1UndeployIndexRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexesUpsertDatapointsCall struct { + s *Service + index string + googlecloudaiplatformv1upsertdatapointsrequest *GoogleCloudAiplatformV1UpsertDatapointsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// UndeployIndex: Undeploys an Index from an IndexEndpoint, removing a -// DeployedIndex from it, and freeing all resources it's using. +// UpsertDatapoints: Add/update Datapoints into an Index. // -// - indexEndpoint: The name of the IndexEndpoint resource from which to -// undeploy an Index. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`. -func (r *ProjectsLocationsIndexEndpointsService) UndeployIndex(indexEndpoint string, googlecloudaiplatformv1undeployindexrequest *GoogleCloudAiplatformV1UndeployIndexRequest) *ProjectsLocationsIndexEndpointsUndeployIndexCall { - c := &ProjectsLocationsIndexEndpointsUndeployIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.indexEndpoint = indexEndpoint - c.googlecloudaiplatformv1undeployindexrequest = googlecloudaiplatformv1undeployindexrequest +// - index: The name of the Index resource to be updated. Format: +// `projects/{project}/locations/{location}/indexes/{index}`. +func (r *ProjectsLocationsIndexesService) UpsertDatapoints(index string, googlecloudaiplatformv1upsertdatapointsrequest *GoogleCloudAiplatformV1UpsertDatapointsRequest) *ProjectsLocationsIndexesUpsertDatapointsCall { + c := &ProjectsLocationsIndexesUpsertDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.index = index + c.googlecloudaiplatformv1upsertdatapointsrequest = googlecloudaiplatformv1upsertdatapointsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsUndeployIndexCall { +func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesUpsertDatapointsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsUndeployIndexCall { +func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexesUpsertDatapointsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Header() http.Header { +func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesUpsertDatapointsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1undeployindexrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1upsertdatapointsrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+indexEndpoint}:undeployIndex") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+index}:upsertDatapoints") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -108876,19 +112432,19 @@ func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) doRequest(alt string) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "indexEndpoint": c.indexEndpoint, + "index": c.index, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.undeployIndex", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.upsertDatapoints", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.undeployIndex" call. +// Do executes the "aiplatform.projects.locations.indexes.upsertDatapoints" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudAiplatformV1UpsertDatapointsResponse.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 *ProjectsLocationsIndexEndpointsUndeployIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1UpsertDatapointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -108907,7 +112463,7 @@ func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1UpsertDatapointsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -108918,11 +112474,11 @@ func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Do(opts ...googleapi. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.undeployIndex", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.upsertDatapoints", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexEndpointsOperationsCancelCall struct { +type ProjectsLocationsIndexesOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -108941,8 +112497,8 @@ type ProjectsLocationsIndexEndpointsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsIndexEndpointsOperationsService) Cancel(name string) *ProjectsLocationsIndexEndpointsOperationsCancelCall { - c := &ProjectsLocationsIndexEndpointsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexesOperationsService) Cancel(name string) *ProjectsLocationsIndexesOperationsCancelCall { + c := &ProjectsLocationsIndexesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -108950,27 +112506,27 @@ func (r *ProjectsLocationsIndexEndpointsOperationsService) Cancel(name string) * // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsCancelCall { +func (c *ProjectsLocationsIndexesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsCancelCall { +func (c *ProjectsLocationsIndexesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsIndexesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -108984,17 +112540,17 @@ func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.indexes.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *ProjectsLocationsIndexEndpointsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsIndexesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -109024,11 +112580,11 @@ func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Do(opts ...googlea if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexEndpointsOperationsDeleteCall struct { +type ProjectsLocationsIndexesOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -109042,8 +112598,8 @@ type ProjectsLocationsIndexEndpointsOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsIndexEndpointsOperationsService) Delete(name string) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { - c := &ProjectsLocationsIndexEndpointsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexesOperationsService) Delete(name string) *ProjectsLocationsIndexesOperationsDeleteCall { + c := &ProjectsLocationsIndexesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -109051,27 +112607,27 @@ func (r *ProjectsLocationsIndexEndpointsOperationsService) Delete(name string) * // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { +func (c *ProjectsLocationsIndexesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { +func (c *ProjectsLocationsIndexesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIndexesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -109085,17 +112641,17 @@ func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) doRequest(alt stri googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.operations.delete" call. +// Do executes the "aiplatform.projects.locations.indexes.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsIndexesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -109125,11 +112681,11 @@ func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Do(opts ...googlea if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexEndpointsOperationsGetCall struct { +type ProjectsLocationsIndexesOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -109143,8 +112699,8 @@ type ProjectsLocationsIndexEndpointsOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsIndexEndpointsOperationsService) Get(name string) *ProjectsLocationsIndexEndpointsOperationsGetCall { - c := &ProjectsLocationsIndexEndpointsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexesOperationsService) Get(name string) *ProjectsLocationsIndexesOperationsGetCall { + c := &ProjectsLocationsIndexesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -109152,7 +112708,7 @@ func (r *ProjectsLocationsIndexEndpointsOperationsService) Get(name string) *Pro // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsGetCall { +func (c *ProjectsLocationsIndexesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -109160,27 +112716,27 @@ func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Fields(s ...googleapi // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsOperationsGetCall { +func (c *ProjectsLocationsIndexesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsGetCall { +func (c *ProjectsLocationsIndexesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsIndexesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -109197,17 +112753,17 @@ func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.operations.get" call. +// Do executes the "aiplatform.projects.locations.indexes.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsIndexEndpointsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -109237,11 +112793,11 @@ func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Do(opts ...googleapi. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexEndpointsOperationsListCall struct { +type ProjectsLocationsIndexesOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -109254,28 +112810,28 @@ type ProjectsLocationsIndexEndpointsOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsIndexEndpointsOperationsService) List(name string) *ProjectsLocationsIndexEndpointsOperationsListCall { - c := &ProjectsLocationsIndexEndpointsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexesOperationsService) List(name string) *ProjectsLocationsIndexesOperationsListCall { + c := &ProjectsLocationsIndexesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Filter(filter string) *ProjectsLocationsIndexEndpointsOperationsListCall { +func (c *ProjectsLocationsIndexesOperationsListCall) Filter(filter string) *ProjectsLocationsIndexesOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexEndpointsOperationsListCall { +func (c *ProjectsLocationsIndexesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexesOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsIndexEndpointsOperationsListCall { +func (c *ProjectsLocationsIndexesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsIndexesOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -109288,7 +112844,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) PageToken(pageToken // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsIndexEndpointsOperationsListCall { +func (c *ProjectsLocationsIndexesOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsIndexesOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -109296,7 +112852,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) ReturnPartialSuccess // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsListCall { +func (c *ProjectsLocationsIndexesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -109304,27 +112860,27 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Fields(s ...googleap // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsOperationsListCall { +func (c *ProjectsLocationsIndexesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsListCall { +func (c *ProjectsLocationsIndexesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsIndexesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -109341,17 +112897,17 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.operations.list" call. +// Do executes the "aiplatform.projects.locations.indexes.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsIndexEndpointsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsIndexesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -109381,14 +112937,14 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Do(opts ...googleapi if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsIndexesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -109406,7 +112962,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Pages(ctx context.Co } } -type ProjectsLocationsIndexEndpointsOperationsWaitCall struct { +type ProjectsLocationsIndexesOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -109425,8 +112981,8 @@ type ProjectsLocationsIndexEndpointsOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsIndexEndpointsOperationsService) Wait(name string) *ProjectsLocationsIndexEndpointsOperationsWaitCall { - c := &ProjectsLocationsIndexEndpointsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexesOperationsService) Wait(name string) *ProjectsLocationsIndexesOperationsWaitCall { + c := &ProjectsLocationsIndexesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -109435,7 +112991,7 @@ func (r *ProjectsLocationsIndexEndpointsOperationsService) Wait(name string) *Pr // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsIndexEndpointsOperationsWaitCall { +func (c *ProjectsLocationsIndexesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsIndexesOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -109443,27 +112999,27 @@ func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Timeout(timeout stri // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsWaitCall { +func (c *ProjectsLocationsIndexesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsWaitCall { +func (c *ProjectsLocationsIndexesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsIndexesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -109477,17 +113033,17 @@ func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.operations.wait" call. +// Do executes the "aiplatform.projects.locations.indexes.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsIndexEndpointsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -109517,82 +113073,89 @@ func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Do(opts ...googleapi if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexEndpoints.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexesCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1index *GoogleCloudAiplatformV1Index - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMemoryBanksMemoriesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates an Index. +// Get: Get a Memory. // -// - parent: The resource name of the Location to create the Index in. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsIndexesService) Create(parent string, googlecloudaiplatformv1index *GoogleCloudAiplatformV1Index) *ProjectsLocationsIndexesCreateCall { - c := &ProjectsLocationsIndexesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1index = googlecloudaiplatformv1index +// - name: The resource name of the Memory. Format: +// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine +// }/memories/{memory}`. +func (r *ProjectsLocationsMemoryBanksMemoriesService) Get(name string) *ProjectsLocationsMemoryBanksMemoriesGetCall { + c := &ProjectsLocationsMemoryBanksMemoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesCreateCall { +func (c *ProjectsLocationsMemoryBanksMemoriesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMemoryBanksMemoriesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsMemoryBanksMemoriesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMemoryBanksMemoriesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexesCreateCall) Context(ctx context.Context) *ProjectsLocationsIndexesCreateCall { +func (c *ProjectsLocationsMemoryBanksMemoriesGetCall) Context(ctx context.Context) *ProjectsLocationsMemoryBanksMemoriesGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexesCreateCall) Header() http.Header { +func (c *ProjectsLocationsMemoryBanksMemoriesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1index) - if err != nil { - return nil, err +func (c *ProjectsLocationsMemoryBanksMemoriesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/indexes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.memories.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.create" call. +// Do executes the "aiplatform.projects.locations.memoryBanks.memories.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// *GoogleCloudAiplatformV1Memory.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 *ProjectsLocationsIndexesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMemoryBanksMemoriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Memory, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -109611,7 +113174,7 @@ func (c *ProjectsLocationsIndexesCreateCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1Memory{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -109622,11 +113185,11 @@ func (c *ProjectsLocationsIndexesCreateCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.memories.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexesDeleteCall struct { +type ProjectsLocationsMemoryBanksMemoriesOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -109634,13 +113197,19 @@ type ProjectsLocationsIndexesDeleteCall struct { header_ http.Header } -// Delete: Deletes an Index. An Index can only be deleted when all its -// DeployedIndexes had been undeployed. +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of `1`, corresponding to +// `Code.CANCELLED`. // -// - name: The name of the Index resource to be deleted. Format: -// `projects/{project}/locations/{location}/indexes/{index}`. -func (r *ProjectsLocationsIndexesService) Delete(name string) *ProjectsLocationsIndexesDeleteCall { - c := &ProjectsLocationsIndexesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsMemoryBanksMemoriesOperationsService) Cancel(name string) *ProjectsLocationsMemoryBanksMemoriesOperationsCancelCall { + c := &ProjectsLocationsMemoryBanksMemoriesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -109648,33 +113217,33 @@ func (r *ProjectsLocationsIndexesService) Delete(name string) *ProjectsLocations // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesDeleteCall { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsMemoryBanksMemoriesOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexesDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexesDeleteCall { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsMemoryBanksMemoriesOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("POST", urls, nil) if err != nil { return nil, err } @@ -109682,17 +113251,17 @@ func (c *ProjectsLocationsIndexesDeleteCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.memories.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.delete" call. +// Do executes the "aiplatform.projects.locations.memoryBanks.memories.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.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 *ProjectsLocationsIndexesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// *GoogleProtobufEmpty.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 *ProjectsLocationsMemoryBanksMemoriesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -109711,7 +113280,7 @@ func (c *ProjectsLocationsIndexesDeleteCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -109722,25 +113291,26 @@ func (c *ProjectsLocationsIndexesDeleteCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.memories.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMemoryBanksMemoriesOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets an Index. +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. // -// - name: The name of the Index resource. Format: -// `projects/{project}/locations/{location}/indexes/{index}`. -func (r *ProjectsLocationsIndexesService) Get(name string) *ProjectsLocationsIndexesGetCall { - c := &ProjectsLocationsIndexesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsMemoryBanksMemoriesOperationsService) Delete(name string) *ProjectsLocationsMemoryBanksMemoriesOperationsDeleteCall { + c := &ProjectsLocationsMemoryBanksMemoriesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -109748,44 +113318,33 @@ func (r *ProjectsLocationsIndexesService) Get(name string) *ProjectsLocationsInd // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesGetCall { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMemoryBanksMemoriesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsIndexesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexesGetCall) Context(ctx context.Context) *ProjectsLocationsIndexesGetCall { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMemoryBanksMemoriesOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexesGetCall) Header() http.Header { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } @@ -109793,17 +113352,17 @@ func (c *ProjectsLocationsIndexesGetCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.memories.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.get" call. +// Do executes the "aiplatform.projects.locations.memoryBanks.memories.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1Index.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 *ProjectsLocationsIndexesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Index, error) { +// *GoogleProtobufEmpty.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 *ProjectsLocationsMemoryBanksMemoriesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -109822,7 +113381,7 @@ func (c *ProjectsLocationsIndexesGetCall) Do(opts ...googleapi.CallOption) (*Goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Index{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -109833,61 +113392,34 @@ func (c *ProjectsLocationsIndexesGetCall) Do(opts ...googleapi.CallOption) (*Goo if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.memories.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexesListCall struct { +type ProjectsLocationsMemoryBanksMemoriesOperationsGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists Indexes in a Location. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // -// - parent: The resource name of the Location from which to list the Indexes. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsIndexesService) List(parent string) *ProjectsLocationsIndexesListCall { - c := &ProjectsLocationsIndexesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": The standard list filter. -func (c *ProjectsLocationsIndexesListCall) Filter(filter string) *ProjectsLocationsIndexesListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list page -// size. -func (c *ProjectsLocationsIndexesListCall) PageSize(pageSize int64) *ProjectsLocationsIndexesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list page -// token. Typically obtained via ListIndexesResponse.next_page_token of the -// previous IndexService.ListIndexes call. -func (c *ProjectsLocationsIndexesListCall) PageToken(pageToken string) *ProjectsLocationsIndexesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying which -// fields to read. -func (c *ProjectsLocationsIndexesListCall) ReadMask(readMask string) *ProjectsLocationsIndexesListCall { - c.urlParams_.Set("readMask", readMask) +// - name: The name of the operation resource. +func (r *ProjectsLocationsMemoryBanksMemoriesOperationsService) Get(name string) *ProjectsLocationsMemoryBanksMemoriesOperationsGetCall { + c := &ProjectsLocationsMemoryBanksMemoriesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesListCall { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMemoryBanksMemoriesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -109895,34 +113427,34 @@ func (c *ProjectsLocationsIndexesListCall) Fields(s ...googleapi.Field) *Project // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsIndexesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesListCall { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMemoryBanksMemoriesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexesListCall) Context(ctx context.Context) *ProjectsLocationsIndexesListCall { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsMemoryBanksMemoriesOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexesListCall) Header() http.Header { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/indexes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -109930,19 +113462,19 @@ func (c *ProjectsLocationsIndexesListCall) doRequest(alt string) (*http.Response } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.memories.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.list" call. +// Do executes the "aiplatform.projects.locations.memoryBanks.memories.operations.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1ListIndexesResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleLongrunningOperation.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 *ProjectsLocationsIndexesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListIndexesResponse, error) { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -109961,7 +113493,7 @@ func (c *ProjectsLocationsIndexesListCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListIndexesResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -109972,215 +113504,121 @@ func (c *ProjectsLocationsIndexesListCall) Do(opts ...googleapi.CallOption) (*Go if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.memories.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsIndexesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListIndexesResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type ProjectsLocationsIndexesPatchCall struct { - s *Service - name string - googlecloudaiplatformv1index *GoogleCloudAiplatformV1Index - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMemoryBanksMemoriesOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates an Index. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. // -// - name: Output only. The resource name of the Index. -func (r *ProjectsLocationsIndexesService) Patch(name string, googlecloudaiplatformv1index *GoogleCloudAiplatformV1Index) *ProjectsLocationsIndexesPatchCall { - c := &ProjectsLocationsIndexesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsMemoryBanksMemoriesOperationsService) List(name string) *ProjectsLocationsMemoryBanksMemoriesOperationsListCall { + c := &ProjectsLocationsMemoryBanksMemoriesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1index = googlecloudaiplatformv1index return c } -// UpdateMask sets the optional parameter "updateMask": The update mask applies -// to the resource. For the `FieldMask` definition, see -// google.protobuf.FieldMask. -func (c *ProjectsLocationsIndexesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIndexesPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsListCall) Filter(filter string) *ProjectsLocationsMemoryBanksMemoriesOperationsListCall { + c.urlParams_.Set("filter", filter) return c } -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsIndexesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesPatchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsMemoryBanksMemoriesOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexesPatchCall) Context(ctx context.Context) *ProjectsLocationsIndexesPatchCall { - c.ctx_ = ctx +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsMemoryBanksMemoriesOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsIndexesPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsIndexesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1index) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.patch", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.indexes.patch" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.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 *ProjectsLocationsIndexesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.patch", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type ProjectsLocationsIndexesRemoveDatapointsCall struct { - s *Service - index string - googlecloudaiplatformv1removedatapointsrequest *GoogleCloudAiplatformV1RemoveDatapointsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// RemoveDatapoints: Remove Datapoints from an Index. -// -// - index: The name of the Index resource to be updated. Format: -// `projects/{project}/locations/{location}/indexes/{index}`. -func (r *ProjectsLocationsIndexesService) RemoveDatapoints(index string, googlecloudaiplatformv1removedatapointsrequest *GoogleCloudAiplatformV1RemoveDatapointsRequest) *ProjectsLocationsIndexesRemoveDatapointsCall { - c := &ProjectsLocationsIndexesRemoveDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.index = index - c.googlecloudaiplatformv1removedatapointsrequest = googlecloudaiplatformv1removedatapointsrequest +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// When set to `true`, operations that are reachable are returned as normal, +// and those that are unreachable are returned in the +// ListOperationsResponse.unreachable field. This can only be `true` when +// reading across collections. For example, when `parent` is set to +// "projects/example/locations/-". This field is not supported by default and +// will result in an `UNIMPLEMENTED` error if set unless explicitly documented +// otherwise in service or product specific documentation. +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsMemoryBanksMemoriesOperationsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesRemoveDatapointsCall { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMemoryBanksMemoriesOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMemoryBanksMemoriesOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexesRemoveDatapointsCall { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsMemoryBanksMemoriesOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Header() http.Header { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesRemoveDatapointsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1removedatapointsrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+index}:removeDatapoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "index": c.index, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.removeDatapoints", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.memories.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.removeDatapoints" call. +// Do executes the "aiplatform.projects.locations.memoryBanks.memories.operations.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1RemoveDatapointsResponse.ServerResponse.Header or -// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsIndexesRemoveDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1RemoveDatapointsResponse, error) { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -110199,7 +113637,7 @@ func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1RemoveDatapointsResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -110210,82 +113648,113 @@ func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Do(opts ...googleapi.Call if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.removeDatapoints", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.memories.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexesUpsertDatapointsCall struct { - s *Service - index string - googlecloudaiplatformv1upsertdatapointsrequest *GoogleCloudAiplatformV1UpsertDatapointsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// UpsertDatapoints: Add/update Datapoints into an Index. +type ProjectsLocationsMemoryBanksMemoriesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or reaches at +// most a specified timeout, returning the latest state. If the operation is +// already done, the latest state is immediately returned. If the timeout +// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout +// is used. If the server does not support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort +// basis. It may return the latest state before the specified timeout +// (including immediately), meaning even an immediate response is no guarantee +// that the operation is done. // -// - index: The name of the Index resource to be updated. Format: -// `projects/{project}/locations/{location}/indexes/{index}`. -func (r *ProjectsLocationsIndexesService) UpsertDatapoints(index string, googlecloudaiplatformv1upsertdatapointsrequest *GoogleCloudAiplatformV1UpsertDatapointsRequest) *ProjectsLocationsIndexesUpsertDatapointsCall { - c := &ProjectsLocationsIndexesUpsertDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.index = index - c.googlecloudaiplatformv1upsertdatapointsrequest = googlecloudaiplatformv1upsertdatapointsrequest +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsMemoryBanksMemoriesOperationsService) Wait(name string) *ProjectsLocationsMemoryBanksMemoriesOperationsWaitCall { + c := &ProjectsLocationsMemoryBanksMemoriesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration to wait +// before timing out. If left blank, the wait will be at most the time +// permitted by the underlying HTTP/RPC protocol. If RPC context deadline is +// also specified, the shorter one will be used. +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsMemoryBanksMemoriesOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesUpsertDatapointsCall { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsMemoryBanksMemoriesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexesUpsertDatapointsCall { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsMemoryBanksMemoriesOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Header() http.Header { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesUpsertDatapointsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudaiplatformv1upsertdatapointsrequest) - if err != nil { - return nil, err - } +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+index}:upsertDatapoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("POST", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "index": c.index, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.upsertDatapoints", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.memories.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.upsertDatapoints" call. +// Do executes the "aiplatform.projects.locations.memoryBanks.memories.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1UpsertDatapointsResponse.ServerResponse.Header or -// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleLongrunningOperation.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 *ProjectsLocationsIndexesUpsertDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1UpsertDatapointsResponse, error) { +func (c *ProjectsLocationsMemoryBanksMemoriesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -110304,7 +113773,7 @@ func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1UpsertDatapointsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -110315,11 +113784,11 @@ func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Do(opts ...googleapi.Call if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.upsertDatapoints", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.memories.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexesOperationsCancelCall struct { +type ProjectsLocationsMemoryBanksOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -110338,8 +113807,8 @@ type ProjectsLocationsIndexesOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsIndexesOperationsService) Cancel(name string) *ProjectsLocationsIndexesOperationsCancelCall { - c := &ProjectsLocationsIndexesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsMemoryBanksOperationsService) Cancel(name string) *ProjectsLocationsMemoryBanksOperationsCancelCall { + c := &ProjectsLocationsMemoryBanksOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -110347,27 +113816,27 @@ func (r *ProjectsLocationsIndexesOperationsService) Cancel(name string) *Project // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsCancelCall { +func (c *ProjectsLocationsMemoryBanksOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsMemoryBanksOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsCancelCall { +func (c *ProjectsLocationsMemoryBanksOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsMemoryBanksOperationsCancelCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexesOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsMemoryBanksOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMemoryBanksOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -110381,17 +113850,17 @@ func (c *ProjectsLocationsIndexesOperationsCancelCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.operations.cancel", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.memoryBanks.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *ProjectsLocationsIndexesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsMemoryBanksOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -110421,11 +113890,11 @@ func (c *ProjectsLocationsIndexesOperationsCancelCall) Do(opts ...googleapi.Call if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexesOperationsDeleteCall struct { +type ProjectsLocationsMemoryBanksOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -110439,8 +113908,8 @@ type ProjectsLocationsIndexesOperationsDeleteCall struct { // `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsIndexesOperationsService) Delete(name string) *ProjectsLocationsIndexesOperationsDeleteCall { - c := &ProjectsLocationsIndexesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsMemoryBanksOperationsService) Delete(name string) *ProjectsLocationsMemoryBanksOperationsDeleteCall { + c := &ProjectsLocationsMemoryBanksOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -110448,27 +113917,27 @@ func (r *ProjectsLocationsIndexesOperationsService) Delete(name string) *Project // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsDeleteCall { +func (c *ProjectsLocationsMemoryBanksOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMemoryBanksOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsDeleteCall { +func (c *ProjectsLocationsMemoryBanksOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMemoryBanksOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMemoryBanksOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMemoryBanksOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -110482,17 +113951,17 @@ func (c *ProjectsLocationsIndexesOperationsDeleteCall) doRequest(alt string) (*h googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.operations.delete" call. +// Do executes the "aiplatform.projects.locations.memoryBanks.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.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 *ProjectsLocationsIndexesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsMemoryBanksOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -110522,11 +113991,11 @@ func (c *ProjectsLocationsIndexesOperationsDeleteCall) Do(opts ...googleapi.Call if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexesOperationsGetCall struct { +type ProjectsLocationsMemoryBanksOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -110540,8 +114009,8 @@ type ProjectsLocationsIndexesOperationsGetCall struct { // service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsIndexesOperationsService) Get(name string) *ProjectsLocationsIndexesOperationsGetCall { - c := &ProjectsLocationsIndexesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsMemoryBanksOperationsService) Get(name string) *ProjectsLocationsMemoryBanksOperationsGetCall { + c := &ProjectsLocationsMemoryBanksOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -110549,7 +114018,7 @@ func (r *ProjectsLocationsIndexesOperationsService) Get(name string) *ProjectsLo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsGetCall { +func (c *ProjectsLocationsMemoryBanksOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMemoryBanksOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -110557,27 +114026,27 @@ func (c *ProjectsLocationsIndexesOperationsGetCall) Fields(s ...googleapi.Field) // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsIndexesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesOperationsGetCall { +func (c *ProjectsLocationsMemoryBanksOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMemoryBanksOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsGetCall { +func (c *ProjectsLocationsMemoryBanksOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsMemoryBanksOperationsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsMemoryBanksOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMemoryBanksOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -110594,17 +114063,17 @@ func (c *ProjectsLocationsIndexesOperationsGetCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.operations.get" call. +// Do executes the "aiplatform.projects.locations.memoryBanks.operations.get" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsIndexesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMemoryBanksOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -110634,11 +114103,11 @@ func (c *ProjectsLocationsIndexesOperationsGetCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsIndexesOperationsListCall struct { +type ProjectsLocationsMemoryBanksOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -110651,28 +114120,28 @@ type ProjectsLocationsIndexesOperationsListCall struct { // the server doesn't support this method, it returns `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsIndexesOperationsService) List(name string) *ProjectsLocationsIndexesOperationsListCall { - c := &ProjectsLocationsIndexesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsMemoryBanksOperationsService) List(name string) *ProjectsLocationsMemoryBanksOperationsListCall { + c := &ProjectsLocationsMemoryBanksOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list filter. -func (c *ProjectsLocationsIndexesOperationsListCall) Filter(filter string) *ProjectsLocationsIndexesOperationsListCall { +func (c *ProjectsLocationsMemoryBanksOperationsListCall) Filter(filter string) *ProjectsLocationsMemoryBanksOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list page // size. -func (c *ProjectsLocationsIndexesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexesOperationsListCall { +func (c *ProjectsLocationsMemoryBanksOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsMemoryBanksOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list page // token. -func (c *ProjectsLocationsIndexesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsIndexesOperationsListCall { +func (c *ProjectsLocationsMemoryBanksOperationsListCall) PageToken(pageToken string) *ProjectsLocationsMemoryBanksOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -110685,7 +114154,7 @@ func (c *ProjectsLocationsIndexesOperationsListCall) PageToken(pageToken string) // "projects/example/locations/-". This field is not supported by default and // will result in an `UNIMPLEMENTED` error if set unless explicitly documented // otherwise in service or product specific documentation. -func (c *ProjectsLocationsIndexesOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsIndexesOperationsListCall { +func (c *ProjectsLocationsMemoryBanksOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsMemoryBanksOperationsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -110693,7 +114162,7 @@ func (c *ProjectsLocationsIndexesOperationsListCall) ReturnPartialSuccess(return // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsListCall { +func (c *ProjectsLocationsMemoryBanksOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMemoryBanksOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -110701,27 +114170,27 @@ func (c *ProjectsLocationsIndexesOperationsListCall) Fields(s ...googleapi.Field // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsIndexesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesOperationsListCall { +func (c *ProjectsLocationsMemoryBanksOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMemoryBanksOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsListCall { +func (c *ProjectsLocationsMemoryBanksOperationsListCall) Context(ctx context.Context) *ProjectsLocationsMemoryBanksOperationsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsMemoryBanksOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMemoryBanksOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -110738,17 +114207,17 @@ func (c *ProjectsLocationsIndexesOperationsListCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.operations.list" call. +// Do executes the "aiplatform.projects.locations.memoryBanks.operations.list" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsIndexesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsMemoryBanksOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -110778,14 +114247,14 @@ func (c *ProjectsLocationsIndexesOperationsListCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsIndexesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsMemoryBanksOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -110803,7 +114272,7 @@ func (c *ProjectsLocationsIndexesOperationsListCall) Pages(ctx context.Context, } } -type ProjectsLocationsIndexesOperationsWaitCall struct { +type ProjectsLocationsMemoryBanksOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -110822,8 +114291,8 @@ type ProjectsLocationsIndexesOperationsWaitCall struct { // that the operation is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsIndexesOperationsService) Wait(name string) *ProjectsLocationsIndexesOperationsWaitCall { - c := &ProjectsLocationsIndexesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsMemoryBanksOperationsService) Wait(name string) *ProjectsLocationsMemoryBanksOperationsWaitCall { + c := &ProjectsLocationsMemoryBanksOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -110832,7 +114301,7 @@ func (r *ProjectsLocationsIndexesOperationsService) Wait(name string) *ProjectsL // before timing out. If left blank, the wait will be at most the time // permitted by the underlying HTTP/RPC protocol. If RPC context deadline is // also specified, the shorter one will be used. -func (c *ProjectsLocationsIndexesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsIndexesOperationsWaitCall { +func (c *ProjectsLocationsMemoryBanksOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsMemoryBanksOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -110840,27 +114309,27 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) Timeout(timeout string) *Pr // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsIndexesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsWaitCall { +func (c *ProjectsLocationsMemoryBanksOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsMemoryBanksOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsIndexesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsWaitCall { +func (c *ProjectsLocationsMemoryBanksOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsMemoryBanksOperationsWaitCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsIndexesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsMemoryBanksOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMemoryBanksOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") @@ -110874,17 +114343,17 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.wait", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.operations.wait", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.operations.wait" call. +// Do executes the "aiplatform.projects.locations.memoryBanks.operations.wait" call. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.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 *ProjectsLocationsIndexesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMemoryBanksOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -110914,7 +114383,7 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.indexes.operations.wait", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.memoryBanks.operations.wait", "response", internallog.HTTPResponse(res, b)) return ret, nil } @@ -161799,6 +165268,121 @@ func (c *ProjectsLocationsTuningJobsOperationsListCall) Pages(ctx context.Contex } } +type ProjectsLocationsTuningJobsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or reaches at +// most a specified timeout, returning the latest state. If the operation is +// already done, the latest state is immediately returned. If the timeout +// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout +// is used. If the server does not support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort +// basis. It may return the latest state before the specified timeout +// (including immediately), meaning even an immediate response is no guarantee +// that the operation is done. +// +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsTuningJobsOperationsService) Wait(name string) *ProjectsLocationsTuningJobsOperationsWaitCall { + c := &ProjectsLocationsTuningJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration to wait +// before timing out. If left blank, the wait will be at most the time +// permitted by the underlying HTTP/RPC protocol. If RPC context deadline is +// also specified, the shorter one will be used. +func (c *ProjectsLocationsTuningJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsTuningJobsOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTuningJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsTuningJobsOperationsWaitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTuningJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsTuningJobsOperationsWaitCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTuningJobsOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTuningJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.tuningJobs.operations.wait", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.tuningJobs.operations.wait" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsTuningJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.projects.locations.tuningJobs.operations.wait", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type PublishersModelsComputeTokensCall struct { s *Service endpoint string @@ -177755,6 +181339,121 @@ func (c *TuningJobsOperationsListCall) Pages(ctx context.Context, f func(*Google } } +type TuningJobsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or reaches at +// most a specified timeout, returning the latest state. If the operation is +// already done, the latest state is immediately returned. If the timeout +// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout +// is used. If the server does not support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort +// basis. It may return the latest state before the specified timeout +// (including immediately), meaning even an immediate response is no guarantee +// that the operation is done. +// +// - name: The name of the operation resource to wait on. +func (r *TuningJobsOperationsService) Wait(name string) *TuningJobsOperationsWaitCall { + c := &TuningJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration to wait +// before timing out. If left blank, the wait will be at most the time +// permitted by the underlying HTTP/RPC protocol. If RPC context deadline is +// also specified, the shorter one will be used. +func (c *TuningJobsOperationsWaitCall) Timeout(timeout string) *TuningJobsOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *TuningJobsOperationsWaitCall) Fields(s ...googleapi.Field) *TuningJobsOperationsWaitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *TuningJobsOperationsWaitCall) Context(ctx context.Context) *TuningJobsOperationsWaitCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *TuningJobsOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TuningJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "aiplatform.tuningJobs.operations.wait", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.tuningJobs.operations.wait" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *TuningJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "aiplatform.tuningJobs.operations.wait", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type V1EvaluateDatasetCall struct { s *Service googlecloudaiplatformv1evaluatedatasetrequest *GoogleCloudAiplatformV1EvaluateDatasetRequest diff --git a/alertcenter/v1beta1/alertcenter-api.json b/alertcenter/v1beta1/alertcenter-api.json index d310e6a51a6..8ab5ea98d09 100644 --- a/alertcenter/v1beta1/alertcenter-api.json +++ b/alertcenter/v1beta1/alertcenter-api.json @@ -423,7 +423,7 @@ } } }, - "revision": "20260525", + "revision": "20260706", "rootUrl": "https://alertcenter.googleapis.com/", "schemas": { "AbuseDetected": { @@ -1856,11 +1856,13 @@ "description": "Optional. Agent type that triggered the rule.", "enum": [ "AGENT_TYPE_UNSPECIFIED", - "STUDIO" + "STUDIO", + "WORK_AGENT" ], "enumDescriptions": [ "Unspecified agent type.", - "Studio agent type." + "Studio agent type.", + "Work Agent agent type." ], "type": "string" }, diff --git a/alertcenter/v1beta1/alertcenter-gen.go b/alertcenter/v1beta1/alertcenter-gen.go index 38e6b7188a5..bc016aa23f8 100644 --- a/alertcenter/v1beta1/alertcenter-gen.go +++ b/alertcenter/v1beta1/alertcenter-gen.go @@ -1918,6 +1918,7 @@ type RuleViolationInfo struct { // Possible values: // "AGENT_TYPE_UNSPECIFIED" - Unspecified agent type. // "STUDIO" - Studio agent type. + // "WORK_AGENT" - Work Agent agent type. AgentType string `json:"agentType,omitempty"` // DataSource: Source of the data. // diff --git a/androidenterprise/v1/androidenterprise-api.json b/androidenterprise/v1/androidenterprise-api.json index 4566b09a608..43d9f38fc0a 100644 --- a/androidenterprise/v1/androidenterprise-api.json +++ b/androidenterprise/v1/androidenterprise-api.json @@ -2691,7 +2691,7 @@ } } }, - "revision": "20260422", + "revision": "20260707", "rootUrl": "https://androidenterprise.googleapis.com/", "schemas": { "Administrator": { @@ -3324,7 +3324,7 @@ "id": "EnrollmentToken", "properties": { "duration": { - "description": "[Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour.", + "description": "[Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour. In the JSON REST API, this is represented as a string (e.g., `3600s`).", "format": "google-duration", "type": "string" }, diff --git a/androidenterprise/v1/androidenterprise-gen.go b/androidenterprise/v1/androidenterprise-gen.go index 6730733fd31..fbe2326c8e0 100644 --- a/androidenterprise/v1/androidenterprise-gen.go +++ b/androidenterprise/v1/androidenterprise-gen.go @@ -1183,7 +1183,7 @@ type EnrollmentToken struct { // ranging from 1 minute to `Durations.MAX_VALUE` // (https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), // approximately 10,000 years. If not specified, the default duration is 1 - // hour. + // hour. In the JSON REST API, this is represented as a string (e.g., `3600s`). Duration string `json:"duration,omitempty"` // EnrollmentTokenType: [Required] The type of the enrollment token. // diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index aabd5f9e30c..fdfe213bbab 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -1265,7 +1265,7 @@ } } }, - "revision": "20260615", + "revision": "20260708", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { @@ -6261,7 +6261,7 @@ "type": "boolean" }, "defaultApplicationSettings": { - "description": "Optional. The default application setting for supported types. If the default application is successfully set for at least one app type on a profile, users are prevented from changing any default applications on that profile.Only one DefaultApplicationSetting is allowed for each DefaultApplicationType.See Default application settings (https://developers.google.com/android/management/default-application-settings) guide for more details.", + "description": "Optional. The default application setting for supported types. If the default application is successfully set for at least one app type on a profile, users are prevented from changing any default applications on that profile.Only one DefaultApplicationSetting is allowed for each DefaultApplicationType.Warning: Do not configure this and persistent_preferred_activities for the same intent domain, such as web browsing. Setting both for the same intent domain can lead to unpredictable behavior.See Default application settings (https://developers.google.com/android/management/default-application-settings) guide for more details.", "items": { "$ref": "DefaultApplicationSetting" }, @@ -6542,7 +6542,7 @@ "description": "If present, only the input methods provided by packages in this list are permitted. If this field is present, but the list is empty, then only system input methods are permitted." }, "persistentPreferredActivities": { - "description": "Default intent handler activities.", + "description": "Default intent handler activities.Warning: Do not configure this and default_application_settings for the same intent domain, such as web browsing. Setting both for the same intent domain can lead to unpredictable behavior.", "items": { "$ref": "PersistentPreferredActivity" }, @@ -7794,8 +7794,8 @@ ], "enumDescriptions": [ "This value is not used.", - "Enable logging of on-device security events, like when the device password is incorrectly entered or removable storage is mounted. See UsageLogEvent for a complete description of the logged security events. Supported for fully managed devices on Android 7 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only security events from the work profile are logged. Can be overridden by the application delegated scope SECURITY_LOGS", - "Enable logging of on-device network events, like DNS lookups and TCP connections. See UsageLogEvent for a complete description of the logged network events. Supported for fully managed devices on Android 8 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only network events from the work profile are logged. Can be overridden by the application delegated scope NETWORK_ACTIVITY_LOGS" + "Enable logging of on-device security events, such as when the device password is incorrectly entered or removable storage is mounted. See UsageLogEvent for a complete description of the logged security events. Supported for fully managed devices on Android 7 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only security events from the work profile are logged. Can be overridden by the application delegated scope SECURITY_LOGS", + "Enable logging of on-device network events, such as DNS lookups and TCP connections. See UsageLogEvent for a complete description of the logged network events. Supported for fully managed devices on Android 8 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only network events from the work profile are logged. Can be overridden by the application delegated scope NETWORK_ACTIVITY_LOGS" ], "type": "string" }, @@ -7811,8 +7811,8 @@ ], "enumDescriptions": [ "This value is not used.", - "Enable logging of on-device security events, like when the device password is incorrectly entered or removable storage is mounted. See UsageLogEvent for a complete description of the logged security events. Supported for fully managed devices on Android 7 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only security events from the work profile are logged. Can be overridden by the application delegated scope SECURITY_LOGS", - "Enable logging of on-device network events, like DNS lookups and TCP connections. See UsageLogEvent for a complete description of the logged network events. Supported for fully managed devices on Android 8 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only network events from the work profile are logged. Can be overridden by the application delegated scope NETWORK_ACTIVITY_LOGS" + "Enable logging of on-device security events, such as when the device password is incorrectly entered or removable storage is mounted. See UsageLogEvent for a complete description of the logged security events. Supported for fully managed devices on Android 7 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only security events from the work profile are logged. Can be overridden by the application delegated scope SECURITY_LOGS", + "Enable logging of on-device network events, such as DNS lookups and TCP connections. See UsageLogEvent for a complete description of the logged network events. Supported for fully managed devices on Android 8 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only network events from the work profile are logged. Can be overridden by the application delegated scope NETWORK_ACTIVITY_LOGS" ], "type": "string" }, diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index 77e7d347f0c..9f415ab2a67 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -6443,7 +6443,10 @@ type Policy struct { // supported types. If the default application is successfully set for at least // one app type on a profile, users are prevented from changing any default // applications on that profile.Only one DefaultApplicationSetting is allowed - // for each DefaultApplicationType.See Default application settings + // for each DefaultApplicationType.Warning: Do not configure this and + // persistent_preferred_activities for the same intent domain, such as web + // browsing. Setting both for the same intent domain can lead to unpredictable + // behavior.See Default application settings // (https://developers.google.com/android/management/default-application-settings) // guide for more details. DefaultApplicationSettings []*DefaultApplicationSetting `json:"defaultApplicationSettings,omitempty"` @@ -6689,7 +6692,10 @@ type Policy struct { // packages in this list are permitted. If this field is present, but the list // is empty, then only system input methods are permitted. PermittedInputMethods *PackageNameList `json:"permittedInputMethods,omitempty"` - // PersistentPreferredActivities: Default intent handler activities. + // PersistentPreferredActivities: Default intent handler activities.Warning: Do + // not configure this and default_application_settings for the same intent + // domain, such as web browsing. Setting both for the same intent domain can + // lead to unpredictable behavior. PersistentPreferredActivities []*PersistentPreferredActivity `json:"persistentPreferredActivities,omitempty"` // PersonalUsagePolicies: Policies managing personal usage on a company-owned // device. @@ -8332,15 +8338,15 @@ type UsageLog struct { // // Possible values: // "LOG_TYPE_UNSPECIFIED" - This value is not used. - // "SECURITY_LOGS" - Enable logging of on-device security events, like when - // the device password is incorrectly entered or removable storage is mounted. - // See UsageLogEvent for a complete description of the logged security events. - // Supported for fully managed devices on Android 7 and above. Supported for - // company-owned devices with a work profile on Android 12 and above, on which - // only security events from the work profile are logged. Can be overridden by - // the application delegated scope SECURITY_LOGS - // "NETWORK_ACTIVITY_LOGS" - Enable logging of on-device network events, like - // DNS lookups and TCP connections. See UsageLogEvent for a complete + // "SECURITY_LOGS" - Enable logging of on-device security events, such as + // when the device password is incorrectly entered or removable storage is + // mounted. See UsageLogEvent for a complete description of the logged security + // events. Supported for fully managed devices on Android 7 and above. + // Supported for company-owned devices with a work profile on Android 12 and + // above, on which only security events from the work profile are logged. Can + // be overridden by the application delegated scope SECURITY_LOGS + // "NETWORK_ACTIVITY_LOGS" - Enable logging of on-device network events, such + // as DNS lookups and TCP connections. See UsageLogEvent for a complete // description of the logged network events. Supported for fully managed // devices on Android 8 and above. Supported for company-owned devices with a // work profile on Android 12 and above, on which only network events from the @@ -8353,15 +8359,15 @@ type UsageLog struct { // // Possible values: // "LOG_TYPE_UNSPECIFIED" - This value is not used. - // "SECURITY_LOGS" - Enable logging of on-device security events, like when - // the device password is incorrectly entered or removable storage is mounted. - // See UsageLogEvent for a complete description of the logged security events. - // Supported for fully managed devices on Android 7 and above. Supported for - // company-owned devices with a work profile on Android 12 and above, on which - // only security events from the work profile are logged. Can be overridden by - // the application delegated scope SECURITY_LOGS - // "NETWORK_ACTIVITY_LOGS" - Enable logging of on-device network events, like - // DNS lookups and TCP connections. See UsageLogEvent for a complete + // "SECURITY_LOGS" - Enable logging of on-device security events, such as + // when the device password is incorrectly entered or removable storage is + // mounted. See UsageLogEvent for a complete description of the logged security + // events. Supported for fully managed devices on Android 7 and above. + // Supported for company-owned devices with a work profile on Android 12 and + // above, on which only security events from the work profile are logged. Can + // be overridden by the application delegated scope SECURITY_LOGS + // "NETWORK_ACTIVITY_LOGS" - Enable logging of on-device network events, such + // as DNS lookups and TCP connections. See UsageLogEvent for a complete // description of the logged network events. Supported for fully managed // devices on Android 8 and above. Supported for company-owned devices with a // work profile on Android 12 and above, on which only network events from the diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index e9a408b2f53..a05fe8c1727 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -4662,6 +4662,37 @@ "scopes": [ "https://www.googleapis.com/auth/androidpublisher" ] + }, + "reviewrefund": { + "description": "Provide refund preference and purchase usage for a chargeback request", + "flatPath": "androidpublisher/v3/applications/{packageName}/orders/{orderId}:reviewrefund", + "httpMethod": "POST", + "id": "androidpublisher.orders.reviewrefund", + "parameterOrder": [ + "packageName", + "orderId" + ], + "parameters": { + "orderId": { + "description": "Required. The order ID provided to the user when the subscription or in-app order was purchased.", + "location": "path", + "required": true, + "type": "string" + }, + "packageName": { + "description": "Required. The package name of the application for which this subscription or in-app item was purchased (for example, 'com.some.thing').", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "androidpublisher/v3/applications/{packageName}/orders/{orderId}:reviewrefund", + "request": { + "$ref": "OrdersReviewRefundRequest" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] } } }, @@ -5654,7 +5685,7 @@ } } }, - "revision": "20260625", + "revision": "20260706", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "Abi": { @@ -7001,6 +7032,29 @@ }, "type": "object" }, + "CoarseLocation": { + "description": "Coarse Geographic location details for where the consumption happened.", + "id": "CoarseLocation", + "properties": { + "administrativeArea": { + "description": "Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. For Spain, this is the province and not the autonomous community (for example, \"Barcelona\" and not \"Catalonia\"). Many countries don't use an administrative area in postal addresses. For example, in Switzerland, this should be left unpopulated.", + "type": "string" + }, + "locality": { + "description": "Optional. Generally refers to the city or town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave `locality` empty.", + "type": "string" + }, + "regionCode": { + "description": "Required. [CLDR region code](https://cldr.unicode.org/) of the country/region of the address. This value is never inferred and you must ensure the value is correct. Example: \"CH\" for Switzerland.", + "type": "string" + }, + "sublocality": { + "description": "Optional. Sublocality of the address. For example, this can be a neighborhood, borough, or district. For most addresses, you can omit this.", + "type": "string" + } + }, + "type": "object" + }, "Comment": { "description": "An entry of conversation between user and developer.", "id": "Comment", @@ -7016,6 +7070,38 @@ }, "type": "object" }, + "ConsumptionUsageEvent": { + "description": "List of events, each representing an instance where the user consumed or used the purchased item or service.", + "id": "ConsumptionUsageEvent", + "properties": { + "consumptionItemDescription": { + "description": "Optional. Free form text that allows developers to provide more info on the item consumed. Maximum length is 5000 characters.", + "type": "string" + }, + "consumptionTime": { + "description": "Optional. Time when the user consumed, used, downloaded, opened, or streamed the content.", + "format": "google-datetime", + "type": "string" + }, + "ipAddress": { + "description": "Optional. The IP address from which the consumption occurred.", + "type": "string" + }, + "location": { + "$ref": "CoarseLocation", + "description": "Optional. Geographic location where the consumption occurred." + }, + "obfuscatedAccountId": { + "description": "Optional. Obfuscated string that is uniquely associated with the purchaser's user account in the app. https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setObfuscatedAccountId(java.lang.String)", + "type": "string" + }, + "obfuscatedProfileId": { + "description": "Optional. Obfuscated string that is uniquely associated with the purchaser's user profile in the app. https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setObfuscatedProfileId(java.lang.String)", + "type": "string" + } + }, + "type": "object" + }, "ConvertRegionPricesRequest": { "description": "Request message for ConvertRegionPrices.", "id": "ConvertRegionPricesRequest", @@ -10126,6 +10212,49 @@ }, "type": "object" }, + "OrdersReviewRefundRequest": { + "description": "Request for the orders.reviewrefund API.", + "id": "OrdersReviewRefundRequest", + "properties": { + "consumptionPercentageMilliunits": { + "description": "Optional. Percentage of the In-App purchase the customer consumed, in milliunits. Minimum: 0 Maximum: 100,000. For paid apps, this can be omitted. Example : 45200 represents 45.2%.", + "format": "int32", + "type": "integer" + }, + "consumptionUsageEvents": { + "description": "Optional. List of events, each representing an instance where the user consumed or used the purchased item or service. Lists with over 1000 items will be rejected.", + "items": { + "$ref": "ConsumptionUsageEvent" + }, + "type": "array" + }, + "pendingRefundToken": { + "description": "Required. The pending refund token included in the pending refund review notification.", + "type": "string" + }, + "refundPreference": { + "description": "Required. Indicates your preference, based on your operational logic, as to whether the Play Store should grant the refund.", + "enum": [ + "REFUND_PREFERENCE_UNSPECIFIED", + "DECLINE", + "APPROVE", + "NEUTRAL" + ], + "enumDescriptions": [ + "Refund preference unspecified. This value is not used.", + "Developer prefers that Play declines the refund.", + "Developer prefers that Play grants the refund in full.", + "Developer has no preference about Google Play's decision to issue a refund" + ], + "type": "string" + }, + "sampleContentProvided": { + "description": "Required. Indicates whether you provided a free sample, trial, or information about the functionality prior to the purchase.", + "type": "boolean" + } + }, + "type": "object" + }, "OtherRecurringProduct": { "description": "Details of a recurring external transaction product which doesn't belong to any other more specific category.", "id": "OtherRecurringProduct", diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index 65a83f04223..09a9b98c7c3 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -2602,6 +2602,46 @@ func (s CancellationEvent) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// CoarseLocation: Coarse Geographic location details for where the consumption +// happened. +type CoarseLocation struct { + // AdministrativeArea: Optional. Highest administrative subdivision which is + // used for postal addresses of a country or region. For example, this can be a + // state, a province, an oblast, or a prefecture. For Spain, this is the + // province and not the autonomous community (for example, "Barcelona" and not + // "Catalonia"). Many countries don't use an administrative area in postal + // addresses. For example, in Switzerland, this should be left unpopulated. + AdministrativeArea string `json:"administrativeArea,omitempty"` + // Locality: Optional. Generally refers to the city or town portion of the + // address. Examples: US city, IT comune, UK post town. In regions of the world + // where localities are not well defined or do not fit into this structure + // well, leave `locality` empty. + Locality string `json:"locality,omitempty"` + // RegionCode: Required. CLDR region code (https://cldr.unicode.org/) of the + // country/region of the address. This value is never inferred and you must + // ensure the value is correct. Example: "CH" for Switzerland. + RegionCode string `json:"regionCode,omitempty"` + // Sublocality: Optional. Sublocality of the address. For example, this can be + // a neighborhood, borough, or district. For most addresses, you can omit this. + Sublocality string `json:"sublocality,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdministrativeArea") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AdministrativeArea") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CoarseLocation) MarshalJSON() ([]byte, error) { + type NoMethod CoarseLocation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Comment: An entry of conversation between user and developer. type Comment struct { // DeveloperComment: A comment from a developer. @@ -2626,6 +2666,46 @@ func (s Comment) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ConsumptionUsageEvent: List of events, each representing an instance where +// the user consumed or used the purchased item or service. +type ConsumptionUsageEvent struct { + // ConsumptionItemDescription: Optional. Free form text that allows developers + // to provide more info on the item consumed. Maximum length is 5000 + // characters. + ConsumptionItemDescription string `json:"consumptionItemDescription,omitempty"` + // ConsumptionTime: Optional. Time when the user consumed, used, downloaded, + // opened, or streamed the content. + ConsumptionTime string `json:"consumptionTime,omitempty"` + // IpAddress: Optional. The IP address from which the consumption occurred. + IpAddress string `json:"ipAddress,omitempty"` + // Location: Optional. Geographic location where the consumption occurred. + Location *CoarseLocation `json:"location,omitempty"` + // ObfuscatedAccountId: Optional. Obfuscated string that is uniquely associated + // with the purchaser's user account in the app. + // https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setObfuscatedAccountId(java.lang.String) + ObfuscatedAccountId string `json:"obfuscatedAccountId,omitempty"` + // ObfuscatedProfileId: Optional. Obfuscated string that is uniquely associated + // with the purchaser's user profile in the app. + // https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setObfuscatedProfileId(java.lang.String) + ObfuscatedProfileId string `json:"obfuscatedProfileId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConsumptionItemDescription") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConsumptionItemDescription") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ConsumptionUsageEvent) MarshalJSON() ([]byte, error) { + type NoMethod ConsumptionUsageEvent + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ConvertRegionPricesRequest: Request message for ConvertRegionPrices. type ConvertRegionPricesRequest struct { // Price: The intital price to convert other regions from. Tax exclusive. @@ -6560,6 +6640,52 @@ func (s OrderHistory) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// OrdersReviewRefundRequest: Request for the orders.reviewrefund API. +type OrdersReviewRefundRequest struct { + // ConsumptionPercentageMilliunits: Optional. Percentage of the In-App purchase + // the customer consumed, in milliunits. Minimum: 0 Maximum: 100,000. For paid + // apps, this can be omitted. Example : 45200 represents 45.2%. + ConsumptionPercentageMilliunits int64 `json:"consumptionPercentageMilliunits,omitempty"` + // ConsumptionUsageEvents: Optional. List of events, each representing an + // instance where the user consumed or used the purchased item or service. + // Lists with over 1000 items will be rejected. + ConsumptionUsageEvents []*ConsumptionUsageEvent `json:"consumptionUsageEvents,omitempty"` + // PendingRefundToken: Required. The pending refund token included in the + // pending refund review notification. + PendingRefundToken string `json:"pendingRefundToken,omitempty"` + // RefundPreference: Required. Indicates your preference, based on your + // operational logic, as to whether the Play Store should grant the refund. + // + // Possible values: + // "REFUND_PREFERENCE_UNSPECIFIED" - Refund preference unspecified. This + // value is not used. + // "DECLINE" - Developer prefers that Play declines the refund. + // "APPROVE" - Developer prefers that Play grants the refund in full. + // "NEUTRAL" - Developer has no preference about Google Play's decision to + // issue a refund + RefundPreference string `json:"refundPreference,omitempty"` + // SampleContentProvided: Required. Indicates whether you provided a free + // sample, trial, or information about the functionality prior to the purchase. + SampleContentProvided bool `json:"sampleContentProvided,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "ConsumptionPercentageMilliunits") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConsumptionPercentageMilliunits") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s OrdersReviewRefundRequest) MarshalJSON() ([]byte, error) { + type NoMethod OrdersReviewRefundRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // OtherRecurringProduct: Details of a recurring external transaction product // which doesn't belong to any other more specific category. type OtherRecurringProduct struct { @@ -24048,6 +24174,92 @@ func (c *OrdersRefundCall) Do(opts ...googleapi.CallOption) error { return nil } +type OrdersReviewrefundCall struct { + s *Service + packageName string + orderId string + ordersreviewrefundrequest *OrdersReviewRefundRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Reviewrefund: Provide refund preference and purchase usage for a chargeback +// request +// +// - orderId: The order ID provided to the user when the subscription or in-app +// order was purchased. +// - packageName: The package name of the application for which this +// subscription or in-app item was purchased (for example, 'com.some.thing'). +func (r *OrdersService) Reviewrefund(packageName string, orderId string, ordersreviewrefundrequest *OrdersReviewRefundRequest) *OrdersReviewrefundCall { + c := &OrdersReviewrefundCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.packageName = packageName + c.orderId = orderId + c.ordersreviewrefundrequest = ordersreviewrefundrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *OrdersReviewrefundCall) Fields(s ...googleapi.Field) *OrdersReviewrefundCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrdersReviewrefundCall) Context(ctx context.Context) *OrdersReviewrefundCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *OrdersReviewrefundCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrdersReviewrefundCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.ordersreviewrefundrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "androidpublisher/v3/applications/{packageName}/orders/{orderId}:reviewrefund") + 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{ + "packageName": c.packageName, + "orderId": c.orderId, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "androidpublisher.orders.reviewrefund", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "androidpublisher.orders.reviewrefund" call. +func (c *OrdersReviewrefundCall) Do(opts ...googleapi.CallOption) error { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if err != nil { + return err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return gensupport.WrapError(err) + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "androidpublisher.orders.reviewrefund", "response", internallog.HTTPResponse(res, nil)) + return nil +} + type PurchasesProductsAcknowledgeCall struct { s *Service packageName string diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index b25963c13ce..cc922221e56 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -11964,7 +11964,7 @@ } } }, - "revision": "20260622", + "revision": "20260626", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -19188,7 +19188,7 @@ "type": "object" }, "GoogleCloudApigeeV1RuntimeTraceConfig": { - "description": "NEXT ID: 10 RuntimeTraceConfig defines the configurations for distributed trace in an environment.", + "description": "NEXT ID: 11 RuntimeTraceConfig defines the configurations for distributed trace in an environment.", "id": "GoogleCloudApigeeV1RuntimeTraceConfig", "properties": { "endpoint": { @@ -19242,6 +19242,20 @@ "$ref": "GoogleCloudApigeeV1RuntimeTraceSamplingConfig", "description": "Trace configuration for all API proxies in an environment." }, + "spanSemantics": { + "description": "Optional. The span semantics to use. Configuration Requirements (if `span_semantics` is `OTEL`): - `trace_protocol` must be `OTLP`.", + "enum": [ + "SPAN_SEMANTICS_UNSPECIFIED", + "LEGACY", + "OTEL" + ], + "enumDescriptions": [ + "Semantics unspecified. Defaults to LEGACY.", + "Uses Apigee legacy span and attribute names.", + "Uses OpenTelemetry semantic-convention-aligned span and attribute names." + ], + "type": "string" + }, "traceProtocol": { "description": "Optional. The trace protocol to use.", "enum": [ @@ -19260,7 +19274,7 @@ "type": "object" }, "GoogleCloudApigeeV1RuntimeTraceConfigOverride": { - "description": "NEXT ID: 9 Trace configuration override for a specific API proxy in an environment.", + "description": "NEXT ID: 10 Trace configuration override for a specific API proxy in an environment.", "id": "GoogleCloudApigeeV1RuntimeTraceConfigOverride", "properties": { "apiProxy": { @@ -19289,6 +19303,20 @@ "$ref": "GoogleCloudApigeeV1RuntimeTraceSamplingConfig", "description": "Trace configuration override for a specific API proxy in an environment." }, + "spanSemantics": { + "description": "Optional. The span semantics to use. Configuration Requirements (if `span_semantics` is `OTEL`): - `trace_protocol` must be `OTLP`.", + "enum": [ + "SPAN_SEMANTICS_UNSPECIFIED", + "LEGACY", + "OTEL" + ], + "enumDescriptions": [ + "Semantics unspecified. Defaults to LEGACY.", + "Uses Apigee legacy span and attribute names.", + "Uses OpenTelemetry semantic-convention-aligned span and attribute names." + ], + "type": "string" + }, "traceProtocol": { "description": "Optional. The trace protocol to use.", "enum": [ @@ -21302,6 +21330,20 @@ "$ref": "GoogleCloudApigeeV1TraceSamplingConfig", "description": "Distributed trace configuration for all API proxies in an environment. You can also override the configuration for a specific API proxy using the distributed trace configuration overrides API." }, + "spanSemantics": { + "description": "Optional. The span semantics to use. Configuration Requirements (if span_semantics is OTEL): - trace_protocol must be OTLP.", + "enum": [ + "SPAN_SEMANTICS_UNSPECIFIED", + "LEGACY", + "OTEL" + ], + "enumDescriptions": [ + "Semantics unspecified. Defaults to LEGACY.", + "Uses Apigee legacy span and attribute names.", + "Uses OpenTelemetry semantic-convention-aligned span and attribute names." + ], + "type": "string" + }, "traceProtocol": { "description": "Optional. The trace protocol to use. Configuration Requirements (if trace_protocol is OTLP): - Allowed Exporters: CLOUD_TRACE or OPEN_TELEMETRY_COLLECTOR. - If Exporter is OPEN_TELEMETRY_COLLECTOR: - endpoint refers to a valid OTLP collector URL. - If Exporter is CLOUD_TRACE: - endpoint refers to a valid project ID.", "enum": [ diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index 6c89f6685f7..3c4f309eaaa 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -10237,7 +10237,7 @@ func (s GoogleCloudApigeeV1RuntimeConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudApigeeV1RuntimeTraceConfig: NEXT ID: 10 RuntimeTraceConfig +// GoogleCloudApigeeV1RuntimeTraceConfig: NEXT ID: 11 RuntimeTraceConfig // defines the configurations for distributed trace in an environment. type GoogleCloudApigeeV1RuntimeTraceConfig struct { // Endpoint: Endpoint of the exporter. @@ -10276,6 +10276,16 @@ type GoogleCloudApigeeV1RuntimeTraceConfig struct { RevisionId string `json:"revisionId,omitempty"` // SamplingConfig: Trace configuration for all API proxies in an environment. SamplingConfig *GoogleCloudApigeeV1RuntimeTraceSamplingConfig `json:"samplingConfig,omitempty"` + // SpanSemantics: Optional. The span semantics to use. Configuration + // Requirements (if `span_semantics` is `OTEL`): - `trace_protocol` must be + // `OTLP`. + // + // Possible values: + // "SPAN_SEMANTICS_UNSPECIFIED" - Semantics unspecified. Defaults to LEGACY. + // "LEGACY" - Uses Apigee legacy span and attribute names. + // "OTEL" - Uses OpenTelemetry semantic-convention-aligned span and attribute + // names. + SpanSemantics string `json:"spanSemantics,omitempty"` // TraceProtocol: Optional. The trace protocol to use. // // Possible values: @@ -10302,7 +10312,7 @@ func (s GoogleCloudApigeeV1RuntimeTraceConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudApigeeV1RuntimeTraceConfigOverride: NEXT ID: 9 Trace +// GoogleCloudApigeeV1RuntimeTraceConfigOverride: NEXT ID: 10 Trace // configuration override for a specific API proxy in an environment. type GoogleCloudApigeeV1RuntimeTraceConfigOverride struct { // ApiProxy: Name of the API proxy that will have its trace configuration @@ -10327,6 +10337,16 @@ type GoogleCloudApigeeV1RuntimeTraceConfigOverride struct { // SamplingConfig: Trace configuration override for a specific API proxy in an // environment. SamplingConfig *GoogleCloudApigeeV1RuntimeTraceSamplingConfig `json:"samplingConfig,omitempty"` + // SpanSemantics: Optional. The span semantics to use. Configuration + // Requirements (if `span_semantics` is `OTEL`): - `trace_protocol` must be + // `OTLP`. + // + // Possible values: + // "SPAN_SEMANTICS_UNSPECIFIED" - Semantics unspecified. Defaults to LEGACY. + // "LEGACY" - Uses Apigee legacy span and attribute names. + // "OTEL" - Uses OpenTelemetry semantic-convention-aligned span and attribute + // names. + SpanSemantics string `json:"spanSemantics,omitempty"` // TraceProtocol: Optional. The trace protocol to use. // // Possible values: @@ -12589,6 +12609,15 @@ type GoogleCloudApigeeV1TraceConfig struct { // environment. You can also override the configuration for a specific API // proxy using the distributed trace configuration overrides API. SamplingConfig *GoogleCloudApigeeV1TraceSamplingConfig `json:"samplingConfig,omitempty"` + // SpanSemantics: Optional. The span semantics to use. Configuration + // Requirements (if span_semantics is OTEL): - trace_protocol must be OTLP. + // + // Possible values: + // "SPAN_SEMANTICS_UNSPECIFIED" - Semantics unspecified. Defaults to LEGACY. + // "LEGACY" - Uses Apigee legacy span and attribute names. + // "OTEL" - Uses OpenTelemetry semantic-convention-aligned span and attribute + // names. + SpanSemantics string `json:"spanSemantics,omitempty"` // TraceProtocol: Optional. The trace protocol to use. Configuration // Requirements (if trace_protocol is OTLP): - Allowed Exporters: CLOUD_TRACE // or OPEN_TELEMETRY_COLLECTOR. - If Exporter is OPEN_TELEMETRY_COLLECTOR: - diff --git a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json index d527ada56c5..d2972c2e0b9 100644 --- a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json +++ b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json @@ -1806,7 +1806,7 @@ } } }, - "revision": "20260609", + "revision": "20260708", "rootUrl": "https://authorizedbuyersmarketplace.googleapis.com/", "schemas": { "AcceptProposalRequest": { @@ -2279,6 +2279,11 @@ "$ref": "Money", "description": "Optional. The minimum CPM a buyer has to bid to participate in auctions for inventory in this curated package. Can be used to filter the response of the curatedPackages.list method." }, + "millipercentOfMediaFee": { + "description": "Optional. The fee will be charged as a percentage of the impression cost, represented in millipercent. For example, 1% is represented as 1000.", + "format": "int64", + "type": "string" + }, "name": { "description": "Identifier. The unique resource name for the curated package. Format: `curators/{accountId}/curatedPackages/{curatedPackageId}`", "type": "string" @@ -2325,6 +2330,11 @@ "readOnly": true, "type": "string" }, + "millipercentOfMediaFee": { + "description": "Optional. The fee will be charged as a percentage of the impression cost, represented in millipercent. For example, 1% is represented as 1000.", + "format": "int64", + "type": "string" + }, "name": { "description": "Immutable. Identifier. The unique identifier for the data segment. Account ID corresponds to the account ID that created the segment. v1alpha format: `buyers/{accountId}/dataSegments/{curatorDataSegmentId}` v1beta format: `curators/{curatorAccountId}/dataSegments/{curatorDataSegmentId}`", "type": "string" diff --git a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go index 0f86f8a939f..dc8d89f4896 100644 --- a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go @@ -870,6 +870,10 @@ type CuratedPackage struct { // in auctions for inventory in this curated package. Can be used to filter the // response of the curatedPackages.list method. FloorPriceCpm *Money `json:"floorPriceCpm,omitempty"` + // MillipercentOfMediaFee: Optional. The fee will be charged as a percentage of + // the impression cost, represented in millipercent. For example, 1% is + // represented as 1000. + MillipercentOfMediaFee int64 `json:"millipercentOfMediaFee,omitempty,string"` // Name: Identifier. The unique resource name for the curated package. Format: // `curators/{accountId}/curatedPackages/{curatedPackageId}` Name string `json:"name,omitempty"` @@ -917,6 +921,10 @@ type DataSegment struct { CpmFee *Money `json:"cpmFee,omitempty"` // CreateTime: Output only. Time the data segment was created. CreateTime string `json:"createTime,omitempty"` + // MillipercentOfMediaFee: Optional. The fee will be charged as a percentage of + // the impression cost, represented in millipercent. For example, 1% is + // represented as 1000. + MillipercentOfMediaFee int64 `json:"millipercentOfMediaFee,omitempty,string"` // Name: Immutable. Identifier. The unique identifier for the data segment. // Account ID corresponds to the account ID that created the segment. v1alpha // format: `buyers/{accountId}/dataSegments/{curatorDataSegmentId}` v1beta diff --git a/authorizedbuyersmarketplace/v1beta/authorizedbuyersmarketplace-api.json b/authorizedbuyersmarketplace/v1beta/authorizedbuyersmarketplace-api.json index 1fa6de90ce1..7c6d4e527a4 100644 --- a/authorizedbuyersmarketplace/v1beta/authorizedbuyersmarketplace-api.json +++ b/authorizedbuyersmarketplace/v1beta/authorizedbuyersmarketplace-api.json @@ -517,7 +517,7 @@ } } }, - "revision": "20260609", + "revision": "20260708", "rootUrl": "https://authorizedbuyersmarketplace.googleapis.com/", "schemas": { "AccessControlSettings": { @@ -634,6 +634,11 @@ "$ref": "Money", "description": "Optional. The minimum CPM a buyer has to bid to participate in auctions for inventory in this curated package. Can be used to filter the response of the curatedPackages.list method." }, + "millipercentOfMediaFee": { + "description": "Optional. The fee will be charged as a percentage of the impression cost, represented in millipercent. For example, 1% is represented as 1000.", + "format": "int64", + "type": "string" + }, "name": { "description": "Identifier. The unique resource name for the curated package. Format: `curators/{accountId}/curatedPackages/{curatedPackageId}`", "type": "string" @@ -680,6 +685,11 @@ "readOnly": true, "type": "string" }, + "millipercentOfMediaFee": { + "description": "Optional. The fee will be charged as a percentage of the impression cost, represented in millipercent. For example, 1% is represented as 1000.", + "format": "int64", + "type": "string" + }, "name": { "description": "Immutable. Identifier. The unique identifier for the data segment. Account ID corresponds to the account ID that created the segment. v1alpha format: `buyers/{accountId}/dataSegments/{curatorDataSegmentId}` v1beta format: `curators/{curatorAccountId}/dataSegments/{curatorDataSegmentId}`", "type": "string" diff --git a/authorizedbuyersmarketplace/v1beta/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1beta/authorizedbuyersmarketplace-gen.go index 16b8f9a7168..6fd075c3beb 100644 --- a/authorizedbuyersmarketplace/v1beta/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1beta/authorizedbuyersmarketplace-gen.go @@ -320,6 +320,10 @@ type CuratedPackage struct { // in auctions for inventory in this curated package. Can be used to filter the // response of the curatedPackages.list method. FloorPriceCpm *Money `json:"floorPriceCpm,omitempty"` + // MillipercentOfMediaFee: Optional. The fee will be charged as a percentage of + // the impression cost, represented in millipercent. For example, 1% is + // represented as 1000. + MillipercentOfMediaFee int64 `json:"millipercentOfMediaFee,omitempty,string"` // Name: Identifier. The unique resource name for the curated package. Format: // `curators/{accountId}/curatedPackages/{curatedPackageId}` Name string `json:"name,omitempty"` @@ -367,6 +371,10 @@ type DataSegment struct { CpmFee *Money `json:"cpmFee,omitempty"` // CreateTime: Output only. Time the data segment was created. CreateTime string `json:"createTime,omitempty"` + // MillipercentOfMediaFee: Optional. The fee will be charged as a percentage of + // the impression cost, represented in millipercent. For example, 1% is + // represented as 1000. + MillipercentOfMediaFee int64 `json:"millipercentOfMediaFee,omitempty,string"` // Name: Immutable. Identifier. The unique identifier for the data segment. // Account ID corresponds to the account ID that created the segment. v1alpha // format: `buyers/{accountId}/dataSegments/{curatorDataSegmentId}` v1beta diff --git a/backupdr/v1/backupdr-api.json b/backupdr/v1/backupdr-api.json index 71eb09f922f..4bddbea009a 100644 --- a/backupdr/v1/backupdr-api.json +++ b/backupdr/v1/backupdr-api.json @@ -2661,7 +2661,7 @@ } } }, - "revision": "20260621", + "revision": "20260626", "rootUrl": "https://backupdr.googleapis.com/", "schemas": { "AbandonBackupRequest": { @@ -6983,7 +6983,7 @@ "type": "array" }, "hourlyFrequency": { - "description": "Optional. Specifies frequency for hourly backups. A hourly frequency of 1 means jobs will run every 1 hour from start time till end time defined. This is required for `recurrence_type`, `HOURLY` and is not applicable otherwise. A validation error will occur if a value is supplied and `recurrence_type` is not `HOURLY`. The supported values for each resource type are as follows: * `compute.googleapis.com/Instance`: 4-23 * `compute.googleapis.com/Disk`: 1-23 * `sqladmin.googleapis.com/Instance`: 6-23 * `alloydb.googleapis.com/Cluster`: 1-23 * `file.googleapis.com/Instance`: 1-23 Refer to link https://cloud.google.com/backup-disaster-recovery/docs/concepts/cloud_best_practices for more details.", + "description": "Optional. Specifies frequency for hourly backups. A hourly frequency of 1 means jobs will run every 1 hour from start time till end time defined. This is required for `recurrence_type`, `HOURLY` and is not applicable otherwise. A validation error will occur if a value is supplied and `recurrence_type` is not `HOURLY`. The supported values for each resource type are as follows: * `compute.googleapis.com/Instance`: 1-23 * `compute.googleapis.com/Disk`: 1-23 * `sqladmin.googleapis.com/Instance`: 6-23 * `alloydb.googleapis.com/Cluster`: 1-23 * `file.googleapis.com/Instance`: 1-23 Refer to link https://cloud.google.com/backup-disaster-recovery/docs/concepts/cloud_best_practices for more details.", "format": "int32", "type": "integer" }, diff --git a/backupdr/v1/backupdr-gen.go b/backupdr/v1/backupdr-gen.go index 586059a8a5f..09f00280528 100644 --- a/backupdr/v1/backupdr-gen.go +++ b/backupdr/v1/backupdr-gen.go @@ -5367,7 +5367,7 @@ type StandardSchedule struct { // time defined. This is required for `recurrence_type`, `HOURLY` and is not // applicable otherwise. A validation error will occur if a value is supplied // and `recurrence_type` is not `HOURLY`. The supported values for each - // resource type are as follows: * `compute.googleapis.com/Instance`: 4-23 * + // resource type are as follows: * `compute.googleapis.com/Instance`: 1-23 * // `compute.googleapis.com/Disk`: 1-23 * `sqladmin.googleapis.com/Instance`: // 6-23 * `alloydb.googleapis.com/Cluster`: 1-23 * // `file.googleapis.com/Instance`: 1-23 Refer to link diff --git a/bigquery/v2/bigquery-api.json b/bigquery/v2/bigquery-api.json index 34d2ffb8d17..36c3a3d9481 100644 --- a/bigquery/v2/bigquery-api.json +++ b/bigquery/v2/bigquery-api.json @@ -2390,7 +2390,7 @@ } } }, - "revision": "20260612", + "revision": "20260620", "rootUrl": "https://bigquery.googleapis.com/", "schemas": { "AggregateClassificationMetrics": { @@ -2832,6 +2832,67 @@ }, "type": "object" }, + "ArrowRecordBatch": { + "description": "Arrow RecordBatch. This feature is not yet available.", + "id": "ArrowRecordBatch", + "properties": { + "serializedRecordBatch": { + "description": "IPC-serialized Arrow RecordBatch.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, + "ArrowSchema": { + "description": "Arrow schema as specified in https://arrow.apache.org/docs/python/api/datatypes.html and serialized to bytes using IPC: https://arrow.apache.org/docs/format/Columnar.html#serialization-and-interprocess-communication-ipc See code samples on how this message can be deserialized. This feature is not yet available.", + "id": "ArrowSchema", + "properties": { + "serializedSchema": { + "description": "IPC serialized Arrow schema.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, + "ArrowSerializationOptions": { + "description": "Contains options specific to Arrow Serialization. This feature is not yet available.", + "id": "ArrowSerializationOptions", + "properties": { + "bufferCompression": { + "description": "The compression codec to use for Arrow buffers in serialized record batches.", + "enum": [ + "COMPRESSION_UNSPECIFIED", + "LZ4_FRAME", + "ZSTD" + ], + "enumDescriptions": [ + "If unspecified no compression will be used.", + "LZ4 Frame (https://github.com/lz4/lz4/blob/dev/doc/lz4_Frame_format.md)", + "Zstandard compression." + ], + "type": "string" + }, + "picosTimestampPrecision": { + "description": "Optional. Set timestamp precision option. If not set, the default precision is microseconds.", + "enum": [ + "PICOS_TIMESTAMP_PRECISION_UNSPECIFIED", + "TIMESTAMP_PRECISION_MICROS", + "TIMESTAMP_PRECISION_NANOS", + "TIMESTAMP_PRECISION_PICOS" + ], + "enumDescriptions": [ + "Unspecified timestamp precision. The default precision is microseconds.", + "Timestamp values returned in the results will be truncated to microsecond level precision. The value will be encoded as Arrow TIMESTAMP type in a 64 bit integer.", + "Timestamp values returned in the results will be truncated to nanosecond level precision. The value will be encoded as Arrow TIMESTAMP type in a 64 bit integer.", + "Timestamp values returned in the results will contain full precision picosecond value. The value will be encoded as a string which conforms to ISO 8601 format." + ], + "type": "string" + } + }, + "type": "object" + }, "AuditConfig": { "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", "id": "AuditConfig", @@ -5033,7 +5094,7 @@ "type": "boolean" }, "generationExpression": { - "description": "Optional. The generation expression (e.g. AI.EMBED(...)) used to generated the field.", + "description": "Optional. The generation expression (e.g. AI.EMBED(...)) used to generate the field.", "type": "string" }, "stored": { @@ -8179,6 +8240,10 @@ "description": "Describes the format of the jobs.query request.", "id": "QueryRequest", "properties": { + "arrowSerializationOptions": { + "$ref": "ArrowSerializationOptions", + "description": "Optional. Options specific to the Apache Arrow output format." + }, "connectionProperties": { "description": "Optional. Connection properties which can modify the query behavior.", "items": { @@ -8280,6 +8345,20 @@ }, "type": "array" }, + "queryResultsFormat": { + "description": "Optional. The query results format. If the value is anything other than `STRUCT_ENCODING` or unspecified: * The schema of the results will be provided in `QueryResponse.results_schema` field. * The results of the first page will be provided in `QueryResponse.results` field. * The `QueryResponse.rows` will not be populated. * The `QueryResponse.schema` for `QueryResponse.rows` will also not be populated since it is the schema of the `QueryResponse.rows`. This feature is not yet available.", + "enum": [ + "QUERY_RESULTS_FORMAT_UNSPECIFIED", + "STRUCT_ENCODING", + "ARROW" + ], + "enumDescriptions": [ + "If unspecified it will default to struct `QueryResponse.rows` (`STRUCT_ENCODING`)", + "Default encoding of results as struct in `QueryResponse.rows`", + "Arrow is a standard open source column-based message format. See https://arrow.apache.org/ for more details." + ], + "type": "string" + }, "requestId": { "description": "Optional. A unique user provided identifier to ensure idempotent behavior for queries. Note that this is different from the job_id. It has the following properties: 1. It is case-sensitive, limited to up to 36 ASCII characters. A UUID is recommended. 2. Read only queries can ignore this token since they are nullipotent by definition. 3. For the purposes of idempotency ensured by the request_id, a request is considered duplicate of another only if they have the same request_id and are actually duplicates. When determining whether a request is a duplicate of another request, all parameters in the request that may affect the result are considered. For example, query, connection_properties, query_parameters, use_legacy_sql are parameters that affect the result and are considered when determining whether a request is a duplicate, but properties like timeout_ms don't affect the result and are thus not considered. Dry run query requests are never considered duplicate of another request. 4. When a duplicate mutating query request is detected, it returns: a. the results of the mutation if it completes successfully within the timeout. b. the running operation if it is still in progress at the end of the timeout. 5. Its lifetime is limited to 15 minutes. In other words, if two requests are sent with the same request_id, but more than 15 minutes apart, idempotency is not guaranteed.", "type": "string" @@ -8313,6 +8392,16 @@ "QueryResponse": { "id": "QueryResponse", "properties": { + "arrowRecordBatch": { + "$ref": "ArrowRecordBatch", + "description": "Output only. Serialized row data in Arrow RecordBatch format.", + "readOnly": true + }, + "arrowSchema": { + "$ref": "ArrowSchema", + "description": "Output only. Arrow schema", + "readOnly": true + }, "cacheHit": { "description": "Whether the query result was fetched from the query cache.", "type": "boolean" @@ -8370,6 +8459,12 @@ "readOnly": true, "type": "string" }, + "pageRowCount": { + "description": "Output only. The number of rows out of `total_rows` returned in this response. This feature is not yet available.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "pageToken": { "description": "A token used for paging results. A non-empty token indicates that additional results are available. To see additional results, query the [`jobs.getQueryResults`](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/getQueryResults) method. For more information, see [Paging through table data](https://cloud.google.com/bigquery/docs/paging-results).", "type": "string" diff --git a/bigquery/v2/bigquery-gen.go b/bigquery/v2/bigquery-gen.go index 4ea6aabdd87..956c595739a 100644 --- a/bigquery/v2/bigquery-gen.go +++ b/bigquery/v2/bigquery-gen.go @@ -763,6 +763,101 @@ func (s ArimaSingleModelForecastingMetrics) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ArrowRecordBatch: Arrow RecordBatch. This feature is not yet available. +type ArrowRecordBatch struct { + // SerializedRecordBatch: IPC-serialized Arrow RecordBatch. + SerializedRecordBatch string `json:"serializedRecordBatch,omitempty"` + // ForceSendFields is a list of field names (e.g. "SerializedRecordBatch") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SerializedRecordBatch") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ArrowRecordBatch) MarshalJSON() ([]byte, error) { + type NoMethod ArrowRecordBatch + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ArrowSchema: Arrow schema as specified in +// https://arrow.apache.org/docs/python/api/datatypes.html and serialized to +// bytes using IPC: +// https://arrow.apache.org/docs/format/Columnar.html#serialization-and-interprocess-communication-ipc +// See code samples on how this message can be deserialized. This feature is +// not yet available. +type ArrowSchema struct { + // SerializedSchema: IPC serialized Arrow schema. + SerializedSchema string `json:"serializedSchema,omitempty"` + // ForceSendFields is a list of field names (e.g. "SerializedSchema") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SerializedSchema") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ArrowSchema) MarshalJSON() ([]byte, error) { + type NoMethod ArrowSchema + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ArrowSerializationOptions: Contains options specific to Arrow Serialization. +// This feature is not yet available. +type ArrowSerializationOptions struct { + // BufferCompression: The compression codec to use for Arrow buffers in + // serialized record batches. + // + // Possible values: + // "COMPRESSION_UNSPECIFIED" - If unspecified no compression will be used. + // "LZ4_FRAME" - LZ4 Frame + // (https://github.com/lz4/lz4/blob/dev/doc/lz4_Frame_format.md) + // "ZSTD" - Zstandard compression. + BufferCompression string `json:"bufferCompression,omitempty"` + // PicosTimestampPrecision: Optional. Set timestamp precision option. If not + // set, the default precision is microseconds. + // + // Possible values: + // "PICOS_TIMESTAMP_PRECISION_UNSPECIFIED" - Unspecified timestamp precision. + // The default precision is microseconds. + // "TIMESTAMP_PRECISION_MICROS" - Timestamp values returned in the results + // will be truncated to microsecond level precision. The value will be encoded + // as Arrow TIMESTAMP type in a 64 bit integer. + // "TIMESTAMP_PRECISION_NANOS" - Timestamp values returned in the results + // will be truncated to nanosecond level precision. The value will be encoded + // as Arrow TIMESTAMP type in a 64 bit integer. + // "TIMESTAMP_PRECISION_PICOS" - Timestamp values returned in the results + // will contain full precision picosecond value. The value will be encoded as a + // string which conforms to ISO 8601 format. + PicosTimestampPrecision string `json:"picosTimestampPrecision,omitempty"` + // ForceSendFields is a list of field names (e.g. "BufferCompression") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BufferCompression") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ArrowSerializationOptions) MarshalJSON() ([]byte, error) { + type NoMethod ArrowSerializationOptions + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what // identities, if any, are exempted from logging. An AuditConfig must have one @@ -3925,7 +4020,7 @@ type GeneratedExpressionInfo struct { // asynchronously. Asynchronous bool `json:"asynchronous,omitempty"` // GenerationExpression: Optional. The generation expression (e.g. - // AI.EMBED(...)) used to generated the field. + // AI.EMBED(...)) used to generate the field. GenerationExpression string `json:"generationExpression,omitempty"` // Stored: Optional. Whether the generated column is stored in the table. Stored bool `json:"stored,omitempty"` @@ -7686,6 +7781,9 @@ func (s QueryParameterValue) MarshalJSON() ([]byte, error) { // QueryRequest: Describes the format of the jobs.query request. type QueryRequest struct { + // ArrowSerializationOptions: Optional. Options specific to the Apache Arrow + // output format. + ArrowSerializationOptions *ArrowSerializationOptions `json:"arrowSerializationOptions,omitempty"` // ConnectionProperties: Optional. Connection properties which can modify the // query behavior. ConnectionProperties []*ConnectionProperty `json:"connectionProperties,omitempty"` @@ -7775,6 +7873,23 @@ type QueryRequest struct { Query string `json:"query,omitempty"` // QueryParameters: Query parameters for GoogleSQL queries. QueryParameters []*QueryParameter `json:"queryParameters,omitempty"` + // QueryResultsFormat: Optional. The query results format. If the value is + // anything other than `STRUCT_ENCODING` or unspecified: * The schema of the + // results will be provided in `QueryResponse.results_schema` field. * The + // results of the first page will be provided in `QueryResponse.results` field. + // * The `QueryResponse.rows` will not be populated. * The + // `QueryResponse.schema` for `QueryResponse.rows` will also not be populated + // since it is the schema of the `QueryResponse.rows`. This feature is not yet + // available. + // + // Possible values: + // "QUERY_RESULTS_FORMAT_UNSPECIFIED" - If unspecified it will default to + // struct `QueryResponse.rows` (`STRUCT_ENCODING`) + // "STRUCT_ENCODING" - Default encoding of results as struct in + // `QueryResponse.rows` + // "ARROW" - Arrow is a standard open source column-based message format. See + // https://arrow.apache.org/ for more details. + QueryResultsFormat string `json:"queryResultsFormat,omitempty"` // RequestId: Optional. A unique user provided identifier to ensure idempotent // behavior for queries. Note that this is different from the job_id. It has // the following properties: 1. It is case-sensitive, limited to up to 36 ASCII @@ -7831,15 +7946,15 @@ type QueryRequest struct { // result table. This may incur a performance penalty. This option cannot be // used with Legacy SQL. This feature is not yet available. WriteIncrementalResults bool `json:"writeIncrementalResults,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConnectionProperties") to - // unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "ArrowSerializationOptions") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ConnectionProperties") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "ArrowSerializationOptions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -7850,6 +7965,11 @@ func (s QueryRequest) MarshalJSON() ([]byte, error) { } type QueryResponse struct { + // ArrowRecordBatch: Output only. Serialized row data in Arrow RecordBatch + // format. + ArrowRecordBatch *ArrowRecordBatch `json:"arrowRecordBatch,omitempty"` + // ArrowSchema: Output only. Arrow schema + ArrowSchema *ArrowSchema `json:"arrowSchema,omitempty"` // CacheHit: Whether the query result was fetched from the query cache. CacheHit bool `json:"cacheHit,omitempty"` // CreationTime: Output only. Creation time of this query, in milliseconds @@ -7893,6 +8013,9 @@ type QueryResponse struct { // NumDmlAffectedRows: Output only. The number of rows affected by a DML // statement. Present only for DML statements INSERT, UPDATE or DELETE. NumDmlAffectedRows int64 `json:"numDmlAffectedRows,omitempty,string"` + // PageRowCount: Output only. The number of rows out of `total_rows` returned + // in this response. This feature is not yet available. + PageRowCount int64 `json:"pageRowCount,omitempty,string"` // PageToken: A token used for paging results. A non-empty token indicates that // additional results are available. To see additional results, query the // `jobs.getQueryResults` @@ -7933,15 +8056,15 @@ type QueryResponse struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CacheHit") to + // ForceSendFields is a list of field names (e.g. "ArrowRecordBatch") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CacheHit") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "ArrowRecordBatch") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/bigqueryreservation/v1/bigqueryreservation-api.json b/bigqueryreservation/v1/bigqueryreservation-api.json index d29d0ad9540..66b676f6b59 100644 --- a/bigqueryreservation/v1/bigqueryreservation-api.json +++ b/bigqueryreservation/v1/bigqueryreservation-api.json @@ -736,6 +736,41 @@ "https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform" ] + }, + "patch": { + "description": "Updates an existing reservation group resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reservationGroups/{reservationGroupsId}", + "httpMethod": "PATCH", + "id": "bigqueryreservation.projects.locations.reservationGroups.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the reservation group, e.g., `projects/*/locations/*/reservationGroups/team1-prod`. The reservation_group_id must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reservationGroups/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Standard field mask for the set of fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "ReservationGroup" + }, + "response": { + "$ref": "ReservationGroup" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] } } }, @@ -1282,7 +1317,7 @@ } } }, - "revision": "20260410", + "revision": "20260629", "rootUrl": "https://bigqueryreservation.googleapis.com/", "schemas": { "Assignment": { @@ -1540,7 +1575,7 @@ ], "enumDeprecated": [ false, - false, + true, true, true, false, @@ -1552,7 +1587,7 @@ ], "enumDescriptions": [ "Invalid plan value. Requests with this value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.", - "Flex commitments have committed period of 1 minute after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.", + "Deprecated: Flex commitments are deprecated. Please use Edition-based capacity commitments. Flex commitments have committed period of 1 minute after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.", "Same as FLEX, should only be used if flat-rate commitments are still available.", "Trial commitments have a committed period of 182 days after becoming ACTIVE. After that, they are converted to a new commitment based on the `renewal_plan`. Default `renewal_plan` for Trial commitment is Flex so that it can be deleted right after committed period ends.", "Monthly commitments have a committed period of 30 days after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.", @@ -1580,7 +1615,7 @@ ], "enumDeprecated": [ false, - false, + true, true, true, false, @@ -1592,7 +1627,7 @@ ], "enumDescriptions": [ "Invalid plan value. Requests with this value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.", - "Flex commitments have committed period of 1 minute after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.", + "Deprecated: Flex commitments are deprecated. Please use Edition-based capacity commitments. Flex commitments have committed period of 1 minute after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.", "Same as FLEX, should only be used if flat-rate commitments are still available.", "Trial commitments have a committed period of 182 days after becoming ACTIVE. After that, they are converted to a new commitment based on the `renewal_plan`. Default `renewal_plan` for Trial commitment is Flex so that it can be deleted right after committed period ends.", "Monthly commitments have a committed period of 30 days after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.", @@ -1969,6 +2004,10 @@ "name": { "description": "Identifier. The resource name of the reservation group, e.g., `projects/*/locations/*/reservationGroups/team1-prod`. The reservation_group_id must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters.", "type": "string" + }, + "parentGroup": { + "description": "Optional. The parent reservation group of the reservation group. Format: `projects/*/locations/*/reservationGroups/team1-prod` for non-root reservation groups, or `projects/*/locations/*` for root reservation groups.", + "type": "string" } }, "type": "object" diff --git a/bigqueryreservation/v1/bigqueryreservation-gen.go b/bigqueryreservation/v1/bigqueryreservation-gen.go index b18224229ce..ae15c70babb 100644 --- a/bigqueryreservation/v1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1/bigqueryreservation-gen.go @@ -616,9 +616,10 @@ type CapacityCommitment struct { // Possible values: // "COMMITMENT_PLAN_UNSPECIFIED" - Invalid plan value. Requests with this // value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. - // "FLEX" - Flex commitments have committed period of 1 minute after becoming - // ACTIVE. After that, they are not in a committed period anymore and can be - // removed any time. + // "FLEX" - Deprecated: Flex commitments are deprecated. Please use + // Edition-based capacity commitments. Flex commitments have committed period + // of 1 minute after becoming ACTIVE. After that, they are not in a committed + // period anymore and can be removed any time. // "FLEX_FLAT_RATE" - Same as FLEX, should only be used if flat-rate // commitments are still available. // "TRIAL" - Trial commitments have a committed period of 182 days after @@ -653,9 +654,10 @@ type CapacityCommitment struct { // Possible values: // "COMMITMENT_PLAN_UNSPECIFIED" - Invalid plan value. Requests with this // value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. - // "FLEX" - Flex commitments have committed period of 1 minute after becoming - // ACTIVE. After that, they are not in a committed period anymore and can be - // removed any time. + // "FLEX" - Deprecated: Flex commitments are deprecated. Please use + // Edition-based capacity commitments. Flex commitments have committed period + // of 1 minute after becoming ACTIVE. After that, they are not in a committed + // period anymore and can be removed any time. // "FLEX_FLAT_RATE" - Same as FLEX, should only be used if flat-rate // commitments are still available. // "TRIAL" - Trial commitments have a committed period of 182 days after @@ -1317,6 +1319,11 @@ type ReservationGroup struct { // dashes. It must start with a letter and must not end with a dash. Its // maximum length is 64 characters. Name string `json:"name,omitempty"` + // ParentGroup: Optional. The parent reservation group of the reservation + // group. Format: `projects/*/locations/*/reservationGroups/team1-prod` for + // non-root reservation groups, or `projects/*/locations/*` for root + // reservation groups. + ParentGroup string `json:"parentGroup,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -3471,6 +3478,121 @@ func (c *ProjectsLocationsReservationGroupsListCall) Pages(ctx context.Context, } } +type ProjectsLocationsReservationGroupsPatchCall struct { + s *Service + name string + reservationgroup *ReservationGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an existing reservation group resource. +// +// - name: Identifier. The resource name of the reservation group, e.g., +// `projects/*/locations/*/reservationGroups/team1-prod`. The +// reservation_group_id must only contain lower case alphanumeric characters +// or dashes. It must start with a letter and must not end with a dash. Its +// maximum length is 64 characters. +func (r *ProjectsLocationsReservationGroupsService) Patch(name string, reservationgroup *ReservationGroup) *ProjectsLocationsReservationGroupsPatchCall { + c := &ProjectsLocationsReservationGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.reservationgroup = reservationgroup + return c +} + +// UpdateMask sets the optional parameter "updateMask": Standard field mask for +// the set of fields to be updated. +func (c *ProjectsLocationsReservationGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsReservationGroupsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsReservationGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationGroupsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsReservationGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsReservationGroupsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsReservationGroupsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReservationGroupsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.reservationgroup) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "bigqueryreservation.projects.locations.reservationGroups.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "bigqueryreservation.projects.locations.reservationGroups.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *ReservationGroup.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 *ProjectsLocationsReservationGroupsPatchCall) Do(opts ...googleapi.CallOption) (*ReservationGroup, 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 := &ReservationGroup{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "bigqueryreservation.projects.locations.reservationGroups.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsReservationsCreateCall struct { s *Service parent string diff --git a/binaryauthorization/v1/binaryauthorization-api.json b/binaryauthorization/v1/binaryauthorization-api.json index a3090da7f3e..214b6e4b664 100644 --- a/binaryauthorization/v1/binaryauthorization-api.json +++ b/binaryauthorization/v1/binaryauthorization-api.json @@ -747,7 +747,7 @@ } } }, - "revision": "20250311", + "revision": "20260703", "rootUrl": "https://binaryauthorization.googleapis.com/", "schemas": { "AdmissionRule": { @@ -1375,7 +1375,8 @@ "ECDSA_P384_SHA384", "EC_SIGN_P384_SHA384", "ECDSA_P521_SHA512", - "EC_SIGN_P521_SHA512" + "EC_SIGN_P521_SHA512", + "ML_DSA_65" ], "enumDescriptions": [ "Not specified.", @@ -1396,7 +1397,8 @@ "ECDSA on the NIST P-384 curve with a SHA384 digest.", "ECDSA on the NIST P-384 curve with a SHA384 digest.", "ECDSA on the NIST P-521 curve with a SHA512 digest.", - "ECDSA on the NIST P-521 curve with a SHA512 digest." + "ECDSA on the NIST P-521 curve with a SHA512 digest.", + "ML-DSA-65 Post-Quantum Cryptography signature algorithm." ], "type": "string" } diff --git a/binaryauthorization/v1/binaryauthorization-gen.go b/binaryauthorization/v1/binaryauthorization-gen.go index d9db0e2eba1..d440bce29e4 100644 --- a/binaryauthorization/v1/binaryauthorization-gen.go +++ b/binaryauthorization/v1/binaryauthorization-gen.go @@ -1325,6 +1325,7 @@ type PkixPublicKey struct { // "ECDSA_P521_SHA512" - ECDSA on the NIST P-521 curve with a SHA512 digest. // "EC_SIGN_P521_SHA512" - ECDSA on the NIST P-521 curve with a SHA512 // digest. + // "ML_DSA_65" - ML-DSA-65 Post-Quantum Cryptography signature algorithm. SignatureAlgorithm string `json:"signatureAlgorithm,omitempty"` // ForceSendFields is a list of field names (e.g. "KeyId") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/binaryauthorization/v1beta1/binaryauthorization-api.json b/binaryauthorization/v1beta1/binaryauthorization-api.json index 9efd587a7a2..ad7dfb4c646 100644 --- a/binaryauthorization/v1beta1/binaryauthorization-api.json +++ b/binaryauthorization/v1beta1/binaryauthorization-api.json @@ -551,7 +551,7 @@ } } }, - "revision": "20241018", + "revision": "20260703", "rootUrl": "https://binaryauthorization.googleapis.com/", "schemas": { "AdmissionRule": { @@ -818,7 +818,8 @@ "ECDSA_P384_SHA384", "EC_SIGN_P384_SHA384", "ECDSA_P521_SHA512", - "EC_SIGN_P521_SHA512" + "EC_SIGN_P521_SHA512", + "ML_DSA_65" ], "enumDescriptions": [ "Not specified.", @@ -839,7 +840,8 @@ "ECDSA on the NIST P-384 curve with a SHA384 digest.", "ECDSA on the NIST P-384 curve with a SHA384 digest.", "ECDSA on the NIST P-521 curve with a SHA512 digest.", - "ECDSA on the NIST P-521 curve with a SHA512 digest." + "ECDSA on the NIST P-521 curve with a SHA512 digest.", + "ML-DSA-65 Post-Quantum Cryptography signature algorithm." ], "type": "string" } diff --git a/binaryauthorization/v1beta1/binaryauthorization-gen.go b/binaryauthorization/v1beta1/binaryauthorization-gen.go index e53ff90cd96..3c17d8d844b 100644 --- a/binaryauthorization/v1beta1/binaryauthorization-gen.go +++ b/binaryauthorization/v1beta1/binaryauthorization-gen.go @@ -736,6 +736,7 @@ type PkixPublicKey struct { // "ECDSA_P521_SHA512" - ECDSA on the NIST P-521 curve with a SHA512 digest. // "EC_SIGN_P521_SHA512" - ECDSA on the NIST P-521 curve with a SHA512 // digest. + // "ML_DSA_65" - ML-DSA-65 Post-Quantum Cryptography signature algorithm. SignatureAlgorithm string `json:"signatureAlgorithm,omitempty"` // ForceSendFields is a list of field names (e.g. "PublicKeyPem") to // unconditionally include in API requests. By default, fields with empty or diff --git a/blogger/v3/blogger-api.json b/blogger/v3/blogger-api.json index b42ef07250f..4df155a5897 100644 --- a/blogger/v3/blogger-api.json +++ b/blogger/v3/blogger-api.json @@ -1713,7 +1713,7 @@ } } }, - "revision": "20260521", + "revision": "20260707", "rootUrl": "https://blogger.googleapis.com/", "schemas": { "Blog": { @@ -2554,6 +2554,6 @@ } }, "servicePath": "", - "title": "blogger API", + "title": "Blogger API", "version": "v3" } \ No newline at end of file diff --git a/blogger/v3/blogger-gen.go b/blogger/v3/blogger-gen.go index 3de2a0729da..ac8e15a729c 100644 --- a/blogger/v3/blogger-gen.go +++ b/blogger/v3/blogger-gen.go @@ -4,7 +4,7 @@ // Code generated file. DO NOT EDIT. -// Package blogger provides access to the blogger API. +// Package blogger provides access to the Blogger API. // // For product documentation, see: https://developers.google.com/blogger/docs/3.0/getting_started // diff --git a/calendar/v3/calendar-api.json b/calendar/v3/calendar-api.json index e4158a2f4b1..faa4c4b3cb8 100644 --- a/calendar/v3/calendar-api.json +++ b/calendar/v3/calendar-api.json @@ -784,6 +784,41 @@ "https://www.googleapis.com/auth/calendar.calendars" ] }, + "transferOwnership": { + "description": "Transfers a secondary calendar between users within a Google Workspace organization. Requires user authentication with Manage Calendars administrator privilege, and one of the following authorization scopes: \n- https://www.googleapis.com/auth/calendar \n- https://www.googleapis.com/auth/calendar.calendars In the request, set useAdminAccess to true. The secondary calendar must be active to be transferred. Transferring disabled or deleted calendars isn't supported.", + "httpMethod": "POST", + "id": "calendar.calendars.transferOwnership", + "parameterOrder": [ + "calendarId", + "newDataOwner", + "useAdminAccess" + ], + "parameters": { + "calendarId": { + "description": "Calendar identifier. To retrieve calendar IDs, call the calendarList.list method.", + "location": "path", + "required": true, + "type": "string" + }, + "newDataOwner": { + "description": "The email address of a user who will become the data owner of the calendar.", + "location": "query", + "required": true, + "type": "string" + }, + "useAdminAccess": { + "description": "When true, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the Manage Calendars privilege. This method currently only supports admin access, thus only true is accepted for this field.", + "location": "query", + "required": true, + "type": "boolean" + } + }, + "path": "calendars/{calendarId}/transferOwnership", + "scopes": [ + "https://www.googleapis.com/auth/calendar", + "https://www.googleapis.com/auth/calendar.calendars" + ] + }, "update": { "description": "Updates metadata for a calendar.", "httpMethod": "PUT", @@ -997,6 +1032,14 @@ "minimum": "0", "type": "integer" }, + "eventLabelVersion": { + "description": "Version number of the event label feature supported by the API client. Version 0 assumes no event label support and processes the colorId field for color management. Version 1 enables support for event labels, and processes the eventLabelId in the event's body. In this case, the colorId field is ignored. The default is 0.", + "format": "int32", + "location": "query", + "maximum": "1", + "minimum": "0", + "type": "integer" + }, "supportsAttachments": { "description": "Whether API client performing operation supports event attachments. Optional. The default is False.", "location": "query", @@ -1039,6 +1082,14 @@ "minimum": "0", "type": "integer" }, + "eventLabelVersion": { + "description": "Version number of the event label feature supported by the API client. Version 0 assumes no event label support and processes the colorId field for color management. Version 1 enables support for event labels, and processes the eventLabelId in the event's body. In this case, the colorId field is ignored. The default is 0.", + "format": "int32", + "location": "query", + "maximum": "1", + "minimum": "0", + "type": "integer" + }, "maxAttendees": { "description": "The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.", "format": "int32", @@ -1426,6 +1477,14 @@ "required": true, "type": "string" }, + "eventLabelVersion": { + "description": "Version number of the event label feature supported by the API client. Version 0 assumes no event label support and processes the colorId field for color management. Version 1 enables support for event labels, and processes the eventLabelId in the event's body. In this case, the colorId field is ignored. The default is 0.", + "format": "int32", + "location": "query", + "maximum": "1", + "minimum": "0", + "type": "integer" + }, "maxAttendees": { "description": "The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.", "format": "int32", @@ -1560,6 +1619,14 @@ "required": true, "type": "string" }, + "eventLabelVersion": { + "description": "Version number of the event label feature supported by the API client. Version 0 assumes no event label support and processes the colorId field for color management. Version 1 enables support for event labels, and processes the eventLabelId in the event's body. In this case, the colorId field is ignored. The default is 0.", + "format": "int32", + "location": "query", + "maximum": "1", + "minimum": "0", + "type": "integer" + }, "maxAttendees": { "description": "The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.", "format": "int32", @@ -1894,7 +1961,7 @@ } } }, - "revision": "20260614", + "revision": "20260702", "rootUrl": "https://www.googleapis.com/", "schemas": { "Acl": { @@ -2013,6 +2080,10 @@ "description": "Type of the resource (\"calendar#calendar\").", "type": "string" }, + "labelProperties": { + "$ref": "LabelProperties", + "description": "Label properties defined on this calendar. If specified, overwrites the existing label properties. If not specified, the label properties remain unchanged." + }, "location": { "description": "Geographic location of the calendar as free-form text. Optional.", "type": "string" @@ -2569,6 +2640,10 @@ "description": "ETag of the resource.", "type": "string" }, + "eventLabelId": { + "description": "The ID of the event label assigned to the event. Optional. This refers to the ID of an entry in the labelProperties.eventLabels property of the calendar (see the Calendars.get endpoint.)\nThis property supersedes the index-based colorId property. To set or change this property, you need to specify eventLabelVersion=1 in the parameters of the insert, import, update, and patch methods.\nSetting an empty string, or not setting this field at all, will remove the existing label from the event.", + "type": "string" + }, "eventType": { "default": "default", "description": "Specific type of the event. This cannot be modified after the event is created. Possible values are: \n- \"birthday\" - A special all-day event with an annual recurrence. \n- \"default\" - A regular event or not further specified. \n- \"focusTime\" - A focus-time event. \n- \"fromGmail\" - An event from Gmail. This type of event cannot be created. \n- \"outOfOffice\" - An out-of-office event. \n- \"workingLocation\" - A working location event.", @@ -2959,6 +3034,20 @@ }, "EventLabel": { "id": "EventLabel", + "properties": { + "backgroundColor": { + "description": "Background color of the label in hexadecimal format, such as \"#039be5\". Events with this label are displayed in this color. Required.", + "type": "string" + }, + "id": { + "description": "The ID of the label. Optional when inserting a new label. If not provided, a unique ID will be generated. Required when updating a label.\nIf provided, the ID must be unique within the calendar and follow UUID format.", + "type": "string" + }, + "name": { + "description": "Name of the label. Optional.\nIf provided this must have at most 50 characters.", + "type": "string" + } + }, "type": "object" }, "EventOutOfOfficeProperties": { @@ -3225,6 +3314,15 @@ }, "LabelProperties": { "id": "LabelProperties", + "properties": { + "eventLabels": { + "description": "Event labels defined on this calendar. If this is present when updating the calendar, it will replace the existing event labels.\nExtend the list to add a new event label, and remove entities from the list to delete a label from calendar.\nEach calendar can have a maximum of 200 labels.", + "items": { + "$ref": "EventLabel" + }, + "type": "array" + } + }, "type": "object" }, "Setting": { diff --git a/calendar/v3/calendar-gen.go b/calendar/v3/calendar-gen.go index bad9283d28d..49f8ff93e15 100644 --- a/calendar/v3/calendar-gen.go +++ b/calendar/v3/calendar-gen.go @@ -447,6 +447,10 @@ type Calendar struct { Id string `json:"id,omitempty"` // Kind: Type of the resource ("calendar#calendar"). Kind string `json:"kind,omitempty"` + // LabelProperties: Label properties defined on this calendar. If specified, + // overwrites the existing label properties. If not specified, the label + // properties remain unchanged. + LabelProperties *LabelProperties `json:"labelProperties,omitempty"` // Location: Geographic location of the calendar as free-form text. Optional. Location string `json:"location,omitempty"` // Summary: Title of the calendar. @@ -1190,6 +1194,15 @@ type Event struct { EndTimeUnspecified bool `json:"endTimeUnspecified,omitempty"` // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` + // EventLabelId: The ID of the event label assigned to the event. Optional. + // This refers to the ID of an entry in the labelProperties.eventLabels + // property of the calendar (see the Calendars.get endpoint.) + // This property supersedes the index-based colorId property. To set or change + // this property, you need to specify eventLabelVersion=1 in the parameters of + // the insert, import, update, and patch methods. + // Setting an empty string, or not setting this field at all, will remove the + // existing label from the event. + EventLabelId string `json:"eventLabelId,omitempty"` // EventType: Specific type of the event. This cannot be modified after the // event is created. Possible values are: // - "birthday" - A special all-day event with an annual recurrence. @@ -1765,6 +1778,33 @@ func (s EventFocusTimeProperties) MarshalJSON() ([]byte, error) { } type EventLabel struct { + // BackgroundColor: Background color of the label in hexadecimal format, such + // as "#039be5". Events with this label are displayed in this color. Required. + BackgroundColor string `json:"backgroundColor,omitempty"` + // Id: The ID of the label. Optional when inserting a new label. If not + // provided, a unique ID will be generated. Required when updating a label. + // If provided, the ID must be unique within the calendar and follow UUID + // format. + Id string `json:"id,omitempty"` + // Name: Name of the label. Optional. + // If provided this must have at most 50 characters. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "BackgroundColor") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BackgroundColor") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s EventLabel) MarshalJSON() ([]byte, error) { + type NoMethod EventLabel + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type EventOutOfOfficeProperties struct { @@ -2118,6 +2158,28 @@ func (s FreeBusyResponse) MarshalJSON() ([]byte, error) { } type LabelProperties struct { + // EventLabels: Event labels defined on this calendar. If this is present when + // updating the calendar, it will replace the existing event labels. + // Extend the list to add a new event label, and remove entities from the list + // to delete a label from calendar. + // Each calendar can have a maximum of 200 labels. + EventLabels []*EventLabel `json:"eventLabels,omitempty"` + // ForceSendFields is a list of field names (e.g. "EventLabels") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EventLabels") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LabelProperties) MarshalJSON() ([]byte, error) { + type NoMethod LabelProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type Setting struct { @@ -4426,6 +4488,96 @@ func (c *CalendarsPatchCall) Do(opts ...googleapi.CallOption) (*Calendar, error) return ret, nil } +type CalendarsTransferOwnershipCall struct { + s *Service + calendarId string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TransferOwnership: Transfers a secondary calendar between users within a +// Google Workspace organization. Requires user authentication with Manage +// Calendars administrator privilege, and one of the following authorization +// scopes: +// - https://www.googleapis.com/auth/calendar +// - https://www.googleapis.com/auth/calendar.calendars In the request, set +// useAdminAccess to true. The secondary calendar must be active to be +// transferred. Transferring disabled or deleted calendars isn't supported. +// +// - calendarId: Calendar identifier. To retrieve calendar IDs, call the +// calendarList.list method. +// - newDataOwner: The email address of a user who will become the data owner +// of the calendar. +// - useAdminAccess: When true, the method runs using the user's Google +// Workspace administrator privileges. The calling user must be a Google +// Workspace administrator with the Manage Calendars privilege. This method +// currently only supports admin access, thus only true is accepted for this +// field. +func (r *CalendarsService) TransferOwnership(calendarId string, newDataOwner string, useAdminAccess bool) *CalendarsTransferOwnershipCall { + c := &CalendarsTransferOwnershipCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.calendarId = calendarId + c.urlParams_.Set("newDataOwner", newDataOwner) + c.urlParams_.Set("useAdminAccess", fmt.Sprint(useAdminAccess)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *CalendarsTransferOwnershipCall) Fields(s ...googleapi.Field) *CalendarsTransferOwnershipCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *CalendarsTransferOwnershipCall) Context(ctx context.Context) *CalendarsTransferOwnershipCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *CalendarsTransferOwnershipCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *CalendarsTransferOwnershipCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "calendars/{calendarId}/transferOwnership") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "calendarId": c.calendarId, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "calendar.calendars.transferOwnership", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "calendar.calendars.transferOwnership" call. +func (c *CalendarsTransferOwnershipCall) Do(opts ...googleapi.CallOption) error { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if err != nil { + return err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return gensupport.WrapError(err) + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "calendar.calendars.transferOwnership", "response", internallog.HTTPResponse(res, nil)) + return nil +} + type CalendarsUpdateCall struct { s *Service calendarId string @@ -4991,6 +5143,17 @@ func (c *EventsImportCall) ConferenceDataVersion(conferenceDataVersion int64) *E return c } +// EventLabelVersion sets the optional parameter "eventLabelVersion": Version +// number of the event label feature supported by the API client. Version 0 +// assumes no event label support and processes the colorId field for color +// management. Version 1 enables support for event labels, and processes the +// eventLabelId in the event's body. In this case, the colorId field is +// ignored. The default is 0. +func (c *EventsImportCall) EventLabelVersion(eventLabelVersion int64) *EventsImportCall { + c.urlParams_.Set("eventLabelVersion", fmt.Sprint(eventLabelVersion)) + return c +} + // SupportsAttachments sets the optional parameter "supportsAttachments": // Whether API client performing operation supports event attachments. The // default is False. @@ -5115,6 +5278,17 @@ func (c *EventsInsertCall) ConferenceDataVersion(conferenceDataVersion int64) *E return c } +// EventLabelVersion sets the optional parameter "eventLabelVersion": Version +// number of the event label feature supported by the API client. Version 0 +// assumes no event label support and processes the colorId field for color +// management. Version 1 enables support for event labels, and processes the +// eventLabelId in the event's body. In this case, the colorId field is +// ignored. The default is 0. +func (c *EventsInsertCall) EventLabelVersion(eventLabelVersion int64) *EventsInsertCall { + c.urlParams_.Set("eventLabelVersion", fmt.Sprint(eventLabelVersion)) + return c +} + // MaxAttendees sets the optional parameter "maxAttendees": The maximum number // of attendees to include in the response. If there are more than the // specified number of attendees, only the participant is returned. @@ -5979,6 +6153,17 @@ func (c *EventsPatchCall) ConferenceDataVersion(conferenceDataVersion int64) *Ev return c } +// EventLabelVersion sets the optional parameter "eventLabelVersion": Version +// number of the event label feature supported by the API client. Version 0 +// assumes no event label support and processes the colorId field for color +// management. Version 1 enables support for event labels, and processes the +// eventLabelId in the event's body. In this case, the colorId field is +// ignored. The default is 0. +func (c *EventsPatchCall) EventLabelVersion(eventLabelVersion int64) *EventsPatchCall { + c.urlParams_.Set("eventLabelVersion", fmt.Sprint(eventLabelVersion)) + return c +} + // MaxAttendees sets the optional parameter "maxAttendees": The maximum number // of attendees to include in the response. If there are more than the // specified number of attendees, only the participant is returned. @@ -6284,6 +6469,17 @@ func (c *EventsUpdateCall) ConferenceDataVersion(conferenceDataVersion int64) *E return c } +// EventLabelVersion sets the optional parameter "eventLabelVersion": Version +// number of the event label feature supported by the API client. Version 0 +// assumes no event label support and processes the colorId field for color +// management. Version 1 enables support for event labels, and processes the +// eventLabelId in the event's body. In this case, the colorId field is +// ignored. The default is 0. +func (c *EventsUpdateCall) EventLabelVersion(eventLabelVersion int64) *EventsUpdateCall { + c.urlParams_.Set("eventLabelVersion", fmt.Sprint(eventLabelVersion)) + return c +} + // MaxAttendees sets the optional parameter "maxAttendees": The maximum number // of attendees to include in the response. If there are more than the // specified number of attendees, only the participant is returned. diff --git a/ces/v1/ces-api.json b/ces/v1/ces-api.json index cf91abc60ed..8ccc9ea1514 100644 --- a/ces/v1/ces-api.json +++ b/ces/v1/ces-api.json @@ -351,6 +351,32 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getExtendedAgentCard": { + "description": "Gets the extended agent card for the authenticated agent.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/extendedAgentCard", + "httpMethod": "GET", + "id": "ces.projects.locations.apps.getExtendedAgentCard", + "parameterOrder": [ + "tenant" + ], + "parameters": { + "tenant": { + "description": "Optional. Tenant ID, provided as a path parameter.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/apps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+tenant}/extendedAgentCard", + "response": { + "$ref": "LfA2aV1AgentCard" + }, + "scopes": [ + "https://www.googleapis.com/auth/ces", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "importApp": { "description": "Imports the specified app.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/apps:importApp", @@ -2316,7 +2342,7 @@ } } }, - "revision": "20260513", + "revision": "20260617", "rootUrl": "https://ces.googleapis.com/", "schemas": { "Action": { @@ -2703,11 +2729,6 @@ "name": { "description": "Required. The name of the agent tool.", "type": "string" - }, - "rootAgent": { - "deprecated": true, - "description": "Optional. Deprecated: Use `agent` instead. The resource name of the root agent that is the entry point of the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`", - "type": "string" } }, "type": "object" @@ -3131,7 +3152,7 @@ }, "disableBargeIn": { "deprecated": true, - "description": "Optional. Disables user barge-in while the agent is speaking. If true, user input during agent response playback will be ignored. Deprecated: `disable_barge_in` is deprecated in favor of `disable_barge_in_control` in ChannelProfile.", + "description": "Optional. Deprecated: `disable_barge_in` is deprecated in favor of `disable_barge_in_control` in ChannelProfile. Disables user barge-in while the agent is speaking. If true, user input during agent response playback will be ignored.", "type": "boolean" } }, @@ -3323,7 +3344,9 @@ "GOOGLE_TELEPHONY_PLATFORM", "CONTACT_CENTER_AS_A_SERVICE", "FIVE9", - "CONTACT_CENTER_INTEGRATION" + "CONTACT_CENTER_INTEGRATION", + "WHATSAPP", + "INSTAGRAM" ], "enumDescriptions": [ "Unknown channel type.", @@ -3333,7 +3356,9 @@ "Google Telephony Platform channel.", "Contact Center as a Service (CCaaS) channel.", "Five9 channel.", - "Third party contact center integration channel." + "Third party contact center integration channel.", + "WhatsApp channel.", + "Instagram channel." ], "type": "string" }, @@ -3345,6 +3370,10 @@ "description": "Optional. Whether to disable DTMF (dual-tone multi-frequency).", "type": "boolean" }, + "instagramConfig": { + "$ref": "ChannelProfileInstagramConfig", + "description": "Optional. Configuration specific to Instagram deployments." + }, "noiseSuppressionLevel": { "description": "Optional. The noise suppression level of the channel profile. Available values are \"low\", \"moderate\", \"high\", \"very_high\".", "type": "string" @@ -3360,6 +3389,21 @@ "webWidgetConfig": { "$ref": "ChannelProfileWebWidgetConfig", "description": "Optional. The configuration for the web widget." + }, + "whatsappConfig": { + "$ref": "ChannelProfileWhatsAppConfig", + "description": "Optional. Configuration specific to WhatsApp deployments." + } + }, + "type": "object" + }, + "ChannelProfileInstagramConfig": { + "description": "Configuration specific to Instagram deployments.", + "id": "ChannelProfileInstagramConfig", + "properties": { + "instagramAccountId": { + "description": "Required. The Instagram Account ID.", + "type": "string" } }, "type": "object" @@ -3458,6 +3502,21 @@ }, "type": "object" }, + "ChannelProfileWhatsAppConfig": { + "description": "Configuration specific to WhatsApp deployments.", + "id": "ChannelProfileWhatsAppConfig", + "properties": { + "phoneNumberId": { + "description": "Required. The Meta phone number ID.", + "type": "string" + }, + "wabaId": { + "description": "Required. The WhatsApp Business Account ID.", + "type": "string" + } + }, + "type": "object" + }, "Chunk": { "description": "A chunk of content within a message.", "id": "Chunk", @@ -3535,6 +3594,10 @@ "description": "Piece of cited information.", "id": "CitationsCitedChunk", "properties": { + "requiresAttribution": { + "description": "Whether this citation requires attribution to be shown to the end users.", + "type": "boolean" + }, "text": { "description": "Text used for citation.", "type": "string" @@ -4268,6 +4331,10 @@ "$ref": "ExperimentConfig", "description": "Optional. Experiment configuration for the deployment." }, + "instagramCredentials": { + "$ref": "InstagramCredentials", + "description": "Optional. Input only. Ephemeral Instagram credentials required when configuring a Instagram channel profile." + }, "name": { "description": "Identifier. The resource name of the deployment. Format: `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`", "type": "string" @@ -4277,6 +4344,10 @@ "format": "google-datetime", "readOnly": true, "type": "string" + }, + "whatsappCredentials": { + "$ref": "WhatsAppCredentials", + "description": "Optional. Input only. Ephemeral WhatsApp credentials required when configuring a WhatsApp channel profile." } }, "type": "object" @@ -4682,6 +4753,14 @@ "description": "Response message for ToolService.ExecuteTool.", "id": "ExecuteToolResponse", "properties": { + "citations": { + "$ref": "Citations", + "description": "Citations that provide the source information for the tool's execution." + }, + "googleSearchSuggestions": { + "$ref": "GoogleSearchSuggestions", + "description": "The suggestions returned from Google Search as a result of invoking the Google Search Tool during the tool execution." + }, "response": { "additionalProperties": { "description": "Properties of the object.", @@ -5359,6 +5438,17 @@ }, "type": "object" }, + "InstagramCredentials": { + "description": "Ephemeral Meta credentials for Instagram native integration.", + "id": "InstagramCredentials", + "properties": { + "authCode": { + "description": "Required. The Meta auth code provided by the embedded signup flow.", + "type": "string" + } + }, + "type": "object" + }, "LanguageSettings": { "description": "Language settings of the app.", "id": "LanguageSettings", @@ -5386,6 +5476,277 @@ }, "type": "object" }, + "LfA2aV1APIKeySecurityScheme": { + "description": "Defines a security scheme using an API key.", + "id": "LfA2aV1APIKeySecurityScheme", + "properties": { + "description": { + "description": "An optional description for the security scheme.", + "type": "string" + }, + "location": { + "description": "Required. The location of the API key. Valid values are \"query\", \"header\", or \"cookie\".", + "type": "string" + }, + "name": { + "description": "Required. The name of the header, query, or cookie parameter to be used.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1AgentCapabilities": { + "description": "Defines optional capabilities supported by an agent.", + "id": "LfA2aV1AgentCapabilities", + "properties": { + "extendedAgentCard": { + "description": "Indicates if the agent supports providing an extended agent card when authenticated.", + "type": "boolean" + }, + "extensions": { + "description": "A list of protocol extensions supported by the agent.", + "items": { + "$ref": "LfA2aV1AgentExtension" + }, + "type": "array" + }, + "pushNotifications": { + "description": "Indicates if the agent supports sending push notifications for asynchronous task updates.", + "type": "boolean" + }, + "streaming": { + "description": "Indicates if the agent supports streaming responses.", + "type": "boolean" + } + }, + "type": "object" + }, + "LfA2aV1AgentCard": { + "description": "A self-describing manifest for an agent. It provides essential metadata including the agent's identity, capabilities, skills, supported communication methods, and security requirements. Next ID: 20", + "id": "LfA2aV1AgentCard", + "properties": { + "capabilities": { + "$ref": "LfA2aV1AgentCapabilities", + "description": "Required. A2A Capability set supported by the agent." + }, + "defaultInputModes": { + "description": "Required. protolint:enable REPEATED_FIELD_NAMES_PLURALIZED The set of interaction modes that the agent supports across all skills. This can be overridden per skill. Defined as media types.", + "items": { + "type": "string" + }, + "type": "array" + }, + "defaultOutputModes": { + "description": "Required. The media types supported as outputs from this agent.", + "items": { + "type": "string" + }, + "type": "array" + }, + "description": { + "description": "Required. A human-readable description of the agent, assisting users and other agents in understanding its purpose. Example: \"Agent that helps users with recipes and cooking.\"", + "type": "string" + }, + "documentationUrl": { + "description": "A URL providing additional documentation about the agent.", + "type": "string" + }, + "iconUrl": { + "description": "Optional. A URL to an icon for the agent.", + "type": "string" + }, + "name": { + "description": "Required. A human readable name for the agent. Example: \"Recipe Agent\"", + "type": "string" + }, + "provider": { + "$ref": "LfA2aV1AgentProvider", + "description": "The service provider of the agent." + }, + "securityRequirements": { + "description": "Security requirements for contacting the agent.", + "items": { + "$ref": "LfA2aV1SecurityRequirement" + }, + "type": "array" + }, + "securitySchemes": { + "additionalProperties": { + "$ref": "LfA2aV1SecurityScheme" + }, + "description": "The security scheme details used for authenticating with this agent.", + "type": "object" + }, + "signatures": { + "description": "JSON Web Signatures computed for this `AgentCard`.", + "items": { + "$ref": "LfA2aV1AgentCardSignature" + }, + "type": "array" + }, + "skills": { + "description": "Required. Skills represent the abilities of an agent. It is largely a descriptive concept but represents a more focused set of behaviors that the agent is likely to succeed at.", + "items": { + "$ref": "LfA2aV1AgentSkill" + }, + "type": "array" + }, + "supportedInterfaces": { + "description": "Required. Ordered list of supported interfaces. The first entry is preferred.", + "items": { + "$ref": "LfA2aV1AgentInterface" + }, + "type": "array" + }, + "version": { + "description": "Required. The version of the agent. Example: \"1.0.0\"", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1AgentCardSignature": { + "description": "AgentCardSignature represents a JWS signature of an AgentCard. This follows the JSON format of an RFC 7515 JSON Web Signature (JWS).", + "id": "LfA2aV1AgentCardSignature", + "properties": { + "header": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "The unprotected JWS header values.", + "type": "object" + }, + "protected": { + "description": "Required. Required. The protected JWS header for the signature. This is always a base64url-encoded JSON object.", + "type": "string" + }, + "signature": { + "description": "Required. The computed signature, base64url-encoded.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1AgentExtension": { + "description": "A declaration of a protocol extension supported by an Agent.", + "id": "LfA2aV1AgentExtension", + "properties": { + "description": { + "description": "A human-readable description of how this agent uses the extension.", + "type": "string" + }, + "params": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Extension-specific configuration parameters.", + "type": "object" + }, + "required": { + "description": "If true, the client must understand and comply with the extension's requirements.", + "type": "boolean" + }, + "uri": { + "description": "The unique URI identifying the extension.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1AgentInterface": { + "description": "Declares a combination of a target URL, transport and protocol version for interacting with the agent. This allows agents to expose the same functionality over multiple protocol binding mechanisms.", + "id": "LfA2aV1AgentInterface", + "properties": { + "protocolBinding": { + "description": "Required. The protocol binding supported at this URL. This is an open form string, to be easily extended for other protocol bindings. The core ones officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.", + "type": "string" + }, + "protocolVersion": { + "description": "Required. The version of the A2A protocol this interface exposes. Use the latest supported minor version per major version. Examples: \"0.3\", \"1.0\"", + "type": "string" + }, + "tenant": { + "description": "Tenant ID to be used in the request when calling the agent.", + "type": "string" + }, + "url": { + "description": "Required. The URL where this interface is available. Must be a valid absolute HTTPS URL in production. Example: \"https://api.example.com/a2a/v1\", \"https://grpc.example.com/a2a\"", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1AgentProvider": { + "description": "Represents the service provider of an agent.", + "id": "LfA2aV1AgentProvider", + "properties": { + "organization": { + "description": "Required. The name of the agent provider's organization. Example: \"Google\"", + "type": "string" + }, + "url": { + "description": "Required. A URL for the agent provider's website or relevant documentation. Example: \"https://ai.google.dev\"", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1AgentSkill": { + "description": "Represents a distinct capability or function that an agent can perform.", + "id": "LfA2aV1AgentSkill", + "properties": { + "description": { + "description": "Required. A detailed description of the skill.", + "type": "string" + }, + "examples": { + "description": "Example prompts or scenarios that this skill can handle.", + "items": { + "type": "string" + }, + "type": "array" + }, + "id": { + "description": "Required. A unique identifier for the agent's skill.", + "type": "string" + }, + "inputModes": { + "description": "The set of supported input media types for this skill, overriding the agent's defaults.", + "items": { + "type": "string" + }, + "type": "array" + }, + "name": { + "description": "Required. A human-readable name for the skill.", + "type": "string" + }, + "outputModes": { + "description": "The set of supported output media types for this skill, overriding the agent's defaults.", + "items": { + "type": "string" + }, + "type": "array" + }, + "securityRequirements": { + "description": "Security schemes necessary for this skill.", + "items": { + "$ref": "LfA2aV1SecurityRequirement" + }, + "type": "array" + }, + "tags": { + "description": "Required. A set of keywords describing the skill's capabilities.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "LfA2aV1Artifact": { "description": "Artifacts represent task outputs.", "id": "LfA2aV1Artifact", @@ -5442,6 +5803,125 @@ }, "type": "object" }, + "LfA2aV1AuthorizationCodeOAuthFlow": { + "description": "Defines configuration details for the OAuth 2.0 Authorization Code flow.", + "id": "LfA2aV1AuthorizationCodeOAuthFlow", + "properties": { + "authorizationUrl": { + "description": "Required. The authorization URL to be used for this flow.", + "type": "string" + }, + "pkceRequired": { + "description": "Indicates if PKCE (RFC 7636) is required for this flow. PKCE should always be used for public clients and is recommended for all clients.", + "type": "boolean" + }, + "refreshUrl": { + "description": "The URL to be used for obtaining refresh tokens.", + "type": "string" + }, + "scopes": { + "additionalProperties": { + "type": "string" + }, + "description": "Required. The available scopes for the OAuth2 security scheme.", + "type": "object" + }, + "tokenUrl": { + "description": "Required. The token URL to be used for this flow.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1ClientCredentialsOAuthFlow": { + "description": "Defines configuration details for the OAuth 2.0 Client Credentials flow.", + "id": "LfA2aV1ClientCredentialsOAuthFlow", + "properties": { + "refreshUrl": { + "description": "The URL to be used for obtaining refresh tokens.", + "type": "string" + }, + "scopes": { + "additionalProperties": { + "type": "string" + }, + "description": "Required. The available scopes for the OAuth2 security scheme.", + "type": "object" + }, + "tokenUrl": { + "description": "Required. The token URL to be used for this flow.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1DeviceCodeOAuthFlow": { + "description": "Defines configuration details for the OAuth 2.0 Device Code flow (RFC 8628). This flow is designed for input-constrained devices such as IoT devices, and CLI tools where the user authenticates on a separate device.", + "id": "LfA2aV1DeviceCodeOAuthFlow", + "properties": { + "deviceAuthorizationUrl": { + "description": "Required. The device authorization endpoint URL.", + "type": "string" + }, + "refreshUrl": { + "description": "The URL to be used for obtaining refresh tokens.", + "type": "string" + }, + "scopes": { + "additionalProperties": { + "type": "string" + }, + "description": "Required. The available scopes for the OAuth2 security scheme.", + "type": "object" + }, + "tokenUrl": { + "description": "Required. The token URL to be used for this flow.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1HTTPAuthSecurityScheme": { + "description": "Defines a security scheme using HTTP authentication.", + "id": "LfA2aV1HTTPAuthSecurityScheme", + "properties": { + "bearerFormat": { + "description": "A hint to the client to identify how the bearer token is formatted (e.g., \"JWT\"). Primarily for documentation purposes.", + "type": "string" + }, + "description": { + "description": "An optional description for the security scheme.", + "type": "string" + }, + "scheme": { + "description": "Required. The name of the HTTP Authentication scheme to be used in the Authorization header, as defined in RFC7235 (e.g., \"Bearer\"). This value should be registered in the IANA Authentication Scheme registry.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1ImplicitOAuthFlow": { + "description": "Deprecated: Use Authorization Code + PKCE instead.", + "id": "LfA2aV1ImplicitOAuthFlow", + "properties": { + "authorizationUrl": { + "description": "The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS", + "type": "string" + }, + "refreshUrl": { + "description": "The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.", + "type": "string" + }, + "scopes": { + "additionalProperties": { + "type": "string" + }, + "description": "The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.", + "type": "object" + } + }, + "type": "object" + }, "LfA2aV1Message": { "description": "`Message` is one unit of communication between client and server. It can be associated with a context and/or a task. For server messages, `context_id` must be provided, and `task_id` only if a task was created. For client messages, both fields are optional, with the caveat that if both are provided, they have to match (the `context_id` has to be the one that is set on the task). If only `task_id` is provided, the server will infer `context_id` from it.", "id": "LfA2aV1Message", @@ -5504,6 +5984,80 @@ }, "type": "object" }, + "LfA2aV1MutualTlsSecurityScheme": { + "description": "Defines a security scheme using mTLS authentication.", + "id": "LfA2aV1MutualTlsSecurityScheme", + "properties": { + "description": { + "description": "An optional description for the security scheme.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1OAuth2SecurityScheme": { + "description": "Defines a security scheme using OAuth 2.0.", + "id": "LfA2aV1OAuth2SecurityScheme", + "properties": { + "description": { + "description": "An optional description for the security scheme.", + "type": "string" + }, + "flows": { + "$ref": "LfA2aV1OAuthFlows", + "description": "Required. An object containing configuration information for the supported OAuth 2.0 flows." + }, + "oauth2MetadataUrl": { + "description": "URL to the OAuth2 authorization server metadata [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1OAuthFlows": { + "description": "Defines the configuration for the supported OAuth 2.0 flows.", + "id": "LfA2aV1OAuthFlows", + "properties": { + "authorizationCode": { + "$ref": "LfA2aV1AuthorizationCodeOAuthFlow", + "description": "Configuration for the OAuth Authorization Code flow." + }, + "clientCredentials": { + "$ref": "LfA2aV1ClientCredentialsOAuthFlow", + "description": "Configuration for the OAuth Client Credentials flow." + }, + "deviceCode": { + "$ref": "LfA2aV1DeviceCodeOAuthFlow", + "description": "Configuration for the OAuth Device Code flow." + }, + "implicit": { + "$ref": "LfA2aV1ImplicitOAuthFlow", + "deprecated": true, + "description": "Deprecated: Use Authorization Code + PKCE instead." + }, + "password": { + "$ref": "LfA2aV1PasswordOAuthFlow", + "deprecated": true, + "description": "Deprecated: Use Authorization Code + PKCE or Device Code." + } + }, + "type": "object" + }, + "LfA2aV1OpenIdConnectSecurityScheme": { + "description": "Defines a security scheme using OpenID Connect.", + "id": "LfA2aV1OpenIdConnectSecurityScheme", + "properties": { + "description": { + "description": "An optional description for the security scheme.", + "type": "string" + }, + "openIdConnectUrl": { + "description": "Required. The [OpenID Connect Discovery URL](https://openid.net/specs/openid-connect-discovery-1_0.html) for the OIDC provider's metadata.", + "type": "string" + } + }, + "type": "object" + }, "LfA2aV1Part": { "description": "`Part` represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).", "id": "LfA2aV1Part", @@ -5544,6 +6098,69 @@ }, "type": "object" }, + "LfA2aV1PasswordOAuthFlow": { + "description": "Deprecated: Use Authorization Code + PKCE or Device Code.", + "id": "LfA2aV1PasswordOAuthFlow", + "properties": { + "refreshUrl": { + "description": "The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.", + "type": "string" + }, + "scopes": { + "additionalProperties": { + "type": "string" + }, + "description": "The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.", + "type": "object" + }, + "tokenUrl": { + "description": "The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1SecurityRequirement": { + "description": "Defines the security requirements for an agent.", + "id": "LfA2aV1SecurityRequirement", + "properties": { + "schemes": { + "additionalProperties": { + "$ref": "LfA2aV1StringList" + }, + "description": "A map of security schemes to the required scopes.", + "type": "object" + } + }, + "type": "object" + }, + "LfA2aV1SecurityScheme": { + "description": "Defines a security scheme that can be used to secure an agent's endpoints. This is a discriminated union type based on the OpenAPI 3.2 Security Scheme Object. See: https://spec.openapis.org/oas/v3.2.0.html#security-scheme-object", + "id": "LfA2aV1SecurityScheme", + "properties": { + "apiKeySecurityScheme": { + "$ref": "LfA2aV1APIKeySecurityScheme", + "description": "API key-based authentication." + }, + "httpAuthSecurityScheme": { + "$ref": "LfA2aV1HTTPAuthSecurityScheme", + "description": "HTTP authentication (Basic, Bearer, etc.)." + }, + "mtlsSecurityScheme": { + "$ref": "LfA2aV1MutualTlsSecurityScheme", + "description": "Mutual TLS authentication." + }, + "oauth2SecurityScheme": { + "$ref": "LfA2aV1OAuth2SecurityScheme", + "description": "OAuth 2.0 authentication." + }, + "openIdConnectSecurityScheme": { + "$ref": "LfA2aV1OpenIdConnectSecurityScheme", + "description": "OpenID Connect authentication." + } + }, + "type": "object" + }, "LfA2aV1SendMessageConfiguration": { "description": "Configuration of a send message request.", "id": "LfA2aV1SendMessageConfiguration", @@ -5609,6 +6226,20 @@ }, "type": "object" }, + "LfA2aV1StringList": { + "description": "protolint:disable REPEATED_FIELD_NAMES_PLURALIZED A list of strings.", + "id": "LfA2aV1StringList", + "properties": { + "list": { + "description": "The individual string values.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "LfA2aV1Task": { "description": "`Task` is the core unit of action for A2A. It has a current status and when results are created for the task they are stored in the artifact. If there are multiple turns for a task, these are stored in history.", "id": "LfA2aV1Task", @@ -6022,6 +6653,10 @@ "unredactedAudioRecordingConfig": { "$ref": "AudioRecordingConfig", "description": "Optional. Configures an additional recording of unredacted audio. This can be used to maintain a raw audio copy when audio redaction is enabled, typically for auditing or monitoring purposes." + }, + "unredactedBigqueryExportSettings": { + "$ref": "BigQueryExportSettings", + "description": "Optional. Configures the BigQuery export behaviors for the app. The unredacted conversation data will be exported to BigQuery tables if it is enabled." } }, "type": "object" @@ -6998,6 +7633,17 @@ "$ref": "Citations", "description": "Citations that provide the source information for the agent's generated text." }, + "context": { + "description": "Context messages for external supervision guardrails.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, "diagnosticInfo": { "$ref": "SessionOutputDiagnosticInfo", "description": "Optional. Diagnostic information contains execution details during the processing of the input. Only populated in the last SessionOutput (with `turn_completed=true`) for each turn." @@ -7656,6 +8302,29 @@ }, "type": "object" }, + "WhatsAppCredentials": { + "description": "Ephemeral Meta credentials for WhatsApp native integration.", + "id": "WhatsAppCredentials", + "properties": { + "authCode": { + "description": "Required. The Meta auth code provided by the embedded signup flow.", + "type": "string" + }, + "businessAccountId": { + "description": "Required. The Business Account ID to use for the phone number.", + "type": "string" + }, + "phoneNumber": { + "description": "Required. The phone number to register with WhatsApp.", + "type": "string" + }, + "pin": { + "description": "Required. The 6-digit PIN created by the user for two-step verification.", + "type": "string" + } + }, + "type": "object" + }, "WidgetTool": { "description": "Represents a widget tool that the agent can invoke. When the tool is chosen by the agent, agent will return the widget to the client. The client is responsible for processing the widget and generating the next user query to continue the interaction with the agent.", "id": "WidgetTool", diff --git a/ces/v1/ces-gen.go b/ces/v1/ces-gen.go index e68c974ab8b..822d1e2ffc6 100644 --- a/ces/v1/ces-gen.go +++ b/ces/v1/ces-gen.go @@ -721,10 +721,6 @@ type AgentTool struct { Description string `json:"description,omitempty"` // Name: Required. The name of the agent tool. Name string `json:"name,omitempty"` - // RootAgent: Optional. Deprecated: Use `agent` instead. The resource name of - // the root agent that is the entry point of the tool. Format: - // `projects/{project}/locations/{location}/agents/{agent}` - RootAgent string `json:"rootAgent,omitempty"` // ForceSendFields is a list of field names (e.g. "Agent") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -1199,10 +1195,10 @@ type BargeInConfig struct { // preceding agent message. This should not be used in scenarios where agent // responses are displayed visually. BargeInAwareness bool `json:"bargeInAwareness,omitempty"` - // DisableBargeIn: Optional. Disables user barge-in while the agent is - // speaking. If true, user input during agent response playback will be - // ignored. Deprecated: `disable_barge_in` is deprecated in favor of - // `disable_barge_in_control` in ChannelProfile. + // DisableBargeIn: Optional. Deprecated: `disable_barge_in` is deprecated in + // favor of `disable_barge_in_control` in ChannelProfile. Disables user + // barge-in while the agent is speaking. If true, user input during agent + // response playback will be ignored. DisableBargeIn bool `json:"disableBargeIn,omitempty"` // ForceSendFields is a list of field names (e.g. "BargeInAwareness") to // unconditionally include in API requests. By default, fields with empty or @@ -1429,6 +1425,8 @@ type ChannelProfile struct { // "FIVE9" - Five9 channel. // "CONTACT_CENTER_INTEGRATION" - Third party contact center integration // channel. + // "WHATSAPP" - WhatsApp channel. + // "INSTAGRAM" - Instagram channel. ChannelType string `json:"channelType,omitempty"` // DisableBargeInControl: Optional. Whether to disable user barge-in control in // the conversation. - **true**: User interruptions are disabled while the @@ -1437,6 +1435,8 @@ type ChannelProfile struct { DisableBargeInControl bool `json:"disableBargeInControl,omitempty"` // DisableDtmf: Optional. Whether to disable DTMF (dual-tone multi-frequency). DisableDtmf bool `json:"disableDtmf,omitempty"` + // InstagramConfig: Optional. Configuration specific to Instagram deployments. + InstagramConfig *ChannelProfileInstagramConfig `json:"instagramConfig,omitempty"` // NoiseSuppressionLevel: Optional. The noise suppression level of the channel // profile. Available values are "low", "moderate", "high", "very_high". NoiseSuppressionLevel string `json:"noiseSuppressionLevel,omitempty"` @@ -1446,6 +1446,8 @@ type ChannelProfile struct { ProfileId string `json:"profileId,omitempty"` // WebWidgetConfig: Optional. The configuration for the web widget. WebWidgetConfig *ChannelProfileWebWidgetConfig `json:"webWidgetConfig,omitempty"` + // WhatsappConfig: Optional. Configuration specific to WhatsApp deployments. + WhatsappConfig *ChannelProfileWhatsAppConfig `json:"whatsappConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "ChannelType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1464,6 +1466,29 @@ func (s ChannelProfile) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ChannelProfileInstagramConfig: Configuration specific to Instagram +// deployments. +type ChannelProfileInstagramConfig struct { + // InstagramAccountId: Required. The Instagram Account ID. + InstagramAccountId string `json:"instagramAccountId,omitempty"` + // ForceSendFields is a list of field names (e.g. "InstagramAccountId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "InstagramAccountId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ChannelProfileInstagramConfig) MarshalJSON() ([]byte, error) { + type NoMethod ChannelProfileInstagramConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ChannelProfilePersonaProperty: Represents the persona property of a channel. type ChannelProfilePersonaProperty struct { // Persona: Optional. The persona of the channel. @@ -1571,6 +1596,31 @@ func (s ChannelProfileWebWidgetConfigSecuritySettings) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ChannelProfileWhatsAppConfig: Configuration specific to WhatsApp +// deployments. +type ChannelProfileWhatsAppConfig struct { + // PhoneNumberId: Required. The Meta phone number ID. + PhoneNumberId string `json:"phoneNumberId,omitempty"` + // WabaId: Required. The WhatsApp Business Account ID. + WabaId string `json:"wabaId,omitempty"` + // ForceSendFields is a list of field names (e.g. "PhoneNumberId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PhoneNumberId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ChannelProfileWhatsAppConfig) MarshalJSON() ([]byte, error) { + type NoMethod ChannelProfileWhatsAppConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Chunk: A chunk of content within a message. type Chunk struct { // AgentTransfer: Optional. Agent transfer event. @@ -1637,21 +1687,24 @@ func (s Citations) MarshalJSON() ([]byte, error) { // CitationsCitedChunk: Piece of cited information. type CitationsCitedChunk struct { + // RequiresAttribution: Whether this citation requires attribution to be shown + // to the end users. + RequiresAttribution bool `json:"requiresAttribution,omitempty"` // Text: Text used for citation. Text string `json:"text,omitempty"` // Title: Title of the cited document. Title string `json:"title,omitempty"` // Uri: URI used for citation. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "Text") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "RequiresAttribution") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Text") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "RequiresAttribution") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -2590,11 +2643,17 @@ type Deployment struct { Etag string `json:"etag,omitempty"` // ExperimentConfig: Optional. Experiment configuration for the deployment. ExperimentConfig *ExperimentConfig `json:"experimentConfig,omitempty"` + // InstagramCredentials: Optional. Input only. Ephemeral Instagram credentials + // required when configuring a Instagram channel profile. + InstagramCredentials *InstagramCredentials `json:"instagramCredentials,omitempty"` // Name: Identifier. The resource name of the deployment. Format: // `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` Name string `json:"name,omitempty"` // UpdateTime: Output only. Timestamp when this deployment was last updated. UpdateTime string `json:"updateTime,omitempty"` + // WhatsappCredentials: Optional. Input only. Ephemeral WhatsApp credentials + // required when configuring a WhatsApp channel profile. + WhatsappCredentials *WhatsAppCredentials `json:"whatsappCredentials,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -3189,6 +3248,12 @@ func (s ExecuteToolRequest) MarshalJSON() ([]byte, error) { // ExecuteToolResponse: Response message for ToolService.ExecuteTool. type ExecuteToolResponse struct { + // Citations: Citations that provide the source information for the tool's + // execution. + Citations *Citations `json:"citations,omitempty"` + // GoogleSearchSuggestions: The suggestions returned from Google Search as a + // result of invoking the Google Search Tool during the tool execution. + GoogleSearchSuggestions *GoogleSearchSuggestions `json:"googleSearchSuggestions,omitempty"` // Response: The tool execution result in JSON object format. Use "output" key // to specify tool response and "error" key to specify error details (if any). // If "output" and "error" keys are not specified, then whole "response" is @@ -3204,13 +3269,13 @@ type ExecuteToolResponse struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Response") to + // ForceSendFields is a list of field names (e.g. "Citations") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Response") to include in API + // NullFields is a list of field names (e.g. "Citations") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -4079,6 +4144,29 @@ func (s InputAudioConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// InstagramCredentials: Ephemeral Meta credentials for Instagram native +// integration. +type InstagramCredentials struct { + // AuthCode: Required. The Meta auth code provided by the embedded signup flow. + AuthCode string `json:"authCode,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthCode") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s InstagramCredentials) MarshalJSON() ([]byte, error) { + type NoMethod InstagramCredentials + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // LanguageSettings: Language settings of the app. type LanguageSettings struct { // DefaultLanguageCode: Optional. The default language code of the app. @@ -4117,6 +4205,289 @@ func (s LanguageSettings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LfA2aV1APIKeySecurityScheme: Defines a security scheme using an API key. +type LfA2aV1APIKeySecurityScheme struct { + // Description: An optional description for the security scheme. + Description string `json:"description,omitempty"` + // Location: Required. The location of the API key. Valid values are "query", + // "header", or "cookie". + Location string `json:"location,omitempty"` + // Name: Required. The name of the header, query, or cookie parameter to be + // used. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1APIKeySecurityScheme) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1APIKeySecurityScheme + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1AgentCapabilities: Defines optional capabilities supported by an +// agent. +type LfA2aV1AgentCapabilities struct { + // ExtendedAgentCard: Indicates if the agent supports providing an extended + // agent card when authenticated. + ExtendedAgentCard bool `json:"extendedAgentCard,omitempty"` + // Extensions: A list of protocol extensions supported by the agent. + Extensions []*LfA2aV1AgentExtension `json:"extensions,omitempty"` + // PushNotifications: Indicates if the agent supports sending push + // notifications for asynchronous task updates. + PushNotifications bool `json:"pushNotifications,omitempty"` + // Streaming: Indicates if the agent supports streaming responses. + Streaming bool `json:"streaming,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExtendedAgentCard") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ExtendedAgentCard") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AgentCapabilities) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AgentCapabilities + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1AgentCard: A self-describing manifest for an agent. It provides +// essential metadata including the agent's identity, capabilities, skills, +// supported communication methods, and security requirements. Next ID: 20 +type LfA2aV1AgentCard struct { + // Capabilities: Required. A2A Capability set supported by the agent. + Capabilities *LfA2aV1AgentCapabilities `json:"capabilities,omitempty"` + // DefaultInputModes: Required. protolint:enable + // REPEATED_FIELD_NAMES_PLURALIZED The set of interaction modes that the agent + // supports across all skills. This can be overridden per skill. Defined as + // media types. + DefaultInputModes []string `json:"defaultInputModes,omitempty"` + // DefaultOutputModes: Required. The media types supported as outputs from this + // agent. + DefaultOutputModes []string `json:"defaultOutputModes,omitempty"` + // Description: Required. A human-readable description of the agent, assisting + // users and other agents in understanding its purpose. Example: "Agent that + // helps users with recipes and cooking." + Description string `json:"description,omitempty"` + // DocumentationUrl: A URL providing additional documentation about the agent. + DocumentationUrl string `json:"documentationUrl,omitempty"` + // IconUrl: Optional. A URL to an icon for the agent. + IconUrl string `json:"iconUrl,omitempty"` + // Name: Required. A human readable name for the agent. Example: "Recipe Agent" + Name string `json:"name,omitempty"` + // Provider: The service provider of the agent. + Provider *LfA2aV1AgentProvider `json:"provider,omitempty"` + // SecurityRequirements: Security requirements for contacting the agent. + SecurityRequirements []*LfA2aV1SecurityRequirement `json:"securityRequirements,omitempty"` + // SecuritySchemes: The security scheme details used for authenticating with + // this agent. + SecuritySchemes map[string]LfA2aV1SecurityScheme `json:"securitySchemes,omitempty"` + // Signatures: JSON Web Signatures computed for this `AgentCard`. + Signatures []*LfA2aV1AgentCardSignature `json:"signatures,omitempty"` + // Skills: Required. Skills represent the abilities of an agent. It is largely + // a descriptive concept but represents a more focused set of behaviors that + // the agent is likely to succeed at. + Skills []*LfA2aV1AgentSkill `json:"skills,omitempty"` + // SupportedInterfaces: Required. Ordered list of supported interfaces. The + // first entry is preferred. + SupportedInterfaces []*LfA2aV1AgentInterface `json:"supportedInterfaces,omitempty"` + // Version: Required. The version of the agent. Example: "1.0.0" + Version string `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Capabilities") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Capabilities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AgentCard) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AgentCard + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1AgentCardSignature: AgentCardSignature represents a JWS signature of +// an AgentCard. This follows the JSON format of an RFC 7515 JSON Web Signature +// (JWS). +type LfA2aV1AgentCardSignature struct { + // Header: The unprotected JWS header values. + Header googleapi.RawMessage `json:"header,omitempty"` + // Protected: Required. Required. The protected JWS header for the signature. + // This is always a base64url-encoded JSON object. + Protected string `json:"protected,omitempty"` + // Signature: Required. The computed signature, base64url-encoded. + Signature string `json:"signature,omitempty"` + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Header") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AgentCardSignature) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AgentCardSignature + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1AgentExtension: A declaration of a protocol extension supported by an +// Agent. +type LfA2aV1AgentExtension struct { + // Description: A human-readable description of how this agent uses the + // extension. + Description string `json:"description,omitempty"` + // Params: Optional. Extension-specific configuration parameters. + Params googleapi.RawMessage `json:"params,omitempty"` + // Required: If true, the client must understand and comply with the + // extension's requirements. + Required bool `json:"required,omitempty"` + // Uri: The unique URI identifying the extension. + Uri string `json:"uri,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AgentExtension) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AgentExtension + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1AgentInterface: Declares a combination of a target URL, transport and +// protocol version for interacting with the agent. This allows agents to +// expose the same functionality over multiple protocol binding mechanisms. +type LfA2aV1AgentInterface struct { + // ProtocolBinding: Required. The protocol binding supported at this URL. This + // is an open form string, to be easily extended for other protocol bindings. + // The core ones officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`. + ProtocolBinding string `json:"protocolBinding,omitempty"` + // ProtocolVersion: Required. The version of the A2A protocol this interface + // exposes. Use the latest supported minor version per major version. Examples: + // "0.3", "1.0" + ProtocolVersion string `json:"protocolVersion,omitempty"` + // Tenant: Tenant ID to be used in the request when calling the agent. + Tenant string `json:"tenant,omitempty"` + // Url: Required. The URL where this interface is available. Must be a valid + // absolute HTTPS URL in production. Example: "https://api.example.com/a2a/v1", + // "https://grpc.example.com/a2a" + Url string `json:"url,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProtocolBinding") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ProtocolBinding") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AgentInterface) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AgentInterface + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1AgentProvider: Represents the service provider of an agent. +type LfA2aV1AgentProvider struct { + // Organization: Required. The name of the agent provider's organization. + // Example: "Google" + Organization string `json:"organization,omitempty"` + // Url: Required. A URL for the agent provider's website or relevant + // documentation. Example: "https://ai.google.dev" + Url string `json:"url,omitempty"` + // ForceSendFields is a list of field names (e.g. "Organization") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Organization") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AgentProvider) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AgentProvider + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1AgentSkill: Represents a distinct capability or function that an +// agent can perform. +type LfA2aV1AgentSkill struct { + // Description: Required. A detailed description of the skill. + Description string `json:"description,omitempty"` + // Examples: Example prompts or scenarios that this skill can handle. + Examples []string `json:"examples,omitempty"` + // Id: Required. A unique identifier for the agent's skill. + Id string `json:"id,omitempty"` + // InputModes: The set of supported input media types for this skill, + // overriding the agent's defaults. + InputModes []string `json:"inputModes,omitempty"` + // Name: Required. A human-readable name for the skill. + Name string `json:"name,omitempty"` + // OutputModes: The set of supported output media types for this skill, + // overriding the agent's defaults. + OutputModes []string `json:"outputModes,omitempty"` + // SecurityRequirements: Security schemes necessary for this skill. + SecurityRequirements []*LfA2aV1SecurityRequirement `json:"securityRequirements,omitempty"` + // Tags: Required. A set of keywords describing the skill's capabilities. + Tags []string `json:"tags,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AgentSkill) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AgentSkill + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // LfA2aV1Artifact: Artifacts represent task outputs. type LfA2aV1Artifact struct { // ArtifactId: Required. Unique identifier (e.g. UUID) for the artifact. It @@ -4140,44 +4511,193 @@ type LfA2aV1Artifact struct { // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ArtifactId") to include in API + // NullFields is a list of field names (e.g. "ArtifactId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1Artifact) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1Artifact + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1AuthenticationInfo: Defines authentication details, used for push +// notifications. +type LfA2aV1AuthenticationInfo struct { + // Credentials: Push Notification credentials. Format depends on the scheme + // (e.g., token for Bearer). + Credentials string `json:"credentials,omitempty"` + // Scheme: Required. HTTP Authentication Scheme from the IANA registry + // (https://www.iana.org/assignments/http-authschemes/). Examples: `Bearer`, + // `Basic`, `Digest`. Scheme names are case-insensitive per RFC 9110 Section + // 11.1 (https://www.rfc-editor.org/rfc/rfc9110#section-11.1). + Scheme string `json:"scheme,omitempty"` + // ForceSendFields is a list of field names (e.g. "Credentials") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Credentials") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AuthenticationInfo) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AuthenticationInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1AuthorizationCodeOAuthFlow: Defines configuration details for the +// OAuth 2.0 Authorization Code flow. +type LfA2aV1AuthorizationCodeOAuthFlow struct { + // AuthorizationUrl: Required. The authorization URL to be used for this flow. + AuthorizationUrl string `json:"authorizationUrl,omitempty"` + // PkceRequired: Indicates if PKCE (RFC 7636) is required for this flow. PKCE + // should always be used for public clients and is recommended for all clients. + PkceRequired bool `json:"pkceRequired,omitempty"` + // RefreshUrl: The URL to be used for obtaining refresh tokens. + RefreshUrl string `json:"refreshUrl,omitempty"` + // Scopes: Required. The available scopes for the OAuth2 security scheme. + Scopes map[string]string `json:"scopes,omitempty"` + // TokenUrl: Required. The token URL to be used for this flow. + TokenUrl string `json:"tokenUrl,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthorizationUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthorizationUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AuthorizationCodeOAuthFlow) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AuthorizationCodeOAuthFlow + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1ClientCredentialsOAuthFlow: Defines configuration details for the +// OAuth 2.0 Client Credentials flow. +type LfA2aV1ClientCredentialsOAuthFlow struct { + // RefreshUrl: The URL to be used for obtaining refresh tokens. + RefreshUrl string `json:"refreshUrl,omitempty"` + // Scopes: Required. The available scopes for the OAuth2 security scheme. + Scopes map[string]string `json:"scopes,omitempty"` + // TokenUrl: Required. The token URL to be used for this flow. + TokenUrl string `json:"tokenUrl,omitempty"` + // ForceSendFields is a list of field names (e.g. "RefreshUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "RefreshUrl") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1ClientCredentialsOAuthFlow) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1ClientCredentialsOAuthFlow + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1DeviceCodeOAuthFlow: Defines configuration details for the OAuth 2.0 +// Device Code flow (RFC 8628). This flow is designed for input-constrained +// devices such as IoT devices, and CLI tools where the user authenticates on a +// separate device. +type LfA2aV1DeviceCodeOAuthFlow struct { + // DeviceAuthorizationUrl: Required. The device authorization endpoint URL. + DeviceAuthorizationUrl string `json:"deviceAuthorizationUrl,omitempty"` + // RefreshUrl: The URL to be used for obtaining refresh tokens. + RefreshUrl string `json:"refreshUrl,omitempty"` + // Scopes: Required. The available scopes for the OAuth2 security scheme. + Scopes map[string]string `json:"scopes,omitempty"` + // TokenUrl: Required. The token URL to be used for this flow. + TokenUrl string `json:"tokenUrl,omitempty"` + // ForceSendFields is a list of field names (e.g. "DeviceAuthorizationUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DeviceAuthorizationUrl") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1DeviceCodeOAuthFlow) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1DeviceCodeOAuthFlow + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1HTTPAuthSecurityScheme: Defines a security scheme using HTTP +// authentication. +type LfA2aV1HTTPAuthSecurityScheme struct { + // BearerFormat: A hint to the client to identify how the bearer token is + // formatted (e.g., "JWT"). Primarily for documentation purposes. + BearerFormat string `json:"bearerFormat,omitempty"` + // Description: An optional description for the security scheme. + Description string `json:"description,omitempty"` + // Scheme: Required. The name of the HTTP Authentication scheme to be used in + // the Authorization header, as defined in RFC7235 (e.g., "Bearer"). This value + // should be registered in the IANA Authentication Scheme registry. + Scheme string `json:"scheme,omitempty"` + // ForceSendFields is a list of field names (e.g. "BearerFormat") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BearerFormat") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s LfA2aV1Artifact) MarshalJSON() ([]byte, error) { - type NoMethod LfA2aV1Artifact +func (s LfA2aV1HTTPAuthSecurityScheme) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1HTTPAuthSecurityScheme return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// LfA2aV1AuthenticationInfo: Defines authentication details, used for push -// notifications. -type LfA2aV1AuthenticationInfo struct { - // Credentials: Push Notification credentials. Format depends on the scheme - // (e.g., token for Bearer). - Credentials string `json:"credentials,omitempty"` - // Scheme: Required. HTTP Authentication Scheme from the IANA registry - // (https://www.iana.org/assignments/http-authschemes/). Examples: `Bearer`, - // `Basic`, `Digest`. Scheme names are case-insensitive per RFC 9110 Section - // 11.1 (https://www.rfc-editor.org/rfc/rfc9110#section-11.1). - Scheme string `json:"scheme,omitempty"` - // ForceSendFields is a list of field names (e.g. "Credentials") to +// LfA2aV1ImplicitOAuthFlow: Deprecated: Use Authorization Code + PKCE instead. +type LfA2aV1ImplicitOAuthFlow struct { + // AuthorizationUrl: The authorization URL to be used for this flow. This MUST + // be in the form of a URL. The OAuth2 standard requires the use of TLS + AuthorizationUrl string `json:"authorizationUrl,omitempty"` + // RefreshUrl: The URL to be used for obtaining refresh tokens. This MUST be in + // the form of a URL. The OAuth2 standard requires the use of TLS. + RefreshUrl string `json:"refreshUrl,omitempty"` + // Scopes: The available scopes for the OAuth2 security scheme. A map between + // the scope name and a short description for it. The map MAY be empty. + Scopes map[string]string `json:"scopes,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthorizationUrl") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Credentials") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AuthorizationUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s LfA2aV1AuthenticationInfo) MarshalJSON() ([]byte, error) { - type NoMethod LfA2aV1AuthenticationInfo +func (s LfA2aV1ImplicitOAuthFlow) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1ImplicitOAuthFlow return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } @@ -4233,6 +4753,115 @@ func (s LfA2aV1Message) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LfA2aV1MutualTlsSecurityScheme: Defines a security scheme using mTLS +// authentication. +type LfA2aV1MutualTlsSecurityScheme struct { + // Description: An optional description for the security scheme. + Description string `json:"description,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1MutualTlsSecurityScheme) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1MutualTlsSecurityScheme + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1OAuth2SecurityScheme: Defines a security scheme using OAuth 2.0. +type LfA2aV1OAuth2SecurityScheme struct { + // Description: An optional description for the security scheme. + Description string `json:"description,omitempty"` + // Flows: Required. An object containing configuration information for the + // supported OAuth 2.0 flows. + Flows *LfA2aV1OAuthFlows `json:"flows,omitempty"` + // Oauth2MetadataUrl: URL to the OAuth2 authorization server metadata RFC 8414 + // (https://datatracker.ietf.org/doc/html/rfc8414). TLS is required. + Oauth2MetadataUrl string `json:"oauth2MetadataUrl,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1OAuth2SecurityScheme) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1OAuth2SecurityScheme + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1OAuthFlows: Defines the configuration for the supported OAuth 2.0 +// flows. +type LfA2aV1OAuthFlows struct { + // AuthorizationCode: Configuration for the OAuth Authorization Code flow. + AuthorizationCode *LfA2aV1AuthorizationCodeOAuthFlow `json:"authorizationCode,omitempty"` + // ClientCredentials: Configuration for the OAuth Client Credentials flow. + ClientCredentials *LfA2aV1ClientCredentialsOAuthFlow `json:"clientCredentials,omitempty"` + // DeviceCode: Configuration for the OAuth Device Code flow. + DeviceCode *LfA2aV1DeviceCodeOAuthFlow `json:"deviceCode,omitempty"` + // Implicit: Deprecated: Use Authorization Code + PKCE instead. + Implicit *LfA2aV1ImplicitOAuthFlow `json:"implicit,omitempty"` + // Password: Deprecated: Use Authorization Code + PKCE or Device Code. + Password *LfA2aV1PasswordOAuthFlow `json:"password,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthorizationCode") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthorizationCode") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1OAuthFlows) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1OAuthFlows + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1OpenIdConnectSecurityScheme: Defines a security scheme using OpenID +// Connect. +type LfA2aV1OpenIdConnectSecurityScheme struct { + // Description: An optional description for the security scheme. + Description string `json:"description,omitempty"` + // OpenIdConnectUrl: Required. The OpenID Connect Discovery URL + // (https://openid.net/specs/openid-connect-discovery-1_0.html) for the OIDC + // provider's metadata. + OpenIdConnectUrl string `json:"openIdConnectUrl,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1OpenIdConnectSecurityScheme) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1OpenIdConnectSecurityScheme + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // LfA2aV1Part: `Part` represents a container for a section of communication // content. Parts can be purely textual, some sort of file (image, video, etc) // or a structured data blob (i.e. JSON). @@ -4273,6 +4902,91 @@ func (s LfA2aV1Part) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LfA2aV1PasswordOAuthFlow: Deprecated: Use Authorization Code + PKCE or +// Device Code. +type LfA2aV1PasswordOAuthFlow struct { + // RefreshUrl: The URL to be used for obtaining refresh tokens. This MUST be in + // the form of a URL. The OAuth2 standard requires the use of TLS. + RefreshUrl string `json:"refreshUrl,omitempty"` + // Scopes: The available scopes for the OAuth2 security scheme. A map between + // the scope name and a short description for it. The map MAY be empty. + Scopes map[string]string `json:"scopes,omitempty"` + // TokenUrl: The token URL to be used for this flow. This MUST be in the form + // of a URL. The OAuth2 standard requires the use of TLS. + TokenUrl string `json:"tokenUrl,omitempty"` + // ForceSendFields is a list of field names (e.g. "RefreshUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "RefreshUrl") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1PasswordOAuthFlow) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1PasswordOAuthFlow + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1SecurityRequirement: Defines the security requirements for an agent. +type LfA2aV1SecurityRequirement struct { + // Schemes: A map of security schemes to the required scopes. + Schemes map[string]LfA2aV1StringList `json:"schemes,omitempty"` + // ForceSendFields is a list of field names (e.g. "Schemes") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Schemes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1SecurityRequirement) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1SecurityRequirement + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1SecurityScheme: Defines a security scheme that can be used to secure +// an agent's endpoints. This is a discriminated union type based on the +// OpenAPI 3.2 Security Scheme Object. See: +// https://spec.openapis.org/oas/v3.2.0.html#security-scheme-object +type LfA2aV1SecurityScheme struct { + // ApiKeySecurityScheme: API key-based authentication. + ApiKeySecurityScheme *LfA2aV1APIKeySecurityScheme `json:"apiKeySecurityScheme,omitempty"` + // HttpAuthSecurityScheme: HTTP authentication (Basic, Bearer, etc.). + HttpAuthSecurityScheme *LfA2aV1HTTPAuthSecurityScheme `json:"httpAuthSecurityScheme,omitempty"` + // MtlsSecurityScheme: Mutual TLS authentication. + MtlsSecurityScheme *LfA2aV1MutualTlsSecurityScheme `json:"mtlsSecurityScheme,omitempty"` + // Oauth2SecurityScheme: OAuth 2.0 authentication. + Oauth2SecurityScheme *LfA2aV1OAuth2SecurityScheme `json:"oauth2SecurityScheme,omitempty"` + // OpenIdConnectSecurityScheme: OpenID Connect authentication. + OpenIdConnectSecurityScheme *LfA2aV1OpenIdConnectSecurityScheme `json:"openIdConnectSecurityScheme,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApiKeySecurityScheme") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ApiKeySecurityScheme") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1SecurityScheme) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1SecurityScheme + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // LfA2aV1SendMessageConfiguration: Configuration of a send message request. type LfA2aV1SendMessageConfiguration struct { // AcceptedOutputModes: A list of media types the client is prepared to accept @@ -4368,6 +5082,29 @@ func (s LfA2aV1SendMessageResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LfA2aV1StringList: protolint:disable REPEATED_FIELD_NAMES_PLURALIZED A list +// of strings. +type LfA2aV1StringList struct { + // List: The individual string values. + List []string `json:"list,omitempty"` + // ForceSendFields is a list of field names (e.g. "List") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "List") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1StringList) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1StringList + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // LfA2aV1Task: `Task` is the core unit of action for A2A. It has a current // status and when results are created for the task they are stored in the // artifact. If there are multiple turns for a task, these are stored in @@ -4913,6 +5650,10 @@ type LoggingSettings struct { // of unredacted audio. This can be used to maintain a raw audio copy when // audio redaction is enabled, typically for auditing or monitoring purposes. UnredactedAudioRecordingConfig *AudioRecordingConfig `json:"unredactedAudioRecordingConfig,omitempty"` + // UnredactedBigqueryExportSettings: Optional. Configures the BigQuery export + // behaviors for the app. The unredacted conversation data will be exported to + // BigQuery tables if it is enabled. + UnredactedBigqueryExportSettings *BigQueryExportSettings `json:"unredactedBigqueryExportSettings,omitempty"` // ForceSendFields is a list of field names (e.g. "AudioRecordingConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -6135,6 +6876,8 @@ type SessionOutput struct { // Citations: Citations that provide the source information for the agent's // generated text. Citations *Citations `json:"citations,omitempty"` + // Context: Context messages for external supervision guardrails. + Context []googleapi.RawMessage `json:"context,omitempty"` // DiagnosticInfo: Optional. Diagnostic information contains execution details // during the processing of the input. Only populated in the last SessionOutput // (with `turn_completed=true`) for each turn. @@ -6995,6 +7738,37 @@ func (s WebSearchQuery) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// WhatsAppCredentials: Ephemeral Meta credentials for WhatsApp native +// integration. +type WhatsAppCredentials struct { + // AuthCode: Required. The Meta auth code provided by the embedded signup flow. + AuthCode string `json:"authCode,omitempty"` + // BusinessAccountId: Required. The Business Account ID to use for the phone + // number. + BusinessAccountId string `json:"businessAccountId,omitempty"` + // PhoneNumber: Required. The phone number to register with WhatsApp. + PhoneNumber string `json:"phoneNumber,omitempty"` + // Pin: Required. The 6-digit PIN created by the user for two-step + // verification. + Pin string `json:"pin,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthCode") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s WhatsAppCredentials) MarshalJSON() ([]byte, error) { + type NoMethod WhatsAppCredentials + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // WidgetTool: Represents a widget tool that the agent can invoke. When the // tool is chosen by the agent, agent will return the widget to the client. The // client is responsible for processing the widget and generating the next user @@ -7944,6 +8718,117 @@ func (c *ProjectsLocationsAppsGetCall) Do(opts ...googleapi.CallOption) (*App, e return ret, nil } +type ProjectsLocationsAppsGetExtendedAgentCardCall struct { + s *Service + tenant string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetExtendedAgentCard: Gets the extended agent card for the authenticated +// agent. +// +// - tenant: Optional. Tenant ID, provided as a path parameter. +func (r *ProjectsLocationsAppsService) GetExtendedAgentCard(tenant string) *ProjectsLocationsAppsGetExtendedAgentCardCall { + c := &ProjectsLocationsAppsGetExtendedAgentCardCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.tenant = tenant + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAppsGetExtendedAgentCardCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsGetExtendedAgentCardCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsAppsGetExtendedAgentCardCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsGetExtendedAgentCardCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAppsGetExtendedAgentCardCall) Context(ctx context.Context) *ProjectsLocationsAppsGetExtendedAgentCardCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAppsGetExtendedAgentCardCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAppsGetExtendedAgentCardCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+tenant}/extendedAgentCard") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "tenant": c.tenant, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "ces.projects.locations.apps.getExtendedAgentCard", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "ces.projects.locations.apps.getExtendedAgentCard" call. +// Any non-2xx status code is an error. Response headers are in either +// *LfA2aV1AgentCard.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 *ProjectsLocationsAppsGetExtendedAgentCardCall) Do(opts ...googleapi.CallOption) (*LfA2aV1AgentCard, 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 := &LfA2aV1AgentCard{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "ces.projects.locations.apps.getExtendedAgentCard", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsAppsImportAppCall struct { s *Service parent string diff --git a/ces/v1beta/ces-api.json b/ces/v1beta/ces-api.json index acd0bafe7c6..9256f98a28b 100644 --- a/ces/v1beta/ces-api.json +++ b/ces/v1beta/ces-api.json @@ -441,6 +441,32 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getExtendedAgentCard": { + "description": "Gets the extended agent card for the authenticated agent.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/extendedAgentCard", + "httpMethod": "GET", + "id": "ces.projects.locations.apps.getExtendedAgentCard", + "parameterOrder": [ + "tenant" + ], + "parameters": { + "tenant": { + "description": "Optional. Tenant ID, provided as a path parameter.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/apps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+tenant}/extendedAgentCard", + "response": { + "$ref": "LfA2aV1AgentCard" + }, + "scopes": [ + "https://www.googleapis.com/auth/ces", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "importApp": { "description": "Imports the specified app.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/apps:importApp", @@ -2207,6 +2233,35 @@ "https://www.googleapis.com/auth/ces", "https://www.googleapis.com/auth/cloud-platform" ] + }, + "runEvaluationResultMetrics": { + "description": "Runs metrics on an existing evaluation result.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/evaluations/{evaluationsId}/results/{resultsId}:runEvaluationResultMetrics", + "httpMethod": "POST", + "id": "ces.projects.locations.apps.evaluations.results.runEvaluationResultMetrics", + "parameterOrder": [ + "evaluationResultId" + ], + "parameters": { + "evaluationResultId": { + "description": "Required. The evaluation result to run metrics for. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{evaluation_result_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+/results/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+evaluationResultId}:runEvaluationResultMetrics", + "request": { + "$ref": "RunEvaluationResultMetricsRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/ces", + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -3575,7 +3630,7 @@ } } }, - "revision": "20260513", + "revision": "20260617", "rootUrl": "https://ces.googleapis.com/", "schemas": { "Action": { @@ -3962,11 +4017,6 @@ "name": { "description": "Required. The name of the agent tool.", "type": "string" - }, - "rootAgent": { - "deprecated": true, - "description": "Optional. Deprecated: Use `agent` instead. The resource name of the root agent that is the entry point of the tool. Format: `projects/{project}/locations/{location}/agents/{agent}`", - "type": "string" } }, "type": "object" @@ -4622,7 +4672,7 @@ }, "disableBargeIn": { "deprecated": true, - "description": "Optional. Disables user barge-in while the agent is speaking. If true, user input during agent response playback will be ignored. Deprecated: `disable_barge_in` is deprecated in favor of `disable_barge_in_control` in ChannelProfile.", + "description": "Optional. Deprecated: `disable_barge_in` is deprecated in favor of `disable_barge_in_control` in ChannelProfile. Disables user barge-in while the agent is speaking. If true, user input during agent response playback will be ignored.", "type": "boolean" } }, @@ -4842,7 +4892,9 @@ "GOOGLE_TELEPHONY_PLATFORM", "CONTACT_CENTER_AS_A_SERVICE", "FIVE9", - "CONTACT_CENTER_INTEGRATION" + "CONTACT_CENTER_INTEGRATION", + "WHATSAPP", + "INSTAGRAM" ], "enumDescriptions": [ "Unknown channel type.", @@ -4852,7 +4904,9 @@ "Google Telephony Platform channel.", "Contact Center as a Service (CCaaS) channel.", "Five9 channel.", - "Third party contact center integration channel." + "Third party contact center integration channel.", + "WhatsApp channel.", + "Instagram channel." ], "type": "string" }, @@ -4864,6 +4918,10 @@ "description": "Optional. Whether to disable DTMF (dual-tone multi-frequency).", "type": "boolean" }, + "instagramConfig": { + "$ref": "ChannelProfileInstagramConfig", + "description": "Optional. Configuration specific to Instagram deployments." + }, "noiseSuppressionLevel": { "description": "Optional. The noise suppression level of the channel profile. Available values are \"low\", \"moderate\", \"high\", \"very_high\".", "type": "string" @@ -4879,6 +4937,21 @@ "webWidgetConfig": { "$ref": "ChannelProfileWebWidgetConfig", "description": "Optional. The configuration for the web widget." + }, + "whatsappConfig": { + "$ref": "ChannelProfileWhatsAppConfig", + "description": "Optional. Configuration specific to WhatsApp deployments." + } + }, + "type": "object" + }, + "ChannelProfileInstagramConfig": { + "description": "Configuration specific to Instagram deployments.", + "id": "ChannelProfileInstagramConfig", + "properties": { + "instagramAccountId": { + "description": "Required. The Instagram Account ID.", + "type": "string" } }, "type": "object" @@ -4977,6 +5050,21 @@ }, "type": "object" }, + "ChannelProfileWhatsAppConfig": { + "description": "Configuration specific to WhatsApp deployments.", + "id": "ChannelProfileWhatsAppConfig", + "properties": { + "phoneNumberId": { + "description": "Required. The Meta phone number ID.", + "type": "string" + }, + "wabaId": { + "description": "Required. The WhatsApp Business Account ID.", + "type": "string" + } + }, + "type": "object" + }, "Chunk": { "description": "A chunk of content within a message.", "id": "Chunk", @@ -5054,6 +5142,10 @@ "description": "Piece of cited information.", "id": "CitationsCitedChunk", "properties": { + "requiresAttribution": { + "description": "Whether this citation requires attribution to be shown to the end users.", + "type": "boolean" + }, "text": { "description": "Text used for citation.", "type": "string" @@ -5793,6 +5885,10 @@ "$ref": "ExperimentConfig", "description": "Optional. Experiment configuration for the deployment." }, + "instagramCredentials": { + "$ref": "InstagramCredentials", + "description": "Optional. Input only. Ephemeral Instagram credentials required when configuring a Instagram channel profile." + }, "name": { "description": "Identifier. The resource name of the deployment. Format: `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`", "type": "string" @@ -5802,6 +5898,10 @@ "format": "google-datetime", "readOnly": true, "type": "string" + }, + "whatsappCredentials": { + "$ref": "WhatsAppCredentials", + "description": "Optional. Input only. Ephemeral WhatsApp credentials required when configuring a WhatsApp channel profile." } }, "type": "object" @@ -6279,7 +6379,7 @@ "type": "array" }, "turns": { - "description": "Required. The golden turns required to replay a golden conversation.", + "description": "Required. The golden turns required to replay a golden conversation. The maximum number of allowed turns is 100.", "items": { "$ref": "EvaluationGoldenTurn" }, @@ -6308,6 +6408,22 @@ "$ref": "AgentTransfer", "description": "Optional. Check that the agent transferred the conversation to a different agent." }, + "comparisonType": { + "description": "Optional. The comparison type to use for the expectation check.", + "enum": [ + "COMPARISON_TYPE_UNSPECIFIED", + "EQUALS", + "CONTAINS", + "SEMANTIC_SIMILARITY" + ], + "enumDescriptions": [ + "Unspecified comparison type. Behavior defaults to SEMANTIC_SIMILARITY for agent responses and tool calls.", + "Exact string match.", + "Substring match (checks if the expected string is contained in the actual response).", + "Semantic similarity match (evaluates meaning similarity using an LLM)." + ], + "type": "string" + }, "expectationLevelMetricsThresholdsOverride": { "$ref": "EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds", "description": "Optional. Overrides metrics at the step level." @@ -6316,6 +6432,10 @@ "$ref": "ToolResponse", "description": "Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM." }, + "noToolCalls": { + "description": "Optional. Check that no tools were called during this turn.", + "type": "boolean" + }, "note": { "description": "Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., \"Check_Payment_Tool_Called\".", "type": "string" @@ -6763,15 +6883,19 @@ "description": "Output only. The state of the evaluation result execution.", "enum": [ "EXECUTION_STATE_UNSPECIFIED", + "QUEUED", "RUNNING", "COMPLETED", - "ERROR" + "ERROR", + "CANCELLED" ], "enumDescriptions": [ "Evaluation result execution state is not specified.", + "Evaluation result execution is queued.", "Evaluation result execution is running.", "Evaluation result execution has completed.", - "Evaluation result execution failed due to an internal error." + "Evaluation result execution failed due to an internal error.", + "Evaluation result execution was cancelled." ], "readOnly": true, "type": "string" @@ -7637,15 +7761,19 @@ "description": "Output only. The state of the evaluation run.", "enum": [ "EVALUATION_RUN_STATE_UNSPECIFIED", + "QUEUED", "RUNNING", "COMPLETED", - "ERROR" + "ERROR", + "CANCELLED" ], "enumDescriptions": [ "Evaluation run state is not specified.", + "Indicates the evaluation run is queued.", "Evaluation run is running.", "Evaluation run has completed.", - "The evaluation run has an error." + "The evaluation run has an error.", + "Evaluation run was cancelled." ], "readOnly": true, "type": "string" @@ -7653,6 +7781,27 @@ }, "type": "object" }, + "EvaluationRunCachingSettings": { + "description": "Settings for evaluation run caching.", + "id": "EvaluationRunCachingSettings", + "properties": { + "runCachingMode": { + "description": "Optional. The caching mode to use for the evaluation run. If not set, default to FORCE_RUN.", + "enum": [ + "EVALUATION_RUN_CACHING_MODE_UNSPECIFIED", + "FORCE_RUN", + "SKIP_IF_UNCHANGED" + ], + "enumDescriptions": [ + "The run caching mode is unspecified.", + "Always execute a full live simulation regardless of whether changelogs exist.", + "Skip execution and copy previous verified results if no dependencies have mutated, the evaluation channel/run method are the same." + ], + "type": "string" + } + }, + "type": "object" + }, "EvaluationRunEvaluationRunSummary": { "description": "Contains the summary of passed and failed result counts for a specific evaluation in an evaluation run.", "id": "EvaluationRunEvaluationRunSummary", @@ -7682,6 +7831,12 @@ "description": "The progress of the evaluation run.", "id": "EvaluationRunProgress", "properties": { + "cancelledCount": { + "description": "Output only. Number of evaluation results that were cancelled. (EvaluationResult.execution_state is CANCELLED).", + "format": "int32", + "readOnly": true, + "type": "integer" + }, "completedCount": { "description": "Output only. Number of evaluation results that finished successfully. (EvaluationResult.execution_state is COMPLETED).", "format": "int32", @@ -7727,7 +7882,7 @@ "type": "array" }, "maxTurns": { - "description": "Optional. The maximum number of turns to simulate. If not specified, the simulation will continue until the task is complete.", + "description": "Optional. The maximum number of turns to simulate. The maximum allowed value is 100. The default value is 100.", "format": "int32", "type": "integer" }, @@ -7738,6 +7893,20 @@ }, "type": "array" }, + "scenarioExecutionMode": { + "description": "Optional. The execution mode for scenario evaluations.", + "enum": [ + "SCENARIO_EXECUTION_MODE_UNSPECIFIED", + "QUALITY_OPTIMIZED", + "SPEED_OPTIMIZED" + ], + "enumDescriptions": [ + "Unspecified execution mode. Defaults to QUALITY_OPTIMIZED.", + "Quality optimized mode.", + "Speed optimized mode." + ], + "type": "string" + }, "scenarioExpectations": { "description": "Required. The ScenarioExpectations to evaluate the conversation produced by the user simulation.", "items": { @@ -7847,6 +8016,10 @@ "description": "Settings for evaluation.", "id": "EvaluationSettings", "properties": { + "evaluationRunCachingSettings": { + "$ref": "EvaluationRunCachingSettings", + "description": "Optional. The caching settings to use for the evaluation run." + }, "goldenEvaluationToolCallBehaviour": { "description": "Optional. Configures the default tool call behaviour for golden evaluations.", "enum": [ @@ -7906,6 +8079,20 @@ "Use fake tool calls." ], "type": "string" + }, + "scenarioExecutionMode": { + "description": "Optional. The execution mode for scenario evaluations. If not provided, will default to QUALITY_OPTIMIZED.", + "enum": [ + "SCENARIO_EXECUTION_MODE_UNSPECIFIED", + "QUALITY_OPTIMIZED", + "SPEED_OPTIMIZED" + ], + "enumDescriptions": [ + "Unspecified execution mode. Defaults to QUALITY_OPTIMIZED.", + "Quality optimized mode.", + "Speed optimized mode." + ], + "type": "string" } }, "type": "object" @@ -8038,6 +8225,14 @@ "description": "Response message for ToolService.ExecuteTool.", "id": "ExecuteToolResponse", "properties": { + "citations": { + "$ref": "Citations", + "description": "Citations that provide the source information for the tool's execution." + }, + "googleSearchSuggestions": { + "$ref": "GoogleSearchSuggestions", + "description": "The suggestions returned from Google Search as a result of invoking the Google Search Tool during the tool execution." + }, "response": { "additionalProperties": { "description": "Properties of the object.", @@ -8403,6 +8598,10 @@ "$ref": "GenerateAppResourceRequestAppGenerationConfig", "description": "Optional. The configuration to be used to generate the agents and tools." }, + "appVersionContext": { + "$ref": "GenerateAppResourceRequestAppVersionContext", + "description": "The app version context specifying the base snapshot and target agent." + }, "evaluationGenerationConfig": { "$ref": "GenerateAppResourceRequestEvaluationGenerationConfig", "description": "Optional. The configuration to be used to generate the evaluations." @@ -8471,6 +8670,21 @@ }, "type": "object" }, + "GenerateAppResourceRequestAppVersionContext": { + "description": "The app version context specifying the base snapshot and target agent.", + "id": "GenerateAppResourceRequestAppVersionContext", + "properties": { + "agentResourceName": { + "description": "The resource name of the target agent to be used by the LLM assistant. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`", + "type": "string" + }, + "appVersion": { + "description": "The resource name of the app version to be used by the LLM assistant. Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}`", + "type": "string" + } + }, + "type": "object" + }, "GenerateAppResourceRequestEvaluationGenerationConfig": { "description": "The configuration to be used to generate the evaluations.", "id": "GenerateAppResourceRequestEvaluationGenerationConfig", @@ -9360,6 +9574,17 @@ }, "type": "object" }, + "InstagramCredentials": { + "description": "Ephemeral Meta credentials for Instagram native integration.", + "id": "InstagramCredentials", + "properties": { + "authCode": { + "description": "Required. The Meta auth code provided by the embedded signup flow.", + "type": "string" + } + }, + "type": "object" + }, "LanguageSettings": { "description": "Language settings of the app.", "id": "LanguageSettings", @@ -9546,6 +9771,277 @@ }, "type": "object" }, + "LfA2aV1APIKeySecurityScheme": { + "description": "Defines a security scheme using an API key.", + "id": "LfA2aV1APIKeySecurityScheme", + "properties": { + "description": { + "description": "An optional description for the security scheme.", + "type": "string" + }, + "location": { + "description": "Required. The location of the API key. Valid values are \"query\", \"header\", or \"cookie\".", + "type": "string" + }, + "name": { + "description": "Required. The name of the header, query, or cookie parameter to be used.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1AgentCapabilities": { + "description": "Defines optional capabilities supported by an agent.", + "id": "LfA2aV1AgentCapabilities", + "properties": { + "extendedAgentCard": { + "description": "Indicates if the agent supports providing an extended agent card when authenticated.", + "type": "boolean" + }, + "extensions": { + "description": "A list of protocol extensions supported by the agent.", + "items": { + "$ref": "LfA2aV1AgentExtension" + }, + "type": "array" + }, + "pushNotifications": { + "description": "Indicates if the agent supports sending push notifications for asynchronous task updates.", + "type": "boolean" + }, + "streaming": { + "description": "Indicates if the agent supports streaming responses.", + "type": "boolean" + } + }, + "type": "object" + }, + "LfA2aV1AgentCard": { + "description": "A self-describing manifest for an agent. It provides essential metadata including the agent's identity, capabilities, skills, supported communication methods, and security requirements. Next ID: 20", + "id": "LfA2aV1AgentCard", + "properties": { + "capabilities": { + "$ref": "LfA2aV1AgentCapabilities", + "description": "Required. A2A Capability set supported by the agent." + }, + "defaultInputModes": { + "description": "Required. protolint:enable REPEATED_FIELD_NAMES_PLURALIZED The set of interaction modes that the agent supports across all skills. This can be overridden per skill. Defined as media types.", + "items": { + "type": "string" + }, + "type": "array" + }, + "defaultOutputModes": { + "description": "Required. The media types supported as outputs from this agent.", + "items": { + "type": "string" + }, + "type": "array" + }, + "description": { + "description": "Required. A human-readable description of the agent, assisting users and other agents in understanding its purpose. Example: \"Agent that helps users with recipes and cooking.\"", + "type": "string" + }, + "documentationUrl": { + "description": "A URL providing additional documentation about the agent.", + "type": "string" + }, + "iconUrl": { + "description": "Optional. A URL to an icon for the agent.", + "type": "string" + }, + "name": { + "description": "Required. A human readable name for the agent. Example: \"Recipe Agent\"", + "type": "string" + }, + "provider": { + "$ref": "LfA2aV1AgentProvider", + "description": "The service provider of the agent." + }, + "securityRequirements": { + "description": "Security requirements for contacting the agent.", + "items": { + "$ref": "LfA2aV1SecurityRequirement" + }, + "type": "array" + }, + "securitySchemes": { + "additionalProperties": { + "$ref": "LfA2aV1SecurityScheme" + }, + "description": "The security scheme details used for authenticating with this agent.", + "type": "object" + }, + "signatures": { + "description": "JSON Web Signatures computed for this `AgentCard`.", + "items": { + "$ref": "LfA2aV1AgentCardSignature" + }, + "type": "array" + }, + "skills": { + "description": "Required. Skills represent the abilities of an agent. It is largely a descriptive concept but represents a more focused set of behaviors that the agent is likely to succeed at.", + "items": { + "$ref": "LfA2aV1AgentSkill" + }, + "type": "array" + }, + "supportedInterfaces": { + "description": "Required. Ordered list of supported interfaces. The first entry is preferred.", + "items": { + "$ref": "LfA2aV1AgentInterface" + }, + "type": "array" + }, + "version": { + "description": "Required. The version of the agent. Example: \"1.0.0\"", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1AgentCardSignature": { + "description": "AgentCardSignature represents a JWS signature of an AgentCard. This follows the JSON format of an RFC 7515 JSON Web Signature (JWS).", + "id": "LfA2aV1AgentCardSignature", + "properties": { + "header": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "The unprotected JWS header values.", + "type": "object" + }, + "protected": { + "description": "Required. Required. The protected JWS header for the signature. This is always a base64url-encoded JSON object.", + "type": "string" + }, + "signature": { + "description": "Required. The computed signature, base64url-encoded.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1AgentExtension": { + "description": "A declaration of a protocol extension supported by an Agent.", + "id": "LfA2aV1AgentExtension", + "properties": { + "description": { + "description": "A human-readable description of how this agent uses the extension.", + "type": "string" + }, + "params": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Extension-specific configuration parameters.", + "type": "object" + }, + "required": { + "description": "If true, the client must understand and comply with the extension's requirements.", + "type": "boolean" + }, + "uri": { + "description": "The unique URI identifying the extension.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1AgentInterface": { + "description": "Declares a combination of a target URL, transport and protocol version for interacting with the agent. This allows agents to expose the same functionality over multiple protocol binding mechanisms.", + "id": "LfA2aV1AgentInterface", + "properties": { + "protocolBinding": { + "description": "Required. The protocol binding supported at this URL. This is an open form string, to be easily extended for other protocol bindings. The core ones officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.", + "type": "string" + }, + "protocolVersion": { + "description": "Required. The version of the A2A protocol this interface exposes. Use the latest supported minor version per major version. Examples: \"0.3\", \"1.0\"", + "type": "string" + }, + "tenant": { + "description": "Tenant ID to be used in the request when calling the agent.", + "type": "string" + }, + "url": { + "description": "Required. The URL where this interface is available. Must be a valid absolute HTTPS URL in production. Example: \"https://api.example.com/a2a/v1\", \"https://grpc.example.com/a2a\"", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1AgentProvider": { + "description": "Represents the service provider of an agent.", + "id": "LfA2aV1AgentProvider", + "properties": { + "organization": { + "description": "Required. The name of the agent provider's organization. Example: \"Google\"", + "type": "string" + }, + "url": { + "description": "Required. A URL for the agent provider's website or relevant documentation. Example: \"https://ai.google.dev\"", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1AgentSkill": { + "description": "Represents a distinct capability or function that an agent can perform.", + "id": "LfA2aV1AgentSkill", + "properties": { + "description": { + "description": "Required. A detailed description of the skill.", + "type": "string" + }, + "examples": { + "description": "Example prompts or scenarios that this skill can handle.", + "items": { + "type": "string" + }, + "type": "array" + }, + "id": { + "description": "Required. A unique identifier for the agent's skill.", + "type": "string" + }, + "inputModes": { + "description": "The set of supported input media types for this skill, overriding the agent's defaults.", + "items": { + "type": "string" + }, + "type": "array" + }, + "name": { + "description": "Required. A human-readable name for the skill.", + "type": "string" + }, + "outputModes": { + "description": "The set of supported output media types for this skill, overriding the agent's defaults.", + "items": { + "type": "string" + }, + "type": "array" + }, + "securityRequirements": { + "description": "Security schemes necessary for this skill.", + "items": { + "$ref": "LfA2aV1SecurityRequirement" + }, + "type": "array" + }, + "tags": { + "description": "Required. A set of keywords describing the skill's capabilities.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "LfA2aV1Artifact": { "description": "Artifacts represent task outputs.", "id": "LfA2aV1Artifact", @@ -9602,6 +10098,125 @@ }, "type": "object" }, + "LfA2aV1AuthorizationCodeOAuthFlow": { + "description": "Defines configuration details for the OAuth 2.0 Authorization Code flow.", + "id": "LfA2aV1AuthorizationCodeOAuthFlow", + "properties": { + "authorizationUrl": { + "description": "Required. The authorization URL to be used for this flow.", + "type": "string" + }, + "pkceRequired": { + "description": "Indicates if PKCE (RFC 7636) is required for this flow. PKCE should always be used for public clients and is recommended for all clients.", + "type": "boolean" + }, + "refreshUrl": { + "description": "The URL to be used for obtaining refresh tokens.", + "type": "string" + }, + "scopes": { + "additionalProperties": { + "type": "string" + }, + "description": "Required. The available scopes for the OAuth2 security scheme.", + "type": "object" + }, + "tokenUrl": { + "description": "Required. The token URL to be used for this flow.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1ClientCredentialsOAuthFlow": { + "description": "Defines configuration details for the OAuth 2.0 Client Credentials flow.", + "id": "LfA2aV1ClientCredentialsOAuthFlow", + "properties": { + "refreshUrl": { + "description": "The URL to be used for obtaining refresh tokens.", + "type": "string" + }, + "scopes": { + "additionalProperties": { + "type": "string" + }, + "description": "Required. The available scopes for the OAuth2 security scheme.", + "type": "object" + }, + "tokenUrl": { + "description": "Required. The token URL to be used for this flow.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1DeviceCodeOAuthFlow": { + "description": "Defines configuration details for the OAuth 2.0 Device Code flow (RFC 8628). This flow is designed for input-constrained devices such as IoT devices, and CLI tools where the user authenticates on a separate device.", + "id": "LfA2aV1DeviceCodeOAuthFlow", + "properties": { + "deviceAuthorizationUrl": { + "description": "Required. The device authorization endpoint URL.", + "type": "string" + }, + "refreshUrl": { + "description": "The URL to be used for obtaining refresh tokens.", + "type": "string" + }, + "scopes": { + "additionalProperties": { + "type": "string" + }, + "description": "Required. The available scopes for the OAuth2 security scheme.", + "type": "object" + }, + "tokenUrl": { + "description": "Required. The token URL to be used for this flow.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1HTTPAuthSecurityScheme": { + "description": "Defines a security scheme using HTTP authentication.", + "id": "LfA2aV1HTTPAuthSecurityScheme", + "properties": { + "bearerFormat": { + "description": "A hint to the client to identify how the bearer token is formatted (e.g., \"JWT\"). Primarily for documentation purposes.", + "type": "string" + }, + "description": { + "description": "An optional description for the security scheme.", + "type": "string" + }, + "scheme": { + "description": "Required. The name of the HTTP Authentication scheme to be used in the Authorization header, as defined in RFC7235 (e.g., \"Bearer\"). This value should be registered in the IANA Authentication Scheme registry.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1ImplicitOAuthFlow": { + "description": "Deprecated: Use Authorization Code + PKCE instead.", + "id": "LfA2aV1ImplicitOAuthFlow", + "properties": { + "authorizationUrl": { + "description": "The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS", + "type": "string" + }, + "refreshUrl": { + "description": "The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.", + "type": "string" + }, + "scopes": { + "additionalProperties": { + "type": "string" + }, + "description": "The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.", + "type": "object" + } + }, + "type": "object" + }, "LfA2aV1Message": { "description": "`Message` is one unit of communication between client and server. It can be associated with a context and/or a task. For server messages, `context_id` must be provided, and `task_id` only if a task was created. For client messages, both fields are optional, with the caveat that if both are provided, they have to match (the `context_id` has to be the one that is set on the task). If only `task_id` is provided, the server will infer `context_id` from it.", "id": "LfA2aV1Message", @@ -9664,6 +10279,80 @@ }, "type": "object" }, + "LfA2aV1MutualTlsSecurityScheme": { + "description": "Defines a security scheme using mTLS authentication.", + "id": "LfA2aV1MutualTlsSecurityScheme", + "properties": { + "description": { + "description": "An optional description for the security scheme.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1OAuth2SecurityScheme": { + "description": "Defines a security scheme using OAuth 2.0.", + "id": "LfA2aV1OAuth2SecurityScheme", + "properties": { + "description": { + "description": "An optional description for the security scheme.", + "type": "string" + }, + "flows": { + "$ref": "LfA2aV1OAuthFlows", + "description": "Required. An object containing configuration information for the supported OAuth 2.0 flows." + }, + "oauth2MetadataUrl": { + "description": "URL to the OAuth2 authorization server metadata [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1OAuthFlows": { + "description": "Defines the configuration for the supported OAuth 2.0 flows.", + "id": "LfA2aV1OAuthFlows", + "properties": { + "authorizationCode": { + "$ref": "LfA2aV1AuthorizationCodeOAuthFlow", + "description": "Configuration for the OAuth Authorization Code flow." + }, + "clientCredentials": { + "$ref": "LfA2aV1ClientCredentialsOAuthFlow", + "description": "Configuration for the OAuth Client Credentials flow." + }, + "deviceCode": { + "$ref": "LfA2aV1DeviceCodeOAuthFlow", + "description": "Configuration for the OAuth Device Code flow." + }, + "implicit": { + "$ref": "LfA2aV1ImplicitOAuthFlow", + "deprecated": true, + "description": "Deprecated: Use Authorization Code + PKCE instead." + }, + "password": { + "$ref": "LfA2aV1PasswordOAuthFlow", + "deprecated": true, + "description": "Deprecated: Use Authorization Code + PKCE or Device Code." + } + }, + "type": "object" + }, + "LfA2aV1OpenIdConnectSecurityScheme": { + "description": "Defines a security scheme using OpenID Connect.", + "id": "LfA2aV1OpenIdConnectSecurityScheme", + "properties": { + "description": { + "description": "An optional description for the security scheme.", + "type": "string" + }, + "openIdConnectUrl": { + "description": "Required. The [OpenID Connect Discovery URL](https://openid.net/specs/openid-connect-discovery-1_0.html) for the OIDC provider's metadata.", + "type": "string" + } + }, + "type": "object" + }, "LfA2aV1Part": { "description": "`Part` represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).", "id": "LfA2aV1Part", @@ -9704,6 +10393,69 @@ }, "type": "object" }, + "LfA2aV1PasswordOAuthFlow": { + "description": "Deprecated: Use Authorization Code + PKCE or Device Code.", + "id": "LfA2aV1PasswordOAuthFlow", + "properties": { + "refreshUrl": { + "description": "The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.", + "type": "string" + }, + "scopes": { + "additionalProperties": { + "type": "string" + }, + "description": "The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.", + "type": "object" + }, + "tokenUrl": { + "description": "The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.", + "type": "string" + } + }, + "type": "object" + }, + "LfA2aV1SecurityRequirement": { + "description": "Defines the security requirements for an agent.", + "id": "LfA2aV1SecurityRequirement", + "properties": { + "schemes": { + "additionalProperties": { + "$ref": "LfA2aV1StringList" + }, + "description": "A map of security schemes to the required scopes.", + "type": "object" + } + }, + "type": "object" + }, + "LfA2aV1SecurityScheme": { + "description": "Defines a security scheme that can be used to secure an agent's endpoints. This is a discriminated union type based on the OpenAPI 3.2 Security Scheme Object. See: https://spec.openapis.org/oas/v3.2.0.html#security-scheme-object", + "id": "LfA2aV1SecurityScheme", + "properties": { + "apiKeySecurityScheme": { + "$ref": "LfA2aV1APIKeySecurityScheme", + "description": "API key-based authentication." + }, + "httpAuthSecurityScheme": { + "$ref": "LfA2aV1HTTPAuthSecurityScheme", + "description": "HTTP authentication (Basic, Bearer, etc.)." + }, + "mtlsSecurityScheme": { + "$ref": "LfA2aV1MutualTlsSecurityScheme", + "description": "Mutual TLS authentication." + }, + "oauth2SecurityScheme": { + "$ref": "LfA2aV1OAuth2SecurityScheme", + "description": "OAuth 2.0 authentication." + }, + "openIdConnectSecurityScheme": { + "$ref": "LfA2aV1OpenIdConnectSecurityScheme", + "description": "OpenID Connect authentication." + } + }, + "type": "object" + }, "LfA2aV1SendMessageConfiguration": { "description": "Configuration of a send message request.", "id": "LfA2aV1SendMessageConfiguration", @@ -9769,6 +10521,20 @@ }, "type": "object" }, + "LfA2aV1StringList": { + "description": "protolint:disable REPEATED_FIELD_NAMES_PLURALIZED A list of strings.", + "id": "LfA2aV1StringList", + "properties": { + "list": { + "description": "The individual string values.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "LfA2aV1Task": { "description": "`Task` is the core unit of action for A2A. It has a current status and when results are created for the task they are stored in the artifact. If there are multiple turns for a task, these are stored in history.", "id": "LfA2aV1Task", @@ -10290,6 +11056,10 @@ "unredactedAudioRecordingConfig": { "$ref": "AudioRecordingConfig", "description": "Optional. Configures an additional recording of unredacted audio. This can be used to maintain a raw audio copy when audio redaction is enabled, typically for auditing or monitoring purposes." + }, + "unredactedBigqueryExportSettings": { + "$ref": "BigQueryExportSettings", + "description": "Optional. Configures the BigQuery export behaviors for the app. The unredacted conversation data will be exported to BigQuery tables if it is enabled." } }, "type": "object" @@ -11070,6 +11840,10 @@ "description": "Optional. An evaluation dataset to run. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}`", "type": "string" }, + "evaluationRunCachingSettings": { + "$ref": "EvaluationRunCachingSettings", + "description": "Optional. The caching settings to use for the evaluation run." + }, "evaluations": { "description": "Optional. List of evaluations to run. Format: `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}`", "items": { @@ -11118,6 +11892,36 @@ }, "type": "object" }, + "RunEvaluationResultMetricsRequest": { + "description": "Request message for EvaluationService.RunEvaluationResultMetrics.", + "id": "RunEvaluationResultMetricsRequest", + "properties": {}, + "type": "object" + }, + "RunEvaluationResultMetricsResponse": { + "description": "Response message for EvaluationService.RunEvaluationResultMetrics.", + "id": "RunEvaluationResultMetricsResponse", + "properties": { + "status": { + "description": "Output only. The status of the evaluation result metrics calculation.", + "enum": [ + "OUTCOME_UNSPECIFIED", + "PASS", + "FAIL", + "SKIPPED" + ], + "enumDescriptions": [ + "Evaluation outcome is not specified.", + "Evaluation/Expectation passed. In the case of an evaluation, this means that all expectations were met.", + "Evaluation/Expectation failed. In the case of an evaluation, this means that at least one expectation was not met.", + "Evaluation/Expectation was skipped." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "RunSessionRequest": { "description": "Request message for SessionService.RunSession.", "id": "RunSessionRequest", @@ -11590,6 +12394,17 @@ "$ref": "Citations", "description": "Citations that provide the source information for the agent's generated text." }, + "context": { + "description": "Context messages for external supervision guardrails.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, "diagnosticInfo": { "$ref": "SessionOutputDiagnosticInfo", "description": "Optional. Diagnostic information contains execution details during the processing of the input. Only populated in the last SessionOutput (with `turn_completed=true`) for each turn." @@ -12311,6 +13126,29 @@ }, "type": "object" }, + "WhatsAppCredentials": { + "description": "Ephemeral Meta credentials for WhatsApp native integration.", + "id": "WhatsAppCredentials", + "properties": { + "authCode": { + "description": "Required. The Meta auth code provided by the embedded signup flow.", + "type": "string" + }, + "businessAccountId": { + "description": "Required. The Business Account ID to use for the phone number.", + "type": "string" + }, + "phoneNumber": { + "description": "Required. The phone number to register with WhatsApp.", + "type": "string" + }, + "pin": { + "description": "Required. The 6-digit PIN created by the user for two-step verification.", + "type": "string" + } + }, + "type": "object" + }, "WidgetTool": { "description": "Represents a widget tool that the agent can invoke. When the tool is chosen by the agent, agent will return the widget to the client. The client is responsible for processing the widget and generating the next user query to continue the interaction with the agent.", "id": "WidgetTool", diff --git a/ces/v1beta/ces-gen.go b/ces/v1beta/ces-gen.go index 48f838cc3d9..b9da7d79ed0 100644 --- a/ces/v1beta/ces-gen.go +++ b/ces/v1beta/ces-gen.go @@ -793,10 +793,6 @@ type AgentTool struct { Description string `json:"description,omitempty"` // Name: Required. The name of the agent tool. Name string `json:"name,omitempty"` - // RootAgent: Optional. Deprecated: Use `agent` instead. The resource name of - // the root agent that is the entry point of the tool. Format: - // `projects/{project}/locations/{location}/agents/{agent}` - RootAgent string `json:"rootAgent,omitempty"` // ForceSendFields is a list of field names (e.g. "Agent") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -1524,10 +1520,10 @@ type BargeInConfig struct { // preceding agent message. This should not be used in scenarios where agent // responses are displayed visually. BargeInAwareness bool `json:"bargeInAwareness,omitempty"` - // DisableBargeIn: Optional. Disables user barge-in while the agent is - // speaking. If true, user input during agent response playback will be - // ignored. Deprecated: `disable_barge_in` is deprecated in favor of - // `disable_barge_in_control` in ChannelProfile. + // DisableBargeIn: Optional. Deprecated: `disable_barge_in` is deprecated in + // favor of `disable_barge_in_control` in ChannelProfile. Disables user + // barge-in while the agent is speaking. If true, user input during agent + // response playback will be ignored. DisableBargeIn bool `json:"disableBargeIn,omitempty"` // ForceSendFields is a list of field names (e.g. "BargeInAwareness") to // unconditionally include in API requests. By default, fields with empty or @@ -1783,6 +1779,8 @@ type ChannelProfile struct { // "FIVE9" - Five9 channel. // "CONTACT_CENTER_INTEGRATION" - Third party contact center integration // channel. + // "WHATSAPP" - WhatsApp channel. + // "INSTAGRAM" - Instagram channel. ChannelType string `json:"channelType,omitempty"` // DisableBargeInControl: Optional. Whether to disable user barge-in control in // the conversation. - **true**: User interruptions are disabled while the @@ -1791,6 +1789,8 @@ type ChannelProfile struct { DisableBargeInControl bool `json:"disableBargeInControl,omitempty"` // DisableDtmf: Optional. Whether to disable DTMF (dual-tone multi-frequency). DisableDtmf bool `json:"disableDtmf,omitempty"` + // InstagramConfig: Optional. Configuration specific to Instagram deployments. + InstagramConfig *ChannelProfileInstagramConfig `json:"instagramConfig,omitempty"` // NoiseSuppressionLevel: Optional. The noise suppression level of the channel // profile. Available values are "low", "moderate", "high", "very_high". NoiseSuppressionLevel string `json:"noiseSuppressionLevel,omitempty"` @@ -1800,6 +1800,8 @@ type ChannelProfile struct { ProfileId string `json:"profileId,omitempty"` // WebWidgetConfig: Optional. The configuration for the web widget. WebWidgetConfig *ChannelProfileWebWidgetConfig `json:"webWidgetConfig,omitempty"` + // WhatsappConfig: Optional. Configuration specific to WhatsApp deployments. + WhatsappConfig *ChannelProfileWhatsAppConfig `json:"whatsappConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "ChannelType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1818,6 +1820,29 @@ func (s ChannelProfile) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ChannelProfileInstagramConfig: Configuration specific to Instagram +// deployments. +type ChannelProfileInstagramConfig struct { + // InstagramAccountId: Required. The Instagram Account ID. + InstagramAccountId string `json:"instagramAccountId,omitempty"` + // ForceSendFields is a list of field names (e.g. "InstagramAccountId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "InstagramAccountId") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ChannelProfileInstagramConfig) MarshalJSON() ([]byte, error) { + type NoMethod ChannelProfileInstagramConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ChannelProfilePersonaProperty: Represents the persona property of a channel. type ChannelProfilePersonaProperty struct { // Persona: Optional. The persona of the channel. @@ -1925,6 +1950,31 @@ func (s ChannelProfileWebWidgetConfigSecuritySettings) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ChannelProfileWhatsAppConfig: Configuration specific to WhatsApp +// deployments. +type ChannelProfileWhatsAppConfig struct { + // PhoneNumberId: Required. The Meta phone number ID. + PhoneNumberId string `json:"phoneNumberId,omitempty"` + // WabaId: Required. The WhatsApp Business Account ID. + WabaId string `json:"wabaId,omitempty"` + // ForceSendFields is a list of field names (e.g. "PhoneNumberId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PhoneNumberId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ChannelProfileWhatsAppConfig) MarshalJSON() ([]byte, error) { + type NoMethod ChannelProfileWhatsAppConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Chunk: A chunk of content within a message. type Chunk struct { // AgentTransfer: Optional. Agent transfer event. @@ -1991,21 +2041,24 @@ func (s Citations) MarshalJSON() ([]byte, error) { // CitationsCitedChunk: Piece of cited information. type CitationsCitedChunk struct { + // RequiresAttribution: Whether this citation requires attribution to be shown + // to the end users. + RequiresAttribution bool `json:"requiresAttribution,omitempty"` // Text: Text used for citation. Text string `json:"text,omitempty"` // Title: Title of the cited document. Title string `json:"title,omitempty"` // Uri: URI used for citation. Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "Text") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "RequiresAttribution") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Text") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "RequiresAttribution") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -2949,11 +3002,17 @@ type Deployment struct { Etag string `json:"etag,omitempty"` // ExperimentConfig: Optional. Experiment configuration for the deployment. ExperimentConfig *ExperimentConfig `json:"experimentConfig,omitempty"` + // InstagramCredentials: Optional. Input only. Ephemeral Instagram credentials + // required when configuring a Instagram channel profile. + InstagramCredentials *InstagramCredentials `json:"instagramCredentials,omitempty"` // Name: Identifier. The resource name of the deployment. Format: // `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` Name string `json:"name,omitempty"` // UpdateTime: Output only. Timestamp when this deployment was last updated. UpdateTime string `json:"updateTime,omitempty"` + // WhatsappCredentials: Optional. Input only. Ephemeral WhatsApp credentials + // required when configuring a WhatsApp channel profile. + WhatsappCredentials *WhatsAppCredentials `json:"whatsappCredentials,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -3510,6 +3569,7 @@ type EvaluationGolden struct { // valuationExpectation}` EvaluationExpectations []string `json:"evaluationExpectations,omitempty"` // Turns: Required. The golden turns required to replay a golden conversation. + // The maximum number of allowed turns is 100. Turns []*EvaluationGoldenTurn `json:"turns,omitempty"` // ForceSendFields is a list of field names (e.g. "EvaluationExpectations") to // unconditionally include in API requests. By default, fields with empty or @@ -3543,6 +3603,18 @@ type EvaluationGoldenExpectation struct { // AgentTransfer: Optional. Check that the agent transferred the conversation // to a different agent. AgentTransfer *AgentTransfer `json:"agentTransfer,omitempty"` + // ComparisonType: Optional. The comparison type to use for the expectation + // check. + // + // Possible values: + // "COMPARISON_TYPE_UNSPECIFIED" - Unspecified comparison type. Behavior + // defaults to SEMANTIC_SIMILARITY for agent responses and tool calls. + // "EQUALS" - Exact string match. + // "CONTAINS" - Substring match (checks if the expected string is contained + // in the actual response). + // "SEMANTIC_SIMILARITY" - Semantic similarity match (evaluates meaning + // similarity using an LLM). + ComparisonType string `json:"comparisonType,omitempty"` // ExpectationLevelMetricsThresholdsOverride: Optional. Overrides metrics at // the step level. ExpectationLevelMetricsThresholdsOverride *EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds `json:"expectationLevelMetricsThresholdsOverride,omitempty"` @@ -3550,6 +3622,8 @@ type EvaluationGoldenExpectation struct { // of interest specified. Any parameters not specified will be hallucinated by // the LLM. MockToolResponse *ToolResponse `json:"mockToolResponse,omitempty"` + // NoToolCalls: Optional. Check that no tools were called during this turn. + NoToolCalls bool `json:"noToolCalls,omitempty"` // Note: Optional. A note for this requirement, useful in reporting when // specific checks fail. E.g., "Check_Payment_Tool_Called". Note string `json:"note,omitempty"` @@ -4193,9 +4267,11 @@ type EvaluationResult struct { // Possible values: // "EXECUTION_STATE_UNSPECIFIED" - Evaluation result execution state is not // specified. + // "QUEUED" - Evaluation result execution is queued. // "RUNNING" - Evaluation result execution is running. // "COMPLETED" - Evaluation result execution has completed. // "ERROR" - Evaluation result execution failed due to an internal error. + // "CANCELLED" - Evaluation result execution was cancelled. ExecutionState string `json:"executionState,omitempty"` // GoldenResult: Output only. The outcome of a golden evaluation. GoldenResult *EvaluationResultGoldenResult `json:"goldenResult,omitempty"` @@ -4996,9 +5072,11 @@ type EvaluationRun struct { // Possible values: // "EVALUATION_RUN_STATE_UNSPECIFIED" - Evaluation run state is not // specified. + // "QUEUED" - Indicates the evaluation run is queued. // "RUNNING" - Evaluation run is running. // "COMPLETED" - Evaluation run has completed. // "ERROR" - The evaluation run has an error. + // "CANCELLED" - Evaluation run was cancelled. State string `json:"state,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. @@ -5021,6 +5099,38 @@ func (s EvaluationRun) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// EvaluationRunCachingSettings: Settings for evaluation run caching. +type EvaluationRunCachingSettings struct { + // RunCachingMode: Optional. The caching mode to use for the evaluation run. If + // not set, default to FORCE_RUN. + // + // Possible values: + // "EVALUATION_RUN_CACHING_MODE_UNSPECIFIED" - The run caching mode is + // unspecified. + // "FORCE_RUN" - Always execute a full live simulation regardless of whether + // changelogs exist. + // "SKIP_IF_UNCHANGED" - Skip execution and copy previous verified results if + // no dependencies have mutated, the evaluation channel/run method are the + // same. + RunCachingMode string `json:"runCachingMode,omitempty"` + // ForceSendFields is a list of field names (e.g. "RunCachingMode") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "RunCachingMode") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s EvaluationRunCachingSettings) MarshalJSON() ([]byte, error) { + type NoMethod EvaluationRunCachingSettings + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // EvaluationRunEvaluationRunSummary: Contains the summary of passed and failed // result counts for a specific evaluation in an evaluation run. type EvaluationRunEvaluationRunSummary struct { @@ -5053,6 +5163,9 @@ func (s EvaluationRunEvaluationRunSummary) MarshalJSON() ([]byte, error) { // EvaluationRunProgress: The progress of the evaluation run. type EvaluationRunProgress struct { + // CancelledCount: Output only. Number of evaluation results that were + // cancelled. (EvaluationResult.execution_state is CANCELLED). + CancelledCount int64 `json:"cancelledCount,omitempty"` // CompletedCount: Output only. Number of evaluation results that finished // successfully. (EvaluationResult.execution_state is COMPLETED). CompletedCount int64 `json:"completedCount,omitempty"` @@ -5069,13 +5182,13 @@ type EvaluationRunProgress struct { PassedCount int64 `json:"passedCount,omitempty"` // TotalCount: Output only. Total number of evaluation results in this run. TotalCount int64 `json:"totalCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "CompletedCount") to + // ForceSendFields is a list of field names (e.g. "CancelledCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CompletedCount") to include in + // NullFields is a list of field names (e.g. "CancelledCount") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -5094,11 +5207,20 @@ type EvaluationScenario struct { // `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{e // valuationExpectation}` EvaluationExpectations []string `json:"evaluationExpectations,omitempty"` - // MaxTurns: Optional. The maximum number of turns to simulate. If not - // specified, the simulation will continue until the task is complete. + // MaxTurns: Optional. The maximum number of turns to simulate. The maximum + // allowed value is 100. The default value is 100. MaxTurns int64 `json:"maxTurns,omitempty"` // Rubrics: Required. The rubrics to score the scenario against. Rubrics []string `json:"rubrics,omitempty"` + // ScenarioExecutionMode: Optional. The execution mode for scenario + // evaluations. + // + // Possible values: + // "SCENARIO_EXECUTION_MODE_UNSPECIFIED" - Unspecified execution mode. + // Defaults to QUALITY_OPTIMIZED. + // "QUALITY_OPTIMIZED" - Quality optimized mode. + // "SPEED_OPTIMIZED" - Speed optimized mode. + ScenarioExecutionMode string `json:"scenarioExecutionMode,omitempty"` // ScenarioExpectations: Required. The ScenarioExpectations to evaluate the // conversation produced by the user simulation. ScenarioExpectations []*EvaluationScenarioExpectation `json:"scenarioExpectations,omitempty"` @@ -5228,6 +5350,9 @@ func (s EvaluationScenarioUserFact) MarshalJSON() ([]byte, error) { // EvaluationSettings: Settings for evaluation. type EvaluationSettings struct { + // EvaluationRunCachingSettings: Optional. The caching settings to use for the + // evaluation run. + EvaluationRunCachingSettings *EvaluationRunCachingSettings `json:"evaluationRunCachingSettings,omitempty"` // GoldenEvaluationToolCallBehaviour: Optional. Configures the default tool // call behaviour for golden evaluations. // @@ -5268,18 +5393,25 @@ type EvaluationSettings struct { // "REAL" - Use real tool calls. // "FAKE" - Use fake tool calls. ScenarioEvaluationToolCallBehaviour string `json:"scenarioEvaluationToolCallBehaviour,omitempty"` + // ScenarioExecutionMode: Optional. The execution mode for scenario + // evaluations. If not provided, will default to QUALITY_OPTIMIZED. + // + // Possible values: + // "SCENARIO_EXECUTION_MODE_UNSPECIFIED" - Unspecified execution mode. + // Defaults to QUALITY_OPTIMIZED. + // "QUALITY_OPTIMIZED" - Quality optimized mode. + // "SPEED_OPTIMIZED" - Speed optimized mode. + ScenarioExecutionMode string `json:"scenarioExecutionMode,omitempty"` // ForceSendFields is a list of field names (e.g. - // "GoldenEvaluationToolCallBehaviour") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted from - // API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. + // "EvaluationRunCachingSettings") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. - // "GoldenEvaluationToolCallBehaviour") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for - // more details. + // NullFields is a list of field names (e.g. "EvaluationRunCachingSettings") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -5430,6 +5562,12 @@ func (s ExecuteToolRequest) MarshalJSON() ([]byte, error) { // ExecuteToolResponse: Response message for ToolService.ExecuteTool. type ExecuteToolResponse struct { + // Citations: Citations that provide the source information for the tool's + // execution. + Citations *Citations `json:"citations,omitempty"` + // GoogleSearchSuggestions: The suggestions returned from Google Search as a + // result of invoking the Google Search Tool during the tool execution. + GoogleSearchSuggestions *GoogleSearchSuggestions `json:"googleSearchSuggestions,omitempty"` // Response: The tool execution result in JSON object format. Use "output" key // to specify tool response and "error" key to specify error details (if any). // If "output" and "error" keys are not specified, then whole "response" is @@ -5445,13 +5583,13 @@ type ExecuteToolResponse struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Response") to + // ForceSendFields is a list of field names (e.g. "Citations") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Response") to include in API + // NullFields is a list of field names (e.g. "Citations") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -5925,6 +6063,9 @@ type GenerateAppResourceRequest struct { // AppGenerationConfig: Optional. The configuration to be used to generate the // agents and tools. AppGenerationConfig *GenerateAppResourceRequestAppGenerationConfig `json:"appGenerationConfig,omitempty"` + // AppVersionContext: The app version context specifying the base snapshot and + // target agent. + AppVersionContext *GenerateAppResourceRequestAppVersionContext `json:"appVersionContext,omitempty"` // EvaluationGenerationConfig: Optional. The configuration to be used to // generate the evaluations. EvaluationGenerationConfig *GenerateAppResourceRequestEvaluationGenerationConfig `json:"evaluationGenerationConfig,omitempty"` @@ -6006,6 +6147,35 @@ func (s GenerateAppResourceRequestAppGenerationConfig) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GenerateAppResourceRequestAppVersionContext: The app version context +// specifying the base snapshot and target agent. +type GenerateAppResourceRequestAppVersionContext struct { + // AgentResourceName: The resource name of the target agent to be used by the + // LLM assistant. Format: + // `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + AgentResourceName string `json:"agentResourceName,omitempty"` + // AppVersion: The resource name of the app version to be used by the LLM + // assistant. Format: + // `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + AppVersion string `json:"appVersion,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgentResourceName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AgentResourceName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GenerateAppResourceRequestAppVersionContext) MarshalJSON() ([]byte, error) { + type NoMethod GenerateAppResourceRequestAppVersionContext + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GenerateAppResourceRequestEvaluationGenerationConfig: The configuration to // be used to generate the evaluations. type GenerateAppResourceRequestEvaluationGenerationConfig struct { @@ -7190,6 +7360,29 @@ func (s InputAudioConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// InstagramCredentials: Ephemeral Meta credentials for Instagram native +// integration. +type InstagramCredentials struct { + // AuthCode: Required. The Meta auth code provided by the embedded signup flow. + AuthCode string `json:"authCode,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthCode") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s InstagramCredentials) MarshalJSON() ([]byte, error) { + type NoMethod InstagramCredentials + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // LanguageSettings: Language settings of the app. type LanguageSettings struct { // DefaultLanguageCode: Optional. The default language code of the app. @@ -7394,6 +7587,289 @@ func (s LatencyReportToolLatency) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LfA2aV1APIKeySecurityScheme: Defines a security scheme using an API key. +type LfA2aV1APIKeySecurityScheme struct { + // Description: An optional description for the security scheme. + Description string `json:"description,omitempty"` + // Location: Required. The location of the API key. Valid values are "query", + // "header", or "cookie". + Location string `json:"location,omitempty"` + // Name: Required. The name of the header, query, or cookie parameter to be + // used. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1APIKeySecurityScheme) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1APIKeySecurityScheme + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1AgentCapabilities: Defines optional capabilities supported by an +// agent. +type LfA2aV1AgentCapabilities struct { + // ExtendedAgentCard: Indicates if the agent supports providing an extended + // agent card when authenticated. + ExtendedAgentCard bool `json:"extendedAgentCard,omitempty"` + // Extensions: A list of protocol extensions supported by the agent. + Extensions []*LfA2aV1AgentExtension `json:"extensions,omitempty"` + // PushNotifications: Indicates if the agent supports sending push + // notifications for asynchronous task updates. + PushNotifications bool `json:"pushNotifications,omitempty"` + // Streaming: Indicates if the agent supports streaming responses. + Streaming bool `json:"streaming,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExtendedAgentCard") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ExtendedAgentCard") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AgentCapabilities) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AgentCapabilities + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1AgentCard: A self-describing manifest for an agent. It provides +// essential metadata including the agent's identity, capabilities, skills, +// supported communication methods, and security requirements. Next ID: 20 +type LfA2aV1AgentCard struct { + // Capabilities: Required. A2A Capability set supported by the agent. + Capabilities *LfA2aV1AgentCapabilities `json:"capabilities,omitempty"` + // DefaultInputModes: Required. protolint:enable + // REPEATED_FIELD_NAMES_PLURALIZED The set of interaction modes that the agent + // supports across all skills. This can be overridden per skill. Defined as + // media types. + DefaultInputModes []string `json:"defaultInputModes,omitempty"` + // DefaultOutputModes: Required. The media types supported as outputs from this + // agent. + DefaultOutputModes []string `json:"defaultOutputModes,omitempty"` + // Description: Required. A human-readable description of the agent, assisting + // users and other agents in understanding its purpose. Example: "Agent that + // helps users with recipes and cooking." + Description string `json:"description,omitempty"` + // DocumentationUrl: A URL providing additional documentation about the agent. + DocumentationUrl string `json:"documentationUrl,omitempty"` + // IconUrl: Optional. A URL to an icon for the agent. + IconUrl string `json:"iconUrl,omitempty"` + // Name: Required. A human readable name for the agent. Example: "Recipe Agent" + Name string `json:"name,omitempty"` + // Provider: The service provider of the agent. + Provider *LfA2aV1AgentProvider `json:"provider,omitempty"` + // SecurityRequirements: Security requirements for contacting the agent. + SecurityRequirements []*LfA2aV1SecurityRequirement `json:"securityRequirements,omitempty"` + // SecuritySchemes: The security scheme details used for authenticating with + // this agent. + SecuritySchemes map[string]LfA2aV1SecurityScheme `json:"securitySchemes,omitempty"` + // Signatures: JSON Web Signatures computed for this `AgentCard`. + Signatures []*LfA2aV1AgentCardSignature `json:"signatures,omitempty"` + // Skills: Required. Skills represent the abilities of an agent. It is largely + // a descriptive concept but represents a more focused set of behaviors that + // the agent is likely to succeed at. + Skills []*LfA2aV1AgentSkill `json:"skills,omitempty"` + // SupportedInterfaces: Required. Ordered list of supported interfaces. The + // first entry is preferred. + SupportedInterfaces []*LfA2aV1AgentInterface `json:"supportedInterfaces,omitempty"` + // Version: Required. The version of the agent. Example: "1.0.0" + Version string `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Capabilities") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Capabilities") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AgentCard) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AgentCard + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1AgentCardSignature: AgentCardSignature represents a JWS signature of +// an AgentCard. This follows the JSON format of an RFC 7515 JSON Web Signature +// (JWS). +type LfA2aV1AgentCardSignature struct { + // Header: The unprotected JWS header values. + Header googleapi.RawMessage `json:"header,omitempty"` + // Protected: Required. Required. The protected JWS header for the signature. + // This is always a base64url-encoded JSON object. + Protected string `json:"protected,omitempty"` + // Signature: Required. The computed signature, base64url-encoded. + Signature string `json:"signature,omitempty"` + // ForceSendFields is a list of field names (e.g. "Header") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Header") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AgentCardSignature) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AgentCardSignature + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1AgentExtension: A declaration of a protocol extension supported by an +// Agent. +type LfA2aV1AgentExtension struct { + // Description: A human-readable description of how this agent uses the + // extension. + Description string `json:"description,omitempty"` + // Params: Optional. Extension-specific configuration parameters. + Params googleapi.RawMessage `json:"params,omitempty"` + // Required: If true, the client must understand and comply with the + // extension's requirements. + Required bool `json:"required,omitempty"` + // Uri: The unique URI identifying the extension. + Uri string `json:"uri,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AgentExtension) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AgentExtension + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1AgentInterface: Declares a combination of a target URL, transport and +// protocol version for interacting with the agent. This allows agents to +// expose the same functionality over multiple protocol binding mechanisms. +type LfA2aV1AgentInterface struct { + // ProtocolBinding: Required. The protocol binding supported at this URL. This + // is an open form string, to be easily extended for other protocol bindings. + // The core ones officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`. + ProtocolBinding string `json:"protocolBinding,omitempty"` + // ProtocolVersion: Required. The version of the A2A protocol this interface + // exposes. Use the latest supported minor version per major version. Examples: + // "0.3", "1.0" + ProtocolVersion string `json:"protocolVersion,omitempty"` + // Tenant: Tenant ID to be used in the request when calling the agent. + Tenant string `json:"tenant,omitempty"` + // Url: Required. The URL where this interface is available. Must be a valid + // absolute HTTPS URL in production. Example: "https://api.example.com/a2a/v1", + // "https://grpc.example.com/a2a" + Url string `json:"url,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProtocolBinding") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ProtocolBinding") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AgentInterface) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AgentInterface + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1AgentProvider: Represents the service provider of an agent. +type LfA2aV1AgentProvider struct { + // Organization: Required. The name of the agent provider's organization. + // Example: "Google" + Organization string `json:"organization,omitempty"` + // Url: Required. A URL for the agent provider's website or relevant + // documentation. Example: "https://ai.google.dev" + Url string `json:"url,omitempty"` + // ForceSendFields is a list of field names (e.g. "Organization") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Organization") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AgentProvider) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AgentProvider + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1AgentSkill: Represents a distinct capability or function that an +// agent can perform. +type LfA2aV1AgentSkill struct { + // Description: Required. A detailed description of the skill. + Description string `json:"description,omitempty"` + // Examples: Example prompts or scenarios that this skill can handle. + Examples []string `json:"examples,omitempty"` + // Id: Required. A unique identifier for the agent's skill. + Id string `json:"id,omitempty"` + // InputModes: The set of supported input media types for this skill, + // overriding the agent's defaults. + InputModes []string `json:"inputModes,omitempty"` + // Name: Required. A human-readable name for the skill. + Name string `json:"name,omitempty"` + // OutputModes: The set of supported output media types for this skill, + // overriding the agent's defaults. + OutputModes []string `json:"outputModes,omitempty"` + // SecurityRequirements: Security schemes necessary for this skill. + SecurityRequirements []*LfA2aV1SecurityRequirement `json:"securityRequirements,omitempty"` + // Tags: Required. A set of keywords describing the skill's capabilities. + Tags []string `json:"tags,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AgentSkill) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AgentSkill + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // LfA2aV1Artifact: Artifacts represent task outputs. type LfA2aV1Artifact struct { // ArtifactId: Required. Unique identifier (e.g. UUID) for the artifact. It @@ -7458,6 +7934,155 @@ func (s LfA2aV1AuthenticationInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LfA2aV1AuthorizationCodeOAuthFlow: Defines configuration details for the +// OAuth 2.0 Authorization Code flow. +type LfA2aV1AuthorizationCodeOAuthFlow struct { + // AuthorizationUrl: Required. The authorization URL to be used for this flow. + AuthorizationUrl string `json:"authorizationUrl,omitempty"` + // PkceRequired: Indicates if PKCE (RFC 7636) is required for this flow. PKCE + // should always be used for public clients and is recommended for all clients. + PkceRequired bool `json:"pkceRequired,omitempty"` + // RefreshUrl: The URL to be used for obtaining refresh tokens. + RefreshUrl string `json:"refreshUrl,omitempty"` + // Scopes: Required. The available scopes for the OAuth2 security scheme. + Scopes map[string]string `json:"scopes,omitempty"` + // TokenUrl: Required. The token URL to be used for this flow. + TokenUrl string `json:"tokenUrl,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthorizationUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthorizationUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1AuthorizationCodeOAuthFlow) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1AuthorizationCodeOAuthFlow + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1ClientCredentialsOAuthFlow: Defines configuration details for the +// OAuth 2.0 Client Credentials flow. +type LfA2aV1ClientCredentialsOAuthFlow struct { + // RefreshUrl: The URL to be used for obtaining refresh tokens. + RefreshUrl string `json:"refreshUrl,omitempty"` + // Scopes: Required. The available scopes for the OAuth2 security scheme. + Scopes map[string]string `json:"scopes,omitempty"` + // TokenUrl: Required. The token URL to be used for this flow. + TokenUrl string `json:"tokenUrl,omitempty"` + // ForceSendFields is a list of field names (e.g. "RefreshUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "RefreshUrl") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1ClientCredentialsOAuthFlow) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1ClientCredentialsOAuthFlow + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1DeviceCodeOAuthFlow: Defines configuration details for the OAuth 2.0 +// Device Code flow (RFC 8628). This flow is designed for input-constrained +// devices such as IoT devices, and CLI tools where the user authenticates on a +// separate device. +type LfA2aV1DeviceCodeOAuthFlow struct { + // DeviceAuthorizationUrl: Required. The device authorization endpoint URL. + DeviceAuthorizationUrl string `json:"deviceAuthorizationUrl,omitempty"` + // RefreshUrl: The URL to be used for obtaining refresh tokens. + RefreshUrl string `json:"refreshUrl,omitempty"` + // Scopes: Required. The available scopes for the OAuth2 security scheme. + Scopes map[string]string `json:"scopes,omitempty"` + // TokenUrl: Required. The token URL to be used for this flow. + TokenUrl string `json:"tokenUrl,omitempty"` + // ForceSendFields is a list of field names (e.g. "DeviceAuthorizationUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DeviceAuthorizationUrl") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1DeviceCodeOAuthFlow) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1DeviceCodeOAuthFlow + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1HTTPAuthSecurityScheme: Defines a security scheme using HTTP +// authentication. +type LfA2aV1HTTPAuthSecurityScheme struct { + // BearerFormat: A hint to the client to identify how the bearer token is + // formatted (e.g., "JWT"). Primarily for documentation purposes. + BearerFormat string `json:"bearerFormat,omitempty"` + // Description: An optional description for the security scheme. + Description string `json:"description,omitempty"` + // Scheme: Required. The name of the HTTP Authentication scheme to be used in + // the Authorization header, as defined in RFC7235 (e.g., "Bearer"). This value + // should be registered in the IANA Authentication Scheme registry. + Scheme string `json:"scheme,omitempty"` + // ForceSendFields is a list of field names (e.g. "BearerFormat") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BearerFormat") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1HTTPAuthSecurityScheme) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1HTTPAuthSecurityScheme + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1ImplicitOAuthFlow: Deprecated: Use Authorization Code + PKCE instead. +type LfA2aV1ImplicitOAuthFlow struct { + // AuthorizationUrl: The authorization URL to be used for this flow. This MUST + // be in the form of a URL. The OAuth2 standard requires the use of TLS + AuthorizationUrl string `json:"authorizationUrl,omitempty"` + // RefreshUrl: The URL to be used for obtaining refresh tokens. This MUST be in + // the form of a URL. The OAuth2 standard requires the use of TLS. + RefreshUrl string `json:"refreshUrl,omitempty"` + // Scopes: The available scopes for the OAuth2 security scheme. A map between + // the scope name and a short description for it. The map MAY be empty. + Scopes map[string]string `json:"scopes,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthorizationUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthorizationUrl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1ImplicitOAuthFlow) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1ImplicitOAuthFlow + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // LfA2aV1Message: `Message` is one unit of communication between client and // server. It can be associated with a context and/or a task. For server // messages, `context_id` must be provided, and `task_id` only if a task was @@ -7510,6 +8135,115 @@ func (s LfA2aV1Message) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LfA2aV1MutualTlsSecurityScheme: Defines a security scheme using mTLS +// authentication. +type LfA2aV1MutualTlsSecurityScheme struct { + // Description: An optional description for the security scheme. + Description string `json:"description,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1MutualTlsSecurityScheme) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1MutualTlsSecurityScheme + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1OAuth2SecurityScheme: Defines a security scheme using OAuth 2.0. +type LfA2aV1OAuth2SecurityScheme struct { + // Description: An optional description for the security scheme. + Description string `json:"description,omitempty"` + // Flows: Required. An object containing configuration information for the + // supported OAuth 2.0 flows. + Flows *LfA2aV1OAuthFlows `json:"flows,omitempty"` + // Oauth2MetadataUrl: URL to the OAuth2 authorization server metadata RFC 8414 + // (https://datatracker.ietf.org/doc/html/rfc8414). TLS is required. + Oauth2MetadataUrl string `json:"oauth2MetadataUrl,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1OAuth2SecurityScheme) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1OAuth2SecurityScheme + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1OAuthFlows: Defines the configuration for the supported OAuth 2.0 +// flows. +type LfA2aV1OAuthFlows struct { + // AuthorizationCode: Configuration for the OAuth Authorization Code flow. + AuthorizationCode *LfA2aV1AuthorizationCodeOAuthFlow `json:"authorizationCode,omitempty"` + // ClientCredentials: Configuration for the OAuth Client Credentials flow. + ClientCredentials *LfA2aV1ClientCredentialsOAuthFlow `json:"clientCredentials,omitempty"` + // DeviceCode: Configuration for the OAuth Device Code flow. + DeviceCode *LfA2aV1DeviceCodeOAuthFlow `json:"deviceCode,omitempty"` + // Implicit: Deprecated: Use Authorization Code + PKCE instead. + Implicit *LfA2aV1ImplicitOAuthFlow `json:"implicit,omitempty"` + // Password: Deprecated: Use Authorization Code + PKCE or Device Code. + Password *LfA2aV1PasswordOAuthFlow `json:"password,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthorizationCode") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthorizationCode") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1OAuthFlows) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1OAuthFlows + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1OpenIdConnectSecurityScheme: Defines a security scheme using OpenID +// Connect. +type LfA2aV1OpenIdConnectSecurityScheme struct { + // Description: An optional description for the security scheme. + Description string `json:"description,omitempty"` + // OpenIdConnectUrl: Required. The OpenID Connect Discovery URL + // (https://openid.net/specs/openid-connect-discovery-1_0.html) for the OIDC + // provider's metadata. + OpenIdConnectUrl string `json:"openIdConnectUrl,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1OpenIdConnectSecurityScheme) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1OpenIdConnectSecurityScheme + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // LfA2aV1Part: `Part` represents a container for a section of communication // content. Parts can be purely textual, some sort of file (image, video, etc) // or a structured data blob (i.e. JSON). @@ -7538,15 +8272,100 @@ type LfA2aV1Part struct { // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Data") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "Data") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1Part) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1Part + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1PasswordOAuthFlow: Deprecated: Use Authorization Code + PKCE or +// Device Code. +type LfA2aV1PasswordOAuthFlow struct { + // RefreshUrl: The URL to be used for obtaining refresh tokens. This MUST be in + // the form of a URL. The OAuth2 standard requires the use of TLS. + RefreshUrl string `json:"refreshUrl,omitempty"` + // Scopes: The available scopes for the OAuth2 security scheme. A map between + // the scope name and a short description for it. The map MAY be empty. + Scopes map[string]string `json:"scopes,omitempty"` + // TokenUrl: The token URL to be used for this flow. This MUST be in the form + // of a URL. The OAuth2 standard requires the use of TLS. + TokenUrl string `json:"tokenUrl,omitempty"` + // ForceSendFields is a list of field names (e.g. "RefreshUrl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "RefreshUrl") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1PasswordOAuthFlow) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1PasswordOAuthFlow + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1SecurityRequirement: Defines the security requirements for an agent. +type LfA2aV1SecurityRequirement struct { + // Schemes: A map of security schemes to the required scopes. + Schemes map[string]LfA2aV1StringList `json:"schemes,omitempty"` + // ForceSendFields is a list of field names (e.g. "Schemes") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Schemes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } -func (s LfA2aV1Part) MarshalJSON() ([]byte, error) { - type NoMethod LfA2aV1Part +func (s LfA2aV1SecurityRequirement) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1SecurityRequirement + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LfA2aV1SecurityScheme: Defines a security scheme that can be used to secure +// an agent's endpoints. This is a discriminated union type based on the +// OpenAPI 3.2 Security Scheme Object. See: +// https://spec.openapis.org/oas/v3.2.0.html#security-scheme-object +type LfA2aV1SecurityScheme struct { + // ApiKeySecurityScheme: API key-based authentication. + ApiKeySecurityScheme *LfA2aV1APIKeySecurityScheme `json:"apiKeySecurityScheme,omitempty"` + // HttpAuthSecurityScheme: HTTP authentication (Basic, Bearer, etc.). + HttpAuthSecurityScheme *LfA2aV1HTTPAuthSecurityScheme `json:"httpAuthSecurityScheme,omitempty"` + // MtlsSecurityScheme: Mutual TLS authentication. + MtlsSecurityScheme *LfA2aV1MutualTlsSecurityScheme `json:"mtlsSecurityScheme,omitempty"` + // Oauth2SecurityScheme: OAuth 2.0 authentication. + Oauth2SecurityScheme *LfA2aV1OAuth2SecurityScheme `json:"oauth2SecurityScheme,omitempty"` + // OpenIdConnectSecurityScheme: OpenID Connect authentication. + OpenIdConnectSecurityScheme *LfA2aV1OpenIdConnectSecurityScheme `json:"openIdConnectSecurityScheme,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApiKeySecurityScheme") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ApiKeySecurityScheme") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1SecurityScheme) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1SecurityScheme return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } @@ -7645,6 +8464,29 @@ func (s LfA2aV1SendMessageResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LfA2aV1StringList: protolint:disable REPEATED_FIELD_NAMES_PLURALIZED A list +// of strings. +type LfA2aV1StringList struct { + // List: The individual string values. + List []string `json:"list,omitempty"` + // ForceSendFields is a list of field names (e.g. "List") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "List") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LfA2aV1StringList) MarshalJSON() ([]byte, error) { + type NoMethod LfA2aV1StringList + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // LfA2aV1Task: `Task` is the core unit of action for A2A. It has a current // status and when results are created for the task they are stored in the // artifact. If there are multiple turns for a task, these are stored in @@ -8370,6 +9212,10 @@ type LoggingSettings struct { // of unredacted audio. This can be used to maintain a raw audio copy when // audio redaction is enabled, typically for auditing or monitoring purposes. UnredactedAudioRecordingConfig *AudioRecordingConfig `json:"unredactedAudioRecordingConfig,omitempty"` + // UnredactedBigqueryExportSettings: Optional. Configures the BigQuery export + // behaviors for the app. The unredacted conversation data will be exported to + // BigQuery tables if it is enabled. + UnredactedBigqueryExportSettings *BigQueryExportSettings `json:"unredactedBigqueryExportSettings,omitempty"` // ForceSendFields is a list of field names (e.g. "AudioRecordingConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -9374,6 +10220,9 @@ type RunEvaluationRequest struct { // `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evalu // ationDataset}` EvaluationDataset string `json:"evaluationDataset,omitempty"` + // EvaluationRunCachingSettings: Optional. The caching settings to use for the + // evaluation run. + EvaluationRunCachingSettings *EvaluationRunCachingSettings `json:"evaluationRunCachingSettings,omitempty"` // Evaluations: Optional. List of evaluations to run. Format: // `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` Evaluations []string `json:"evaluations,omitempty"` @@ -9425,6 +10274,43 @@ func (s RunEvaluationRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// RunEvaluationResultMetricsRequest: Request message for +// EvaluationService.RunEvaluationResultMetrics. +type RunEvaluationResultMetricsRequest struct { +} + +// RunEvaluationResultMetricsResponse: Response message for +// EvaluationService.RunEvaluationResultMetrics. +type RunEvaluationResultMetricsResponse struct { + // Status: Output only. The status of the evaluation result metrics + // calculation. + // + // Possible values: + // "OUTCOME_UNSPECIFIED" - Evaluation outcome is not specified. + // "PASS" - Evaluation/Expectation passed. In the case of an evaluation, this + // means that all expectations were met. + // "FAIL" - Evaluation/Expectation failed. In the case of an evaluation, this + // means that at least one expectation was not met. + // "SKIPPED" - Evaluation/Expectation was skipped. + Status string `json:"status,omitempty"` + // ForceSendFields is a list of field names (e.g. "Status") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Status") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RunEvaluationResultMetricsResponse) MarshalJSON() ([]byte, error) { + type NoMethod RunEvaluationResultMetricsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // RunSessionRequest: Request message for SessionService.RunSession. type RunSessionRequest struct { // Config: Required. The configuration for the session. @@ -9915,6 +10801,8 @@ type SessionOutput struct { // Citations: Citations that provide the source information for the agent's // generated text. Citations *Citations `json:"citations,omitempty"` + // Context: Context messages for external supervision guardrails. + Context []googleapi.RawMessage `json:"context,omitempty"` // DiagnosticInfo: Optional. Diagnostic information contains execution details // during the processing of the input. Only populated in the last SessionOutput // (with `turn_completed=true`) for each turn. @@ -10886,6 +11774,37 @@ func (s WebSearchQuery) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// WhatsAppCredentials: Ephemeral Meta credentials for WhatsApp native +// integration. +type WhatsAppCredentials struct { + // AuthCode: Required. The Meta auth code provided by the embedded signup flow. + AuthCode string `json:"authCode,omitempty"` + // BusinessAccountId: Required. The Business Account ID to use for the phone + // number. + BusinessAccountId string `json:"businessAccountId,omitempty"` + // PhoneNumber: Required. The phone number to register with WhatsApp. + PhoneNumber string `json:"phoneNumber,omitempty"` + // Pin: Required. The 6-digit PIN created by the user for two-step + // verification. + Pin string `json:"pin,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthCode") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s WhatsAppCredentials) MarshalJSON() ([]byte, error) { + type NoMethod WhatsAppCredentials + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // WidgetTool: Represents a widget tool that the agent can invoke. When the // tool is chosen by the agent, agent will return the widget to the client. The // client is responsible for processing the widget and generating the next user @@ -12165,6 +13084,117 @@ func (c *ProjectsLocationsAppsGetCall) Do(opts ...googleapi.CallOption) (*App, e return ret, nil } +type ProjectsLocationsAppsGetExtendedAgentCardCall struct { + s *Service + tenant string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetExtendedAgentCard: Gets the extended agent card for the authenticated +// agent. +// +// - tenant: Optional. Tenant ID, provided as a path parameter. +func (r *ProjectsLocationsAppsService) GetExtendedAgentCard(tenant string) *ProjectsLocationsAppsGetExtendedAgentCardCall { + c := &ProjectsLocationsAppsGetExtendedAgentCardCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.tenant = tenant + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAppsGetExtendedAgentCardCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsGetExtendedAgentCardCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsAppsGetExtendedAgentCardCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsGetExtendedAgentCardCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAppsGetExtendedAgentCardCall) Context(ctx context.Context) *ProjectsLocationsAppsGetExtendedAgentCardCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAppsGetExtendedAgentCardCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAppsGetExtendedAgentCardCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+tenant}/extendedAgentCard") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "tenant": c.tenant, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "ces.projects.locations.apps.getExtendedAgentCard", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "ces.projects.locations.apps.getExtendedAgentCard" call. +// Any non-2xx status code is an error. Response headers are in either +// *LfA2aV1AgentCard.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 *ProjectsLocationsAppsGetExtendedAgentCardCall) Do(opts ...googleapi.CallOption) (*LfA2aV1AgentCard, 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 := &LfA2aV1AgentCard{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "ces.projects.locations.apps.getExtendedAgentCard", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsAppsImportAppCall struct { s *Service parent string @@ -18120,6 +19150,111 @@ func (c *ProjectsLocationsAppsEvaluationsResultsListCall) Pages(ctx context.Cont } } +type ProjectsLocationsAppsEvaluationsResultsRunEvaluationResultMetricsCall struct { + s *Service + evaluationResultId string + runevaluationresultmetricsrequest *RunEvaluationResultMetricsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RunEvaluationResultMetrics: Runs metrics on an existing evaluation result. +// +// - evaluationResultId: The evaluation result to run metrics for. Format: +// `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation +// }/results/{evaluation_result_id}`. +func (r *ProjectsLocationsAppsEvaluationsResultsService) RunEvaluationResultMetrics(evaluationResultId string, runevaluationresultmetricsrequest *RunEvaluationResultMetricsRequest) *ProjectsLocationsAppsEvaluationsResultsRunEvaluationResultMetricsCall { + c := &ProjectsLocationsAppsEvaluationsResultsRunEvaluationResultMetricsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.evaluationResultId = evaluationResultId + c.runevaluationresultmetricsrequest = runevaluationresultmetricsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAppsEvaluationsResultsRunEvaluationResultMetricsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsEvaluationsResultsRunEvaluationResultMetricsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAppsEvaluationsResultsRunEvaluationResultMetricsCall) Context(ctx context.Context) *ProjectsLocationsAppsEvaluationsResultsRunEvaluationResultMetricsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAppsEvaluationsResultsRunEvaluationResultMetricsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAppsEvaluationsResultsRunEvaluationResultMetricsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.runevaluationresultmetricsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+evaluationResultId}:runEvaluationResultMetrics") + 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{ + "evaluationResultId": c.evaluationResultId, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "ces.projects.locations.apps.evaluations.results.runEvaluationResultMetrics", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "ces.projects.locations.apps.evaluations.results.runEvaluationResultMetrics" call. +// 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 *ProjectsLocationsAppsEvaluationsResultsRunEvaluationResultMetricsCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "ces.projects.locations.apps.evaluations.results.runEvaluationResultMetrics", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsAppsExamplesCreateCall struct { s *Service parent string diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index a72f1c79226..0abf2e0786d 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -644,7 +644,7 @@ "type": "string" }, "updateMask": { - "description": "Required. The updated field paths, comma separated if there are multiple. You can update the following fields for a space: `space_details`: Updates the space's description and guidelines. You must pass both description and guidelines in the update request as `SpaceDetails`. If you only want to update one of the fields, pass the existing value for the other field. `display_name`: Only supports updating the display name for spaces where `spaceType` field is `SPACE`. If you receive the error message `ALREADY_EXISTS`, try a different value. An existing space within the Google Workspace organization might already use this display name. `space_type`: Only supports changing a `GROUP_CHAT` space type to `SPACE`. Include `display_name` together with `space_type` in the update mask and ensure that the specified space has a non-empty display name and the `SPACE` space type. Including the `space_type` mask and the `SPACE` type in the specified space when updating the display name is optional if the existing space already has the `SPACE` type. Trying to update the space type in other ways results in an invalid argument error. `space_type` is not supported with `useAdminAccess`. `space_history_state`: Updates [space history settings](https://support.google.com/chat/answer/7664687) by turning history on or off for the space. Only supported if history settings are enabled for the Google Workspace organization. To update the space history state, you must omit all other field masks in your request. `space_history_state` is not supported with `useAdminAccess`. `access_settings.audience`: Updates the [access setting](https://support.google.com/chat/answer/11971020) of who can discover the space, join the space, and preview the messages in named space where `spaceType` field is `SPACE`. If the existing space has a target audience, you can remove the audience and restrict space access by omitting a value for this field mask. To update access settings for a space, the authenticating user must be a space manager and omit all other field masks in your request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.audience` is not supported with `useAdminAccess`. `permission_settings`: Supports changing the [permission settings](https://support.google.com/chat/answer/13340792) of a space. When updating permission settings, you can only specify `permissionSettings` field masks; you cannot update other field masks at the same time. The supported field masks include: - `permission_settings.manageMembersAndGroups` - `permission_settings.modifySpaceDetails` - `permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` - `permission_settings.manageApps` - `permission_settings.manageWebhooks` - `permission_settings.replyMessages`", + "description": "Required. The updated field paths, comma separated if there are multiple. You can update the following fields for a space: `space_details`: Updates the space's description and guidelines. You must pass both description and guidelines in the update request as `SpaceDetails`. If you only want to update one of the fields, pass the existing value for the other field. `display_name`: Only supports updating the display name for spaces where `spaceType` field is `SPACE`. If you receive the error message `ALREADY_EXISTS`, try a different value. An existing space within the Google Workspace organization might already use this display name. `space_type`: Only supports changing a `GROUP_CHAT` space type to `SPACE`. Include `display_name` together with `space_type` in the update mask and ensure that the specified space has a non-empty display name and the `SPACE` space type. Including the `space_type` mask and the `SPACE` type in the specified space when updating the display name is optional if the existing space already has the `SPACE` type. Trying to update the space type in other ways results in an invalid argument error. `space_type` is not supported with `useAdminAccess`. `space_history_state`: Updates [space history settings](https://support.google.com/chat/answer/7664687) by turning history on or off for the space. Only supported if history settings are enabled for the Google Workspace organization. To update the space history state, you must omit all other field masks in your request. `space_history_state` is not supported with `useAdminAccess`. `access_settings.audience`: Updates the [access setting](https://support.google.com/chat/answer/11971020) of who can discover the space, join the space, and preview the messages in named space where `spaceType` field is `SPACE`. If the existing space has a target audience, you can remove the audience and restrict space access by omitting a value for this field mask. To update access settings for a space, the authenticating user must be a space manager and omit all other field masks in your request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.audience` is not supported with `useAdminAccess`. `access_settings.access_permission_settings`: Updates the [access permission settings](https://support.google.com/chat/answer/11971020) of who can discover and join the space where `spaceType` field is `SPACE`. Principals allowed to join the space must also be allowed to discover it. To update access permission settings for a space, the authenticating user must be a space manager or assistant manager and omit all other field masks in the request. You can't update this field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more, see [Make a space discoverable to specific users](https://developers.google.com/workspace/chat/space-target-audience). `access_settings.access_permission_settings` is not supported with `useAdminAccess`. The supported field masks include: - `access_settings.access_permission_settings.discoverSpaceSetting` - `access_settings.access_permission_settings.joinSpaceSetting` `permission_settings`: Supports changing the [permission settings](https://support.google.com/chat/answer/13340792) of a space. When updating permission settings, you can only specify `permissionSettings` field masks; you cannot update other field masks at the same time. The supported field masks include: - `permission_settings.manageMembersAndGroups` - `permission_settings.modifySpaceDetails` - `permission_settings.toggleHistory` - `permission_settings.useAtMentionAll` - `permission_settings.manageApps` - `permission_settings.manageWebhooks` - `permission_settings.replyMessages`", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1463,11 +1463,11 @@ "resources": { "availability": { "methods": { - "getAvailability": { + "get": { "description": "Returns availability information for a human user in Google Chat. For example, this can be used to check if a user is online or away, or to retrieve their custom status message. This method only retrieves the authenticated user's availability. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.availability.readonly` - `https://www.googleapis.com/auth/chat.users.availability`", "flatPath": "v1/users/{usersId}/availability", "httpMethod": "GET", - "id": "chat.users.availability.getAvailability", + "id": "chat.users.availability.get", "parameterOrder": [ "name" ], @@ -1549,7 +1549,7 @@ ] }, "markAsDoNotDisturb": { - "description": "Marks user as`DO_NOT_DISTURB` in Google Chat. Sets a user's availability state to `DO_NOT_DISTURB` until a specified expiration time. When in `DO_NOT_DISTURB`, users typically won't receive notifications. This method only updates the authenticated user's availability. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.availability`", + "description": "Marks user as `DO_NOT_DISTURB` in Google Chat. Sets a user's availability state to `DO_NOT_DISTURB` until a specified expiration time. When in `DO_NOT_DISTURB`, users typically won't receive notifications. This method only updates the authenticated user's availability. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.availability`", "flatPath": "v1/users/{usersId}/availability:markAsDoNotDisturb", "httpMethod": "POST", "id": "chat.users.availability.markAsDoNotDisturb", @@ -1577,11 +1577,11 @@ "https://www.googleapis.com/auth/chat.users.readstate" ] }, - "updateAvailability": { + "patch": { "description": "Updates availability information for a human user. Only the `custom_status` field can be updated through this method. This method only updates the authenticated user's availability. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.availability`", "flatPath": "v1/users/{usersId}/availability", "httpMethod": "PATCH", - "id": "chat.users.availability.updateAvailability", + "id": "chat.users.availability.patch", "parameterOrder": [ "name" ], @@ -2008,13 +2008,46 @@ } } }, - "revision": "20260623", + "revision": "20260705", "rootUrl": "https://chat.googleapis.com/", "schemas": { + "AccessPermissionSetting": { + "description": "An access permission setting.", + "id": "AccessPermissionSetting", + "properties": { + "principals": { + "description": "Optional. Unordered list. Allowed principals for this permission.", + "items": { + "$ref": "Principal" + }, + "type": "array" + } + }, + "type": "object" + }, + "AccessPermissionSettings": { + "description": "Access permission settings for a space.", + "id": "AccessPermissionSettings", + "properties": { + "discoverSpaceSetting": { + "$ref": "AccessPermissionSetting", + "description": "Optional. Access permission setting for discovering the space." + }, + "joinSpaceSetting": { + "$ref": "AccessPermissionSetting", + "description": "Optional. Access permission setting for joining the space." + } + }, + "type": "object" + }, "AccessSettings": { "description": "Represents the [access setting](https://support.google.com/chat/answer/11971020) of the space.", "id": "AccessSettings", "properties": { + "accessPermissionSettings": { + "$ref": "AccessPermissionSettings", + "description": "Optional. Access permission settings for the space. To set the target audience when creating a space, specify the `accessSettings.audience` field in your request." + }, "accessState": { "description": "Output only. Indicates the access state of the space.", "enum": [ @@ -2316,6 +2349,17 @@ }, "type": "object" }, + "Audience": { + "description": "A target audience in Google Chat. A target audience represents a group of users within a Google Workspace organization, defined by an administrator. Target audiences are used to configure access and visibility settings for resources, such as making a space discoverable to a specific group of users. For more details, see [Target audiences](https://support.google.com/a/answer/9934697) and [Make a space discoverable to a target audience](https://developers.google.com/workspace/chat/space-target-audience).", + "id": "Audience", + "properties": { + "name": { + "description": "The resource name of the [target audience](https://support.google.com/a/answer/9934697) who can discover or join the space. For details, see [Make a space discoverable to a target audience](https://developers.google.com/workspace/chat/space-target-audience). Format: `audiences/{audience}` To use the default target audience for the Google Workspace organization, set to `audiences/default`.", + "type": "string" + } + }, + "type": "object" + }, "Availability": { "description": "Represents a user's current availability information in Google Chat, including their state (for example, Active, Away, Do Not Disturb) and any custom status.", "id": "Availability", @@ -5713,6 +5757,17 @@ }, "type": "object" }, + "Principal": { + "description": "A principal representing an entity granted access.", + "id": "Principal", + "properties": { + "audience": { + "$ref": "Audience", + "description": "An audience." + } + }, + "type": "object" + }, "QuotedMessageMetadata": { "description": "Information about a message that another message quotes. When you update a message, you can't add or replace the `quotedMessageMetadata` field, but you can remove it. For example usage, see [Quote another message](https://developers.google.com/workspace/chat/create-messages#quote-a-message).", "id": "QuotedMessageMetadata", diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index a8f02e213f5..e39778083e3 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -492,9 +492,61 @@ type UsersSpacesThreadsService struct { s *Service } +// AccessPermissionSetting: An access permission setting. +type AccessPermissionSetting struct { + // Principals: Optional. Unordered list. Allowed principals for this + // permission. + Principals []*Principal `json:"principals,omitempty"` + // ForceSendFields is a list of field names (e.g. "Principals") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Principals") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AccessPermissionSetting) MarshalJSON() ([]byte, error) { + type NoMethod AccessPermissionSetting + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AccessPermissionSettings: Access permission settings for a space. +type AccessPermissionSettings struct { + // DiscoverSpaceSetting: Optional. Access permission setting for discovering + // the space. + DiscoverSpaceSetting *AccessPermissionSetting `json:"discoverSpaceSetting,omitempty"` + // JoinSpaceSetting: Optional. Access permission setting for joining the space. + JoinSpaceSetting *AccessPermissionSetting `json:"joinSpaceSetting,omitempty"` + // ForceSendFields is a list of field names (e.g. "DiscoverSpaceSetting") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DiscoverSpaceSetting") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AccessPermissionSettings) MarshalJSON() ([]byte, error) { + type NoMethod AccessPermissionSettings + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // AccessSettings: Represents the access setting // (https://support.google.com/chat/answer/11971020) of the space. type AccessSettings struct { + // AccessPermissionSettings: Optional. Access permission settings for the + // space. To set the target audience when creating a space, specify the + // `accessSettings.audience` field in your request. + AccessPermissionSettings *AccessPermissionSettings `json:"accessPermissionSettings,omitempty"` // AccessState: Output only. Indicates the access state of the space. // // Possible values: @@ -532,15 +584,15 @@ type AccessSettings struct { // Setting the target audience requires user authentication // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). Audience string `json:"audience,omitempty"` - // ForceSendFields is a list of field names (e.g. "AccessState") to - // unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "AccessPermissionSettings") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AccessState") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AccessPermissionSettings") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -943,6 +995,40 @@ func (s AttachmentDataRef) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Audience: A target audience in Google Chat. A target audience represents a +// group of users within a Google Workspace organization, defined by an +// administrator. Target audiences are used to configure access and visibility +// settings for resources, such as making a space discoverable to a specific +// group of users. For more details, see Target audiences +// (https://support.google.com/a/answer/9934697) and Make a space discoverable +// to a target audience +// (https://developers.google.com/workspace/chat/space-target-audience). +type Audience struct { + // Name: The resource name of the target audience + // (https://support.google.com/a/answer/9934697) who can discover or join the + // space. For details, see Make a space discoverable to a target audience + // (https://developers.google.com/workspace/chat/space-target-audience). + // Format: `audiences/{audience}` To use the default target audience for the + // Google Workspace organization, set to `audiences/default`. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Audience) MarshalJSON() ([]byte, error) { + type NoMethod Audience + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Availability: Represents a user's current availability information in Google // Chat, including their state (for example, Active, Away, Do Not Disturb) and // any custom status. @@ -6046,6 +6132,28 @@ func (s PositionSectionResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Principal: A principal representing an entity granted access. +type Principal struct { + // Audience: An audience. + Audience *Audience `json:"audience,omitempty"` + // ForceSendFields is a list of field names (e.g. "Audience") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Audience") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Principal) MarshalJSON() ([]byte, error) { + type NoMethod Principal + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // QuotedMessageMetadata: Information about a message that another message // quotes. When you update a message, you can't add or replace the // `quotedMessageMetadata` field, but you can remove it. For example usage, see @@ -9386,6 +9494,20 @@ func (r *SpacesService) Patch(name string, space *Space) *SpacesPatchCall { // learn more, see Make a space discoverable to specific users // (https://developers.google.com/workspace/chat/space-target-audience). // `access_settings.audience` is not supported with `useAdminAccess`. +// `access_settings.access_permission_settings`: Updates the access permission +// settings (https://support.google.com/chat/answer/11971020) of who can +// discover and join the space where `spaceType` field is `SPACE`. Principals +// allowed to join the space must also be allowed to discover it. To update +// access permission settings for a space, the authenticating user must be a +// space manager or assistant manager and omit all other field masks in the +// request. You can't update this field if the space is in import mode +// (https://developers.google.com/workspace/chat/import-data-overview). To +// learn more, see Make a space discoverable to specific users +// (https://developers.google.com/workspace/chat/space-target-audience). +// `access_settings.access_permission_settings` is not supported with +// `useAdminAccess`. The supported field masks include: - +// `access_settings.access_permission_settings.discoverSpaceSetting` - +// `access_settings.access_permission_settings.joinSpaceSetting` // `permission_settings`: Supports changing the permission settings // (https://support.google.com/chat/answer/13340792) of a space. When updating // permission settings, you can only specify `permissionSettings` field masks; @@ -12595,7 +12717,7 @@ func (c *SpacesSpaceEventsListCall) Pages(ctx context.Context, f func(*ListSpace } } -type UsersAvailabilityGetAvailabilityCall struct { +type UsersAvailabilityGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -12604,9 +12726,9 @@ type UsersAvailabilityGetAvailabilityCall struct { header_ http.Header } -// GetAvailability: Returns availability information for a human user in Google -// Chat. For example, this can be used to check if a user is online or away, or -// to retrieve their custom status message. This method only retrieves the +// Get: Returns availability information for a human user in Google Chat. For +// example, this can be used to check if a user is online or away, or to +// retrieve their custom status message. This method only retrieves the // authenticated user's availability. Requires user authentication // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) // with one of the following authorization scopes @@ -12619,8 +12741,8 @@ type UsersAvailabilityGetAvailabilityCall struct { // API or Admin SDK directory API. For example, `users/123456789`. The user's // email address or `me` can also be used as an alias to refer to the caller. // For example, `users/user@example.com` or `users/me`. -func (r *UsersAvailabilityService) GetAvailability(name string) *UsersAvailabilityGetAvailabilityCall { - c := &UsersAvailabilityGetAvailabilityCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *UsersAvailabilityService) Get(name string) *UsersAvailabilityGetCall { + c := &UsersAvailabilityGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -12628,7 +12750,7 @@ func (r *UsersAvailabilityService) GetAvailability(name string) *UsersAvailabili // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *UsersAvailabilityGetAvailabilityCall) Fields(s ...googleapi.Field) *UsersAvailabilityGetAvailabilityCall { +func (c *UsersAvailabilityGetCall) Fields(s ...googleapi.Field) *UsersAvailabilityGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -12636,27 +12758,27 @@ func (c *UsersAvailabilityGetAvailabilityCall) Fields(s ...googleapi.Field) *Use // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *UsersAvailabilityGetAvailabilityCall) IfNoneMatch(entityTag string) *UsersAvailabilityGetAvailabilityCall { +func (c *UsersAvailabilityGetCall) IfNoneMatch(entityTag string) *UsersAvailabilityGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *UsersAvailabilityGetAvailabilityCall) Context(ctx context.Context) *UsersAvailabilityGetAvailabilityCall { +func (c *UsersAvailabilityGetCall) Context(ctx context.Context) *UsersAvailabilityGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *UsersAvailabilityGetAvailabilityCall) Header() http.Header { +func (c *UsersAvailabilityGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *UsersAvailabilityGetAvailabilityCall) doRequest(alt string) (*http.Response, error) { +func (c *UsersAvailabilityGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -12673,16 +12795,16 @@ func (c *UsersAvailabilityGetAvailabilityCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chat.users.availability.getAvailability", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chat.users.availability.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "chat.users.availability.getAvailability" call. +// Do executes the "chat.users.availability.get" call. // Any non-2xx status code is an error. Response headers are in either // *Availability.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 *UsersAvailabilityGetAvailabilityCall) Do(opts ...googleapi.CallOption) (*Availability, error) { +func (c *UsersAvailabilityGetCall) Do(opts ...googleapi.CallOption) (*Availability, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12712,7 +12834,7 @@ func (c *UsersAvailabilityGetAvailabilityCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chat.users.availability.getAvailability", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chat.users.availability.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } @@ -12954,7 +13076,7 @@ type UsersAvailabilityMarkAsDoNotDisturbCall struct { header_ http.Header } -// MarkAsDoNotDisturb: Marks user as`DO_NOT_DISTURB` in Google Chat. Sets a +// MarkAsDoNotDisturb: Marks user as `DO_NOT_DISTURB` in Google Chat. Sets a // user's availability state to `DO_NOT_DISTURB` until a specified expiration // time. When in `DO_NOT_DISTURB`, users typically won't receive notifications. // This method only updates the authenticated user's availability. Requires @@ -13060,7 +13182,7 @@ func (c *UsersAvailabilityMarkAsDoNotDisturbCall) Do(opts ...googleapi.CallOptio return ret, nil } -type UsersAvailabilityUpdateAvailabilityCall struct { +type UsersAvailabilityPatchCall struct { s *Service name string availability *Availability @@ -13069,10 +13191,9 @@ type UsersAvailabilityUpdateAvailabilityCall struct { header_ http.Header } -// UpdateAvailability: Updates availability information for a human user. Only -// the `custom_status` field can be updated through this method. This method -// only updates the authenticated user's availability. Requires user -// authentication +// Patch: Updates availability information for a human user. Only the +// `custom_status` field can be updated through this method. This method only +// updates the authenticated user's availability. Requires user authentication // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) // with one of the following authorization scopes // (https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): @@ -13083,8 +13204,8 @@ type UsersAvailabilityUpdateAvailabilityCall struct { // People API or Admin SDK directory API. For example, `users/123456789`. The // user's email address or `me` can also be used as an alias to refer to the // caller. For example, `users/user@example.com` or `users/me`. -func (r *UsersAvailabilityService) UpdateAvailability(name string, availability *Availability) *UsersAvailabilityUpdateAvailabilityCall { - c := &UsersAvailabilityUpdateAvailabilityCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *UsersAvailabilityService) Patch(name string, availability *Availability) *UsersAvailabilityPatchCall { + c := &UsersAvailabilityPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name c.availability = availability return c @@ -13092,7 +13213,7 @@ func (r *UsersAvailabilityService) UpdateAvailability(name string, availability // UpdateMask sets the optional parameter "updateMask": Required. The list of // fields to update. The only field that can be updated is `custom_status`. -func (c *UsersAvailabilityUpdateAvailabilityCall) UpdateMask(updateMask string) *UsersAvailabilityUpdateAvailabilityCall { +func (c *UsersAvailabilityPatchCall) UpdateMask(updateMask string) *UsersAvailabilityPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -13100,27 +13221,27 @@ func (c *UsersAvailabilityUpdateAvailabilityCall) UpdateMask(updateMask string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *UsersAvailabilityUpdateAvailabilityCall) Fields(s ...googleapi.Field) *UsersAvailabilityUpdateAvailabilityCall { +func (c *UsersAvailabilityPatchCall) Fields(s ...googleapi.Field) *UsersAvailabilityPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *UsersAvailabilityUpdateAvailabilityCall) Context(ctx context.Context) *UsersAvailabilityUpdateAvailabilityCall { +func (c *UsersAvailabilityPatchCall) Context(ctx context.Context) *UsersAvailabilityPatchCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *UsersAvailabilityUpdateAvailabilityCall) Header() http.Header { +func (c *UsersAvailabilityPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *UsersAvailabilityUpdateAvailabilityCall) doRequest(alt string) (*http.Response, error) { +func (c *UsersAvailabilityPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.availability) if err != nil { @@ -13138,16 +13259,16 @@ func (c *UsersAvailabilityUpdateAvailabilityCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chat.users.availability.updateAvailability", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "chat.users.availability.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "chat.users.availability.updateAvailability" call. +// Do executes the "chat.users.availability.patch" call. // Any non-2xx status code is an error. Response headers are in either // *Availability.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 *UsersAvailabilityUpdateAvailabilityCall) Do(opts ...googleapi.CallOption) (*Availability, error) { +func (c *UsersAvailabilityPatchCall) Do(opts ...googleapi.CallOption) (*Availability, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13177,7 +13298,7 @@ func (c *UsersAvailabilityUpdateAvailabilityCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chat.users.availability.updateAvailability", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "chat.users.availability.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } diff --git a/cloudbuild/v1/cloudbuild-api.json b/cloudbuild/v1/cloudbuild-api.json index c27306590fe..1ec5bb21eba 100644 --- a/cloudbuild/v1/cloudbuild-api.json +++ b/cloudbuild/v1/cloudbuild-api.json @@ -2583,7 +2583,7 @@ } } }, - "revision": "20260511", + "revision": "20260612", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -3362,7 +3362,8 @@ "N1_HIGHCPU_32", "E2_HIGHCPU_8", "E2_HIGHCPU_32", - "E2_MEDIUM" + "E2_MEDIUM", + "E2_STANDARD_2" ], "enumDeprecated": [ false, @@ -3370,6 +3371,7 @@ true, false, false, + false, false ], "enumDescriptions": [ @@ -3378,7 +3380,8 @@ "Highcpu machine with 32 CPUs.", "Highcpu e2 machine with 8 CPUs.", "Highcpu e2 machine with 32 CPUs.", - "E2 machine with 1 CPU." + "E2 machine with 1 CPU.", + "E2 machine with 2 CPUs." ], "type": "string" }, diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index 37d460828e1..af7d56cd085 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -1260,6 +1260,7 @@ type BuildOptions struct { // "E2_HIGHCPU_8" - Highcpu e2 machine with 8 CPUs. // "E2_HIGHCPU_32" - Highcpu e2 machine with 32 CPUs. // "E2_MEDIUM" - E2 machine with 1 CPU. + // "E2_STANDARD_2" - E2 machine with 2 CPUs. MachineType string `json:"machineType,omitempty"` // Pool: Optional. Specification for execution on a `WorkerPool`. See running // builds in a private pool diff --git a/cloudsupport/v2/cloudsupport-api.json b/cloudsupport/v2/cloudsupport-api.json index 087d1b13a8d..cc8e474fe5d 100644 --- a/cloudsupport/v2/cloudsupport-api.json +++ b/cloudsupport/v2/cloudsupport-api.json @@ -604,7 +604,7 @@ "supportEventSubscriptions": { "methods": { "create": { - "description": "Creates a support event subscription for an organization.", + "description": "Creates a support event subscription for an organization. EXAMPLES: cURL: ```shell parent=\"organizations/123456789\" curl \\ --request POST \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ --header 'Content-Type: application/json' \\ --data '{ \"pub_sub_topic\": \"projects/my-project/topics/my-topic\" }' \\ \"https://cloudsupport.googleapis.com/v2/$parent/supportEventSubscriptions\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = supportApiService.supportEventSubscriptions().create( parent=\"organizations/123456789\", body={ \"pub_sub_topic\": \"projects/my-project/topics/my-topic\" }, ) print(request.execute()) ```", "flatPath": "v2/{v2Id}/{v2Id1}/supportEventSubscriptions", "httpMethod": "POST", "id": "cloudsupport.supportEventSubscriptions.create", @@ -632,7 +632,7 @@ ] }, "delete": { - "description": "Soft deletes a support event subscription.", + "description": "Soft deletes a support event subscription. EXAMPLES: cURL: ```shell support_event_subscription=\"organizations/123456789/supportEventSubscriptions/abcdef123456\" curl \\ --request DELETE \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$support_event_subscription\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = supportApiService).supportEventSubscriptions().delete( name=\"organizations/123456789/supportEventSubscriptions/abcdef123456\" ) print(request.execute()) ```", "flatPath": "v2/{v2Id}/{v2Id1}/supportEventSubscriptions/{supportEventSubscriptionsId}", "httpMethod": "DELETE", "id": "cloudsupport.supportEventSubscriptions.delete", @@ -656,8 +656,36 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "expunge": { + "description": "Expunges a support event subscription.", + "flatPath": "v2/{v2Id}/{v2Id1}/supportEventSubscriptions/{supportEventSubscriptionsId}:expunge", + "httpMethod": "POST", + "id": "cloudsupport.supportEventSubscriptions.expunge", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the support event subscription to expunge. Format: organizations/{organization_id}/supportEventSubscriptions/{subscription_id}", + "location": "path", + "pattern": "^[^/]+/[^/]+/supportEventSubscriptions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}:expunge", + "request": { + "$ref": "ExpungeSupportEventSubscriptionRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { - "description": "Gets a support event subscription.", + "description": "Gets a support event subscription. EXAMPLES: cURL: ```shell support_event_subscription=\"organizations/123456789/supportEventSubscriptions/abcdef123456\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$support_event_subscription\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = supportApiService.supportEventSubscriptions().get( name=\"organizations/123456789/supportEventSubscriptions/abcdef123456\" ) print(request.execute()) ```", "flatPath": "v2/{v2Id}/{v2Id1}/supportEventSubscriptions/{supportEventSubscriptionsId}", "httpMethod": "GET", "id": "cloudsupport.supportEventSubscriptions.get", @@ -682,7 +710,7 @@ ] }, "list": { - "description": "Lists support event subscriptions.", + "description": "Lists support event subscriptions. EXAMPLES: cURL: ```shell parent=\"organizations/123456789\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$parent/supportEventSubscriptions\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = supportApiService.supportEventSubscriptions().list( parent=\"organizations/123456789\" ) print(request.execute()) ```", "flatPath": "v2/{v2Id}/{v2Id1}/supportEventSubscriptions", "httpMethod": "GET", "id": "cloudsupport.supportEventSubscriptions.list", @@ -728,7 +756,7 @@ ] }, "patch": { - "description": "Updates a support event subscription.", + "description": "Updates a support event subscription. EXAMPLES: cURL: ```shell support_event_subscription=\"organizations/123456789/supportEventSubscriptions/abcdef123456\" curl \\ --request PATCH \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ --header \"Content-Type: application/json\" \\ --data '{ \"pub_sub_topic\": \"projects/my-project/topics/new-topic\" }' \\ \"https://cloudsupport.googleapis.com/v2/$support_event_subscription?updateMask=pub_sub_topic\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = supportApiService.supportEventSubscriptions().patch( name=\"organizations/123456789/supportEventSubscriptions/abcdef123456\", body={ \"pub_sub_topic\": \"projects/my-project/topics/new-topic\" }, ) print(request.execute()) ```", "flatPath": "v2/{v2Id}/{v2Id1}/supportEventSubscriptions/{supportEventSubscriptionsId}", "httpMethod": "PATCH", "id": "cloudsupport.supportEventSubscriptions.patch", @@ -762,7 +790,7 @@ ] }, "undelete": { - "description": "Undeletes a support event subscription.", + "description": "Undeletes a support event subscription. EXAMPLES: cURL: ```shell support_event_subscription=\"organizations/123456789/supportEventSubscriptions/abcdef123456\" curl \\ --request POST \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$support_event_subscription:undelete\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = supportApiService.supportEventSubscriptions().undelete( name=\"organizations/123456789/supportEventSubscriptions/abcdef123456\" ) print(request.execute()) ``` Undeletes a support event subscription.", "flatPath": "v2/{v2Id}/{v2Id1}/supportEventSubscriptions/{supportEventSubscriptionsId}:undelete", "httpMethod": "POST", "id": "cloudsupport.supportEventSubscriptions.undelete", @@ -792,7 +820,7 @@ } } }, - "revision": "20260623", + "revision": "20260707", "rootUrl": "https://cloudsupport.googleapis.com/", "schemas": { "Actor": { @@ -1285,6 +1313,12 @@ }, "type": "object" }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", + "id": "Empty", + "properties": {}, + "type": "object" + }, "EscalateCaseRequest": { "description": "The request message for the EscalateCase endpoint.", "id": "EscalateCaseRequest", @@ -1323,6 +1357,12 @@ }, "type": "object" }, + "ExpungeSupportEventSubscriptionRequest": { + "description": "Request message for ExpungeSupportEventSubscription.", + "id": "ExpungeSupportEventSubscriptionRequest", + "properties": {}, + "type": "object" + }, "ListAttachmentsResponse": { "description": "The response message for the ListAttachments endpoint.", "id": "ListAttachmentsResponse", diff --git a/cloudsupport/v2/cloudsupport-gen.go b/cloudsupport/v2/cloudsupport-gen.go index d6088991ce2..5f46e298fed 100644 --- a/cloudsupport/v2/cloudsupport-gen.go +++ b/cloudsupport/v2/cloudsupport-gen.go @@ -778,6 +778,15 @@ func (s DownloadParameters) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` +} + // EscalateCaseRequest: The request message for the EscalateCase endpoint. type EscalateCaseRequest struct { // Escalation: The escalation information to be sent with the escalation @@ -834,6 +843,11 @@ func (s Escalation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ExpungeSupportEventSubscriptionRequest: Request message for +// ExpungeSupportEventSubscription. +type ExpungeSupportEventSubscriptionRequest struct { +} + // ListAttachmentsResponse: The response message for the ListAttachments // endpoint. type ListAttachmentsResponse struct { @@ -3334,7 +3348,20 @@ type SupportEventSubscriptionsCreateCall struct { header_ http.Header } -// Create: Creates a support event subscription for an organization. +// Create: Creates a support event subscription for an organization. EXAMPLES: +// cURL: ```shell parent="organizations/123456789" curl \ --request POST \ +// --header "Authorization: Bearer $(gcloud auth print-access-token)" \ +// --header 'Content-Type: application/json' \ --data '{ "pub_sub_topic": +// "projects/my-project/topics/my-topic" }' \ +// "https://cloudsupport.googleapis.com/v2/$parent/supportEventSubscriptions" +// ``` Python: ```python import googleapiclient.discovery api_version = "v2" +// supportApiService = googleapiclient.discovery.build( +// serviceName="cloudsupport", version=api_version, +// discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?ver +// sion={api_version}", ) request = +// supportApiService.supportEventSubscriptions().create( +// parent="organizations/123456789", body={ "pub_sub_topic": +// "projects/my-project/topics/my-topic" }, ) print(request.execute()) ``` // // - parent: The parent resource name where the support event subscription will // be created. Format: organizations/{organization_id}. @@ -3438,7 +3465,19 @@ type SupportEventSubscriptionsDeleteCall struct { header_ http.Header } -// Delete: Soft deletes a support event subscription. +// Delete: Soft deletes a support event subscription. EXAMPLES: cURL: ```shell +// support_event_subscription="organizations/123456789/supportEventSubscriptions +// /abcdef123456" curl \ --request DELETE \ --header "Authorization: Bearer +// $(gcloud auth print-access-token)" \ +// "https://cloudsupport.googleapis.com/v2/$support_event_subscription" ``` +// Python: ```python import googleapiclient.discovery api_version = "v2" +// supportApiService = googleapiclient.discovery.build( +// serviceName="cloudsupport", version=api_version, +// discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?ver +// sion={api_version}", ) request = +// supportApiService).supportEventSubscriptions().delete( +// name="organizations/123456789/supportEventSubscriptions/abcdef123456" ) +// print(request.execute()) ``` // // - name: The name of the support event subscription to delete. Format: // organizations/{organization_id}/supportEventSubscriptions/{subscription_id}. @@ -3529,6 +3568,110 @@ func (c *SupportEventSubscriptionsDeleteCall) Do(opts ...googleapi.CallOption) ( return ret, nil } +type SupportEventSubscriptionsExpungeCall struct { + s *Service + name string + expungesupporteventsubscriptionrequest *ExpungeSupportEventSubscriptionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Expunge: Expunges a support event subscription. +// +// - name: The name of the support event subscription to expunge. Format: +// organizations/{organization_id}/supportEventSubscriptions/{subscription_id}. +func (r *SupportEventSubscriptionsService) Expunge(name string, expungesupporteventsubscriptionrequest *ExpungeSupportEventSubscriptionRequest) *SupportEventSubscriptionsExpungeCall { + c := &SupportEventSubscriptionsExpungeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.expungesupporteventsubscriptionrequest = expungesupporteventsubscriptionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *SupportEventSubscriptionsExpungeCall) Fields(s ...googleapi.Field) *SupportEventSubscriptionsExpungeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *SupportEventSubscriptionsExpungeCall) Context(ctx context.Context) *SupportEventSubscriptionsExpungeCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *SupportEventSubscriptionsExpungeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *SupportEventSubscriptionsExpungeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.expungesupporteventsubscriptionrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:expunge") + 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, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "cloudsupport.supportEventSubscriptions.expunge", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudsupport.supportEventSubscriptions.expunge" call. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.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 *SupportEventSubscriptionsExpungeCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "cloudsupport.supportEventSubscriptions.expunge", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type SupportEventSubscriptionsGetCall struct { s *Service name string @@ -3538,7 +3681,19 @@ type SupportEventSubscriptionsGetCall struct { header_ http.Header } -// Get: Gets a support event subscription. +// Get: Gets a support event subscription. EXAMPLES: cURL: ```shell +// support_event_subscription="organizations/123456789/supportEventSubscriptions +// /abcdef123456" curl \ --header "Authorization: Bearer $(gcloud auth +// print-access-token)" \ +// "https://cloudsupport.googleapis.com/v2/$support_event_subscription" ``` +// Python: ```python import googleapiclient.discovery api_version = "v2" +// supportApiService = googleapiclient.discovery.build( +// serviceName="cloudsupport", version=api_version, +// discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?ver +// sion={api_version}", ) request = +// supportApiService.supportEventSubscriptions().get( +// name="organizations/123456789/supportEventSubscriptions/abcdef123456" ) +// print(request.execute()) ``` // // - name: The name of the support event subscription to retrieve. Format: // organizations/{organization_id}/supportEventSubscriptions/{subscription_id}. @@ -3649,7 +3804,17 @@ type SupportEventSubscriptionsListCall struct { header_ http.Header } -// List: Lists support event subscriptions. +// List: Lists support event subscriptions. EXAMPLES: cURL: ```shell +// parent="organizations/123456789" curl \ --header "Authorization: Bearer +// $(gcloud auth print-access-token)" \ +// "https://cloudsupport.googleapis.com/v2/$parent/supportEventSubscriptions" +// ``` Python: ```python import googleapiclient.discovery api_version = "v2" +// supportApiService = googleapiclient.discovery.build( +// serviceName="cloudsupport", version=api_version, +// discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?ver +// sion={api_version}", ) request = +// supportApiService.supportEventSubscriptions().list( +// parent="organizations/123456789" ) print(request.execute()) ``` // // - parent: The fully qualified name of the Cloud resource to list support // event subscriptions under. Format: organizations/{organization_id}. @@ -3815,7 +3980,22 @@ type SupportEventSubscriptionsPatchCall struct { header_ http.Header } -// Patch: Updates a support event subscription. +// Patch: Updates a support event subscription. EXAMPLES: cURL: ```shell +// support_event_subscription="organizations/123456789/supportEventSubscriptions +// /abcdef123456" curl \ --request PATCH \ --header "Authorization: Bearer +// $(gcloud auth print-access-token)" \ --header "Content-Type: +// application/json" \ --data '{ "pub_sub_topic": +// "projects/my-project/topics/new-topic" }' \ +// "https://cloudsupport.googleapis.com/v2/$support_event_subscription?updateMas +// k=pub_sub_topic" ``` Python: ```python import googleapiclient.discovery +// api_version = "v2" supportApiService = googleapiclient.discovery.build( +// serviceName="cloudsupport", version=api_version, +// discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?ver +// sion={api_version}", ) request = +// supportApiService.supportEventSubscriptions().patch( +// name="organizations/123456789/supportEventSubscriptions/abcdef123456", +// body={ "pub_sub_topic": "projects/my-project/topics/new-topic" }, ) +// print(request.execute()) ``` // // - name: Identifier. The resource name of the support event subscription. func (r *SupportEventSubscriptionsService) Patch(name string, supporteventsubscription *SupportEventSubscription) *SupportEventSubscriptionsPatchCall { @@ -3926,7 +4106,21 @@ type SupportEventSubscriptionsUndeleteCall struct { header_ http.Header } -// Undelete: Undeletes a support event subscription. +// Undelete: Undeletes a support event subscription. EXAMPLES: cURL: ```shell +// support_event_subscription="organizations/123456789/supportEventSubscriptions +// /abcdef123456" curl \ --request POST \ --header "Authorization: Bearer +// $(gcloud auth print-access-token)" \ +// "https://cloudsupport.googleapis.com/v2/$support_event_subscription:undelete" +// +// ``` Python: ```python import googleapiclient.discovery api_version = "v2" +// +// supportApiService = googleapiclient.discovery.build( +// serviceName="cloudsupport", version=api_version, +// discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?ver +// sion={api_version}", ) request = +// supportApiService.supportEventSubscriptions().undelete( +// name="organizations/123456789/supportEventSubscriptions/abcdef123456" ) +// print(request.execute()) ``` Undeletes a support event subscription. // // - name: The name of the support event subscription to undelete. Format: // organizations/{organization_id}/supportEventSubscriptions/{subscription_id}. diff --git a/cloudsupport/v2beta/cloudsupport-api.json b/cloudsupport/v2beta/cloudsupport-api.json index 2223c97ca32..c3b69d55628 100644 --- a/cloudsupport/v2beta/cloudsupport-api.json +++ b/cloudsupport/v2beta/cloudsupport-api.json @@ -671,7 +671,7 @@ "supportEventSubscriptions": { "methods": { "create": { - "description": "Creates a support event subscription for an organization.", + "description": "Creates a support event subscription for an organization. EXAMPLES: cURL: ```shell parent=\"organizations/123456789\" curl \\ --request POST \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ --header 'Content-Type: application/json' \\ --data '{ \"pub_sub_topic\": \"projects/my-project/topics/my-topic\" }' \\ \"https://cloudsupport.googleapis.com/v2beta/$parent/supportEventSubscriptions\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2beta\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = supportApiService.supportEventSubscriptions().create( parent=\"organizations/123456789\", body={ \"pub_sub_topic\": \"projects/my-project/topics/my-topic\" }, ) print(request.execute()) ```", "flatPath": "v2beta/{v2betaId}/{v2betaId1}/supportEventSubscriptions", "httpMethod": "POST", "id": "cloudsupport.supportEventSubscriptions.create", @@ -699,7 +699,7 @@ ] }, "delete": { - "description": "Soft deletes a support event subscription.", + "description": "Soft deletes a support event subscription. EXAMPLES: cURL: ```shell support_event_subscription=\"organizations/123456789/supportEventSubscriptions/abcdef123456\" curl \\ --request DELETE \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2beta/$support_event_subscription\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2beta\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = supportApiService).supportEventSubscriptions().delete( name=\"organizations/123456789/supportEventSubscriptions/abcdef123456\" ) print(request.execute()) ```", "flatPath": "v2beta/{v2betaId}/{v2betaId1}/supportEventSubscriptions/{supportEventSubscriptionsId}", "httpMethod": "DELETE", "id": "cloudsupport.supportEventSubscriptions.delete", @@ -723,8 +723,36 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "expunge": { + "description": "Expunges a support event subscription.", + "flatPath": "v2beta/{v2betaId}/{v2betaId1}/supportEventSubscriptions/{supportEventSubscriptionsId}:expunge", + "httpMethod": "POST", + "id": "cloudsupport.supportEventSubscriptions.expunge", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the support event subscription to expunge. Format: organizations/{organization_id}/supportEventSubscriptions/{subscription_id}", + "location": "path", + "pattern": "^[^/]+/[^/]+/supportEventSubscriptions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2beta/{+name}:expunge", + "request": { + "$ref": "ExpungeSupportEventSubscriptionRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { - "description": "Gets a support event subscription.", + "description": "Gets a support event subscription. EXAMPLES: cURL: ```shell support_event_subscription=\"organizations/123456789/supportEventSubscriptions/abcdef123456\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2beta/$support_event_subscription\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2beta\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = supportApiService.supportEventSubscriptions().get( name=\"organizations/123456789/supportEventSubscriptions/abcdef123456\" ) print(request.execute()) ```", "flatPath": "v2beta/{v2betaId}/{v2betaId1}/supportEventSubscriptions/{supportEventSubscriptionsId}", "httpMethod": "GET", "id": "cloudsupport.supportEventSubscriptions.get", @@ -749,7 +777,7 @@ ] }, "list": { - "description": "Lists support event subscriptions.", + "description": "Lists support event subscriptions. EXAMPLES: cURL: ```shell parent=\"organizations/123456789\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2beta/$parent/supportEventSubscriptions\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2beta\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = supportApiService.supportEventSubscriptions().list( parent=\"organizations/123456789\" ) print(request.execute()) ```", "flatPath": "v2beta/{v2betaId}/{v2betaId1}/supportEventSubscriptions", "httpMethod": "GET", "id": "cloudsupport.supportEventSubscriptions.list", @@ -795,7 +823,7 @@ ] }, "patch": { - "description": "Updates a support event subscription.", + "description": "Updates a support event subscription. EXAMPLES: cURL: ```shell support_event_subscription=\"organizations/123456789/supportEventSubscriptions/abcdef123456\" curl \\ --request PATCH \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ --header \"Content-Type: application/json\" \\ --data '{ \"pub_sub_topic\": \"projects/my-project/topics/new-topic\" }' \\ \"https://cloudsupport.googleapis.com/v2beta/$support_event_subscription?updateMask=pub_sub_topic\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2beta\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = supportApiService.supportEventSubscriptions().patch( name=\"organizations/123456789/supportEventSubscriptions/abcdef123456\", body={ \"pub_sub_topic\": \"projects/my-project/topics/new-topic\" }, ) print(request.execute()) ```", "flatPath": "v2beta/{v2betaId}/{v2betaId1}/supportEventSubscriptions/{supportEventSubscriptionsId}", "httpMethod": "PATCH", "id": "cloudsupport.supportEventSubscriptions.patch", @@ -829,7 +857,7 @@ ] }, "undelete": { - "description": "Undeletes a support event subscription.", + "description": "Undeletes a support event subscription. EXAMPLES: cURL: ```shell support_event_subscription=\"organizations/123456789/supportEventSubscriptions/abcdef123456\" curl \\ --request POST \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2beta/$support_event_subscription:undelete\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2beta\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = supportApiService.supportEventSubscriptions().undelete( name=\"organizations/123456789/supportEventSubscriptions/abcdef123456\" ) print(request.execute()) ``` Undeletes a support event subscription.", "flatPath": "v2beta/{v2betaId}/{v2betaId1}/supportEventSubscriptions/{supportEventSubscriptionsId}:undelete", "httpMethod": "POST", "id": "cloudsupport.supportEventSubscriptions.undelete", @@ -859,7 +887,7 @@ } } }, - "revision": "20260623", + "revision": "20260707", "rootUrl": "https://cloudsupport.googleapis.com/", "schemas": { "Actor": { @@ -1424,6 +1452,12 @@ }, "type": "object" }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", + "id": "Empty", + "properties": {}, + "type": "object" + }, "EscalateCaseRequest": { "description": "The request message for the EscalateCase endpoint.", "id": "EscalateCaseRequest", @@ -1462,6 +1496,12 @@ }, "type": "object" }, + "ExpungeSupportEventSubscriptionRequest": { + "description": "Request message for ExpungeSupportEventSubscription.", + "id": "ExpungeSupportEventSubscriptionRequest", + "properties": {}, + "type": "object" + }, "FeedItem": { "description": "A feed item associated with a support case.", "id": "FeedItem", diff --git a/cloudsupport/v2beta/cloudsupport-gen.go b/cloudsupport/v2beta/cloudsupport-gen.go index cbe41a2e3e0..2f78ce8cb3e 100644 --- a/cloudsupport/v2beta/cloudsupport-gen.go +++ b/cloudsupport/v2beta/cloudsupport-gen.go @@ -830,6 +830,15 @@ func (s EmailMessage) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use it as +// the request or the response type of an API method. For instance: service Foo +// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` +} + // EscalateCaseRequest: The request message for the EscalateCase endpoint. type EscalateCaseRequest struct { // Escalation: The escalation information to be sent with the escalation @@ -886,6 +895,11 @@ func (s Escalation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ExpungeSupportEventSubscriptionRequest: Request message for +// ExpungeSupportEventSubscription. +type ExpungeSupportEventSubscriptionRequest struct { +} + // FeedItem: A feed item associated with a support case. type FeedItem struct { // Attachment: Output only. An attachment attached to the case. @@ -3680,7 +3694,20 @@ type SupportEventSubscriptionsCreateCall struct { header_ http.Header } -// Create: Creates a support event subscription for an organization. +// Create: Creates a support event subscription for an organization. EXAMPLES: +// cURL: ```shell parent="organizations/123456789" curl \ --request POST \ +// --header "Authorization: Bearer $(gcloud auth print-access-token)" \ +// --header 'Content-Type: application/json' \ --data '{ "pub_sub_topic": +// "projects/my-project/topics/my-topic" }' \ +// "https://cloudsupport.googleapis.com/v2beta/$parent/supportEventSubscriptions +// " ``` Python: ```python import googleapiclient.discovery api_version = +// "v2beta" supportApiService = googleapiclient.discovery.build( +// serviceName="cloudsupport", version=api_version, +// discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?ver +// sion={api_version}", ) request = +// supportApiService.supportEventSubscriptions().create( +// parent="organizations/123456789", body={ "pub_sub_topic": +// "projects/my-project/topics/my-topic" }, ) print(request.execute()) ``` // // - parent: The parent resource name where the support event subscription will // be created. Format: organizations/{organization_id}. @@ -3784,7 +3811,19 @@ type SupportEventSubscriptionsDeleteCall struct { header_ http.Header } -// Delete: Soft deletes a support event subscription. +// Delete: Soft deletes a support event subscription. EXAMPLES: cURL: ```shell +// support_event_subscription="organizations/123456789/supportEventSubscriptions +// /abcdef123456" curl \ --request DELETE \ --header "Authorization: Bearer +// $(gcloud auth print-access-token)" \ +// "https://cloudsupport.googleapis.com/v2beta/$support_event_subscription" ``` +// Python: ```python import googleapiclient.discovery api_version = "v2beta" +// supportApiService = googleapiclient.discovery.build( +// serviceName="cloudsupport", version=api_version, +// discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?ver +// sion={api_version}", ) request = +// supportApiService).supportEventSubscriptions().delete( +// name="organizations/123456789/supportEventSubscriptions/abcdef123456" ) +// print(request.execute()) ``` // // - name: The name of the support event subscription to delete. Format: // organizations/{organization_id}/supportEventSubscriptions/{subscription_id}. @@ -3875,6 +3914,110 @@ func (c *SupportEventSubscriptionsDeleteCall) Do(opts ...googleapi.CallOption) ( return ret, nil } +type SupportEventSubscriptionsExpungeCall struct { + s *Service + name string + expungesupporteventsubscriptionrequest *ExpungeSupportEventSubscriptionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Expunge: Expunges a support event subscription. +// +// - name: The name of the support event subscription to expunge. Format: +// organizations/{organization_id}/supportEventSubscriptions/{subscription_id}. +func (r *SupportEventSubscriptionsService) Expunge(name string, expungesupporteventsubscriptionrequest *ExpungeSupportEventSubscriptionRequest) *SupportEventSubscriptionsExpungeCall { + c := &SupportEventSubscriptionsExpungeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.expungesupporteventsubscriptionrequest = expungesupporteventsubscriptionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *SupportEventSubscriptionsExpungeCall) Fields(s ...googleapi.Field) *SupportEventSubscriptionsExpungeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *SupportEventSubscriptionsExpungeCall) Context(ctx context.Context) *SupportEventSubscriptionsExpungeCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *SupportEventSubscriptionsExpungeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *SupportEventSubscriptionsExpungeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.expungesupporteventsubscriptionrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta/{+name}:expunge") + 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, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "cloudsupport.supportEventSubscriptions.expunge", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudsupport.supportEventSubscriptions.expunge" call. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.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 *SupportEventSubscriptionsExpungeCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "cloudsupport.supportEventSubscriptions.expunge", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type SupportEventSubscriptionsGetCall struct { s *Service name string @@ -3884,7 +4027,19 @@ type SupportEventSubscriptionsGetCall struct { header_ http.Header } -// Get: Gets a support event subscription. +// Get: Gets a support event subscription. EXAMPLES: cURL: ```shell +// support_event_subscription="organizations/123456789/supportEventSubscriptions +// /abcdef123456" curl \ --header "Authorization: Bearer $(gcloud auth +// print-access-token)" \ +// "https://cloudsupport.googleapis.com/v2beta/$support_event_subscription" ``` +// Python: ```python import googleapiclient.discovery api_version = "v2beta" +// supportApiService = googleapiclient.discovery.build( +// serviceName="cloudsupport", version=api_version, +// discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?ver +// sion={api_version}", ) request = +// supportApiService.supportEventSubscriptions().get( +// name="organizations/123456789/supportEventSubscriptions/abcdef123456" ) +// print(request.execute()) ``` // // - name: The name of the support event subscription to retrieve. Format: // organizations/{organization_id}/supportEventSubscriptions/{subscription_id}. @@ -3995,7 +4150,17 @@ type SupportEventSubscriptionsListCall struct { header_ http.Header } -// List: Lists support event subscriptions. +// List: Lists support event subscriptions. EXAMPLES: cURL: ```shell +// parent="organizations/123456789" curl \ --header "Authorization: Bearer +// $(gcloud auth print-access-token)" \ +// "https://cloudsupport.googleapis.com/v2beta/$parent/supportEventSubscriptions +// " ``` Python: ```python import googleapiclient.discovery api_version = +// "v2beta" supportApiService = googleapiclient.discovery.build( +// serviceName="cloudsupport", version=api_version, +// discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?ver +// sion={api_version}", ) request = +// supportApiService.supportEventSubscriptions().list( +// parent="organizations/123456789" ) print(request.execute()) ``` // // - parent: The fully qualified name of the Cloud resource to list support // event subscriptions under. Format: organizations/{organization_id}. @@ -4161,7 +4326,22 @@ type SupportEventSubscriptionsPatchCall struct { header_ http.Header } -// Patch: Updates a support event subscription. +// Patch: Updates a support event subscription. EXAMPLES: cURL: ```shell +// support_event_subscription="organizations/123456789/supportEventSubscriptions +// /abcdef123456" curl \ --request PATCH \ --header "Authorization: Bearer +// $(gcloud auth print-access-token)" \ --header "Content-Type: +// application/json" \ --data '{ "pub_sub_topic": +// "projects/my-project/topics/new-topic" }' \ +// "https://cloudsupport.googleapis.com/v2beta/$support_event_subscription?updat +// eMask=pub_sub_topic" ``` Python: ```python import googleapiclient.discovery +// api_version = "v2beta" supportApiService = googleapiclient.discovery.build( +// serviceName="cloudsupport", version=api_version, +// discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?ver +// sion={api_version}", ) request = +// supportApiService.supportEventSubscriptions().patch( +// name="organizations/123456789/supportEventSubscriptions/abcdef123456", +// body={ "pub_sub_topic": "projects/my-project/topics/new-topic" }, ) +// print(request.execute()) ``` // // - name: Identifier. The resource name of the support event subscription. func (r *SupportEventSubscriptionsService) Patch(name string, supporteventsubscription *SupportEventSubscription) *SupportEventSubscriptionsPatchCall { @@ -4272,7 +4452,19 @@ type SupportEventSubscriptionsUndeleteCall struct { header_ http.Header } -// Undelete: Undeletes a support event subscription. +// Undelete: Undeletes a support event subscription. EXAMPLES: cURL: ```shell +// support_event_subscription="organizations/123456789/supportEventSubscriptions +// /abcdef123456" curl \ --request POST \ --header "Authorization: Bearer +// $(gcloud auth print-access-token)" \ +// "https://cloudsupport.googleapis.com/v2beta/$support_event_subscription:undel +// ete" ``` Python: ```python import googleapiclient.discovery api_version = +// "v2beta" supportApiService = googleapiclient.discovery.build( +// serviceName="cloudsupport", version=api_version, +// discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?ver +// sion={api_version}", ) request = +// supportApiService.supportEventSubscriptions().undelete( +// name="organizations/123456789/supportEventSubscriptions/abcdef123456" ) +// print(request.execute()) ``` Undeletes a support event subscription. // // - name: The name of the support event subscription to undelete. Format: // organizations/{organization_id}/supportEventSubscriptions/{subscription_id}. diff --git a/composer/v1/composer-api.json b/composer/v1/composer-api.json index 2097c0cf4f1..836dd0dbfbe 100644 --- a/composer/v1/composer-api.json +++ b/composer/v1/composer-api.json @@ -1278,7 +1278,7 @@ } } }, - "revision": "20260325", + "revision": "20260622", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AirflowMetadataRetentionPolicyConfig": { @@ -2568,6 +2568,20 @@ "description": "Optional. Apache Airflow configuration properties to override. Property keys contain the section and property names, separated by a hyphen, for example \"core-dags_are_paused_at_creation\". Section names must not contain hyphens (\"-\"), opening square brackets (\"[\"), or closing square brackets (\"]\"). The property name must not be empty and must not contain an equals sign (\"=\") or semicolon (\";\"). Section and property names must not contain a period (\".\"). Apache Airflow configuration property names must be written in [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can contain any character, and can be written in any lower/upper case format. Certain Apache Airflow configuration property values are [blocked](/composer/docs/concepts/airflow-configurations), and cannot be overridden.", "type": "object" }, + "auditLogsReplicationMode": { + "description": "Optional. The selected mode of audit logs replication. This field is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", + "enum": [ + "AUDIT_LOGS_REPLICATION_MODE_UNSPECIFIED", + "AUDIT_LOGS_REPLICATION_DISABLED", + "AUDIT_LOGS_REPLICATION_ENABLED" + ], + "enumDescriptions": [ + "The user's choice of logs replication mode is unspecified.", + "The user opted out of audit logs replication.", + "The user opted in to audit logs replication." + ], + "type": "string" + }, "cloudDataLineageIntegration": { "$ref": "CloudDataLineageIntegration", "description": "Optional. The configuration for Cloud Data Lineage integration." diff --git a/composer/v1/composer-gen.go b/composer/v1/composer-gen.go index f113cc42b01..b10bc577625 100644 --- a/composer/v1/composer-gen.go +++ b/composer/v1/composer-gen.go @@ -2052,6 +2052,18 @@ type SoftwareConfig struct { // format. Certain Apache Airflow configuration property values are blocked // (/composer/docs/concepts/airflow-configurations), and cannot be overridden. AirflowConfigOverrides map[string]string `json:"airflowConfigOverrides,omitempty"` + // AuditLogsReplicationMode: Optional. The selected mode of audit logs + // replication. This field is supported for Cloud Composer environments in + // versions composer-3-airflow-*.*.*-build.* and newer. + // + // Possible values: + // "AUDIT_LOGS_REPLICATION_MODE_UNSPECIFIED" - The user's choice of logs + // replication mode is unspecified. + // "AUDIT_LOGS_REPLICATION_DISABLED" - The user opted out of audit logs + // replication. + // "AUDIT_LOGS_REPLICATION_ENABLED" - The user opted in to audit logs + // replication. + AuditLogsReplicationMode string `json:"auditLogsReplicationMode,omitempty"` // CloudDataLineageIntegration: Optional. The configuration for Cloud Data // Lineage integration. CloudDataLineageIntegration *CloudDataLineageIntegration `json:"cloudDataLineageIntegration,omitempty"` diff --git a/composer/v1beta1/composer-api.json b/composer/v1beta1/composer-api.json index f412bd50abb..d0a26ad5a92 100644 --- a/composer/v1beta1/composer-api.json +++ b/composer/v1beta1/composer-api.json @@ -1278,7 +1278,7 @@ } } }, - "revision": "20260525", + "revision": "20260622", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AirflowMetadataRetentionPolicyConfig": { @@ -2587,6 +2587,20 @@ "description": "Optional. Apache Airflow configuration properties to override. Property keys contain the section and property names, separated by a hyphen, for example \"core-dags_are_paused_at_creation\". Section names must not contain hyphens (\"-\"), opening square brackets (\"[\"), or closing square brackets (\"]\"). The property name must not be empty and must not contain an equals sign (\"=\") or semicolon (\";\"). Section and property names must not contain a period (\".\"). Apache Airflow configuration property names must be written in [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can contain any character, and can be written in any lower/upper case format. Certain Apache Airflow configuration property values are [blocked](/composer/docs/concepts/airflow-configurations), and cannot be overridden.", "type": "object" }, + "auditLogsReplicationMode": { + "description": "Optional. The selected mode of audit logs replication. This field is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", + "enum": [ + "AUDIT_LOGS_REPLICATION_MODE_UNSPECIFIED", + "AUDIT_LOGS_REPLICATION_DISABLED", + "AUDIT_LOGS_REPLICATION_ENABLED" + ], + "enumDescriptions": [ + "The user's choice of logs replication mode is unspecified.", + "The user opted out of audit logs replication.", + "The user opted in to audit logs replication." + ], + "type": "string" + }, "cloudDataLineageIntegration": { "$ref": "CloudDataLineageIntegration", "description": "Optional. The configuration for Cloud Data Lineage integration." diff --git a/composer/v1beta1/composer-gen.go b/composer/v1beta1/composer-gen.go index 0e2df3d3c81..1f3c7ba0d62 100644 --- a/composer/v1beta1/composer-gen.go +++ b/composer/v1beta1/composer-gen.go @@ -2075,6 +2075,18 @@ type SoftwareConfig struct { // format. Certain Apache Airflow configuration property values are blocked // (/composer/docs/concepts/airflow-configurations), and cannot be overridden. AirflowConfigOverrides map[string]string `json:"airflowConfigOverrides,omitempty"` + // AuditLogsReplicationMode: Optional. The selected mode of audit logs + // replication. This field is supported for Cloud Composer environments in + // versions composer-3-airflow-*.*.*-build.* and newer. + // + // Possible values: + // "AUDIT_LOGS_REPLICATION_MODE_UNSPECIFIED" - The user's choice of logs + // replication mode is unspecified. + // "AUDIT_LOGS_REPLICATION_DISABLED" - The user opted out of audit logs + // replication. + // "AUDIT_LOGS_REPLICATION_ENABLED" - The user opted in to audit logs + // replication. + AuditLogsReplicationMode string `json:"auditLogsReplicationMode,omitempty"` // CloudDataLineageIntegration: Optional. The configuration for Cloud Data // Lineage integration. CloudDataLineageIntegration *CloudDataLineageIntegration `json:"cloudDataLineageIntegration,omitempty"` diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index 04594f96cea..5020dd56a90 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -123,6 +123,234 @@ }, "protocol": "rest", "resources": { + "acceleratorPodControllers": { + "methods": { + "delete": { + "description": "Deletes the specified AcceleratorPodController resource.", + "flatPath": "projects/{project}/zones/{zone}/acceleratorPodControllers/{resourceId}", + "httpMethod": "DELETE", + "id": "compute.acceleratorPodControllers.delete", + "parameterOrder": [ + "project", + "zone", + "resourceId" + ], + "parameters": { + "project": { + "location": "path", + "required": true, + "type": "string" + }, + "requestId": { + "location": "query", + "type": "string" + }, + "resourceId": { + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "zone": { + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/acceleratorPodControllers/{resourceId}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "get": { + "description": "Gets the specified AcceleratorPodController resource.", + "flatPath": "projects/{project}/zones/{zone}/acceleratorPodControllers/{resourceId}", + "httpMethod": "GET", + "id": "compute.acceleratorPodControllers.get", + "parameterOrder": [ + "project", + "zone", + "resourceId" + ], + "parameters": { + "project": { + "location": "path", + "required": true, + "type": "string" + }, + "resourceId": { + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "zone": { + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/acceleratorPodControllers/{resourceId}", + "response": { + "$ref": "AcceleratorPodController" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "insert": { + "description": "Inserts a new AcceleratorPodController resource.", + "flatPath": "projects/{project}/zones/{zone}/acceleratorPodControllers", + "httpMethod": "POST", + "id": "compute.acceleratorPodControllers.insert", + "parameterOrder": [ + "project", + "zone" + ], + "parameters": { + "project": { + "location": "path", + "required": true, + "type": "string" + }, + "requestId": { + "location": "query", + "type": "string" + }, + "zone": { + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/acceleratorPodControllers", + "request": { + "$ref": "AcceleratorPodController" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "list": { + "description": "Lists the AcceleratorPodController resources in the specified zone.", + "flatPath": "projects/{project}/zones/{zone}/acceleratorPodControllers", + "httpMethod": "GET", + "id": "compute.acceleratorPodControllers.list", + "parameterOrder": [ + "project", + "zone" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most\nCompute resources support two types of filter expressions:\nexpressions that support regular expressions and expressions that follow\nAPI improvement proposal AIP-160.\nThese two types of filter expressions cannot be mixed in one request.\n\nIf you want to use AIP-160, your expression must specify the field name, an\noperator, and the value that you want to use for filtering. The value\nmust be a string, a number, or a boolean. The operator\nmust be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`.\n\nFor example, if you are filtering Compute Engine instances, you can\nexclude instances named `example-instance` by specifying\n`name != example-instance`.\n\nThe `:*` comparison can be used to test whether a key has been defined.\nFor example, to find all objects with `owner` label use:\n```\nlabels.owner:*\n```\n\nYou can also filter nested fields. For example, you could specify\n`scheduling.automaticRestart = false` to include instances only\nif they are not scheduled for automatic restarts. You can use filtering\non nested fields to filter based onresource labels.\n\nTo filter on multiple expressions, provide each separate expression within\nparentheses. For example:\n```\n(scheduling.automaticRestart = true)\n(cpuPlatform = \"Intel Skylake\")\n```\nBy default, each expression is an `AND` expression. However, you\ncan include `AND` and `OR` expressions explicitly.\nFor example:\n```\n(cpuPlatform = \"Intel Skylake\") OR\n(cpuPlatform = \"Intel Broadwell\") AND\n(scheduling.automaticRestart = true)\n```\n\nIf you want to use a regular expression, use the `eq` (equal) or `ne`\n(not equal) operator against a single un-parenthesized expression with or\nwithout quotes or against multiple parenthesized expressions. Examples:\n\n`fieldname eq unquoted literal`\n`fieldname eq 'single quoted literal'`\n`fieldname eq \"double quoted literal\"`\n`(fieldname1 eq literal) (fieldname2 ne \"literal\")`\n\nThe literal value is interpreted as a regular expression using GoogleRE2 library syntax.\nThe literal value must match the entire field.\n\nFor example, to filter for instances that do not end with name \"instance\",\nyou would use `name ne .*instance`.\n\nYou cannot combine constraints on multiple fields using regular\nexpressions.", + "location": "query", + "type": "string" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned.\nIf the number of available results is larger than `maxResults`,\nCompute Engine returns a `nextPageToken` that can be used to get\nthe next page of results in subsequent list requests. Acceptable values are\n`0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results\nare returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation\ntimestamp using `orderBy=\"creationTimestamp desc\"`. This sorts\nresults based on the `creationTimestamp` field in\nreverse chronological order (newest result first). Use this to sort\nresources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or\n`creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the\n`nextPageToken` returned by a previous list request to get\nthe next page of results.", + "location": "query", + "type": "string" + }, + "project": { + "location": "path", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case\nof failure. The default value is false.\n\nFor example, when partial success behavior is enabled, aggregatedList for a\nsingle zone scope either returns all resources in the zone or no resources,\nwith an error code.", + "location": "query", + "type": "boolean" + }, + "zone": { + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/acceleratorPodControllers", + "response": { + "$ref": "AcceleratorPodControllersListResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "patch": { + "description": "Patches the specified AcceleratorPodController resource.", + "flatPath": "projects/{project}/zones/{zone}/acceleratorPodControllers/{resourceId}", + "httpMethod": "PATCH", + "id": "compute.acceleratorPodControllers.patch", + "parameterOrder": [ + "project", + "zone", + "resourceId" + ], + "parameters": { + "project": { + "location": "path", + "required": true, + "type": "string" + }, + "requestId": { + "location": "query", + "type": "string" + }, + "resourceId": { + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "updateMask": { + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "zone": { + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/acceleratorPodControllers/{resourceId}", + "request": { + "$ref": "AcceleratorPodController" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + } + } + }, "acceleratorTypes": { "methods": { "aggregatedList": { @@ -2278,7 +2506,7 @@ ] }, "listUsable": { - "description": "Retrieves a list of all usable backend services in the specified project.", + "description": "Retrieves a list of all usable backend services for Application Load\nBalancers and Proxy Network Load Balancers in the specified project.\nBackend services for external and internal passthrough Network Load\nBalancers are not included in the response.", "flatPath": "projects/{project}/global/backendServices/listUsable", "httpMethod": "GET", "id": "compute.backendServices.listUsable", @@ -2800,18 +3028,73 @@ } } }, - "diskSettings": { + "dhcpOptionsConfigs": { "methods": { + "delete": { + "description": "Deletes the specified DhcpOptionsConfig in the given location", + "flatPath": "projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}", + "httpMethod": "DELETE", + "id": "compute.dhcpOptionsConfigs.delete", + "parameterOrder": [ + "project", + "region", + "dhcpOptionsConfig" + ], + "parameters": { + "dhcpOptionsConfig": { + "description": "Name of the DhcpOptionsConfig resource to delete.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region of this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so\nthat if you must retry your request, the server will know to ignore the\nrequest if it has already been completed.\n\nFor example, consider a situation where you make an initial request and\nthe request times out. If you make the request again with the same\nrequest ID, the server can check if original operation with the same\nrequest ID was received, and if so, will ignore the second request. This\nprevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be\na valid UUID with the exception that zero UUID is not supported\n(00000000-0000-0000-0000-000000000000).\nend_interface: MixerMutationRequestBuilder", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "get": { - "description": "Get Zonal Disk Settings.", - "flatPath": "projects/{project}/zones/{zone}/diskSettings", + "description": "Returns the specified DhcpOptionsConfig resource in the given location.", + "flatPath": "projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}", "httpMethod": "GET", - "id": "compute.diskSettings.get", + "id": "compute.dhcpOptionsConfigs.get", "parameterOrder": [ "project", - "zone" + "region", + "dhcpOptionsConfig" ], "parameters": { + "dhcpOptionsConfig": { + "description": "Name of the DhcpOptionsConfig resource to return.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, "project": { "description": "Project ID for this request.", "location": "path", @@ -2819,17 +3102,17 @@ "required": true, "type": "string" }, - "zone": { - "description": "Name of the zone for this request.", + "region": { + "description": "Name of the region of this request.", "location": "path", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "required": true, "type": "string" } }, - "path": "projects/{project}/zones/{zone}/diskSettings", + "path": "projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}", "response": { - "$ref": "DiskSettings" + "$ref": "DhcpOptionsConfig" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", @@ -2837,14 +3120,14 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, - "patch": { - "description": "Patch Zonal Disk Settings", - "flatPath": "projects/{project}/zones/{zone}/diskSettings", - "httpMethod": "PATCH", - "id": "compute.diskSettings.patch", + "insert": { + "description": "Creates a DhcpOptionsConfig in the specified project in the given location\nusing the parameters that are included in the request.", + "flatPath": "projects/{project}/regions/{region}/dhcpOptionsConfigs", + "httpMethod": "POST", + "id": "compute.dhcpOptionsConfigs.insert", "parameterOrder": [ "project", - "zone" + "region" ], "parameters": { "project": { @@ -2854,28 +3137,22 @@ "required": true, "type": "string" }, - "requestId": { - "description": "An optional request ID to identify requests. Specify a unique request ID so\nthat if you must retry your request, the server will know to ignore the\nrequest if it has already been completed.\n\nFor example, consider a situation where you make an initial request and\nthe request times out. If you make the request again with the same\nrequest ID, the server can check if original operation with the same\nrequest ID was received, and if so, will ignore the second request. This\nprevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be\na valid UUID with the exception that zero UUID is not supported\n(00000000-0000-0000-0000-000000000000).", - "location": "query", - "type": "string" - }, - "updateMask": { - "description": "update_mask indicates fields to be updated as part of this request.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - }, - "zone": { - "description": "The name of the zone for this request.", + "region": { + "description": "Name of the region of this request.", "location": "path", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "required": true, "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so\nthat if you must retry your request, the server will know to ignore the\nrequest if it has already been completed.\n\nFor example, consider a situation where you make an initial request and\nthe request times out. If you make the request again with the same\nrequest ID, the server can check if original operation with the same\nrequest ID was received, and if so, will ignore the second request. This\nprevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be\na valid UUID with the exception that zero UUID is not supported\n(00000000-0000-0000-0000-000000000000).\nend_interface: MixerMutationRequestBuilder", + "location": "query", + "type": "string" } }, - "path": "projects/{project}/zones/{zone}/diskSettings", + "path": "projects/{project}/regions/{region}/dhcpOptionsConfigs", "request": { - "$ref": "DiskSettings" + "$ref": "DhcpOptionsConfig" }, "response": { "$ref": "Operation" @@ -2884,18 +3161,15 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/compute" ] - } - } - }, - "diskTypes": { - "methods": { - "aggregatedList": { - "description": "Retrieves an aggregated list of disk types.\n\nTo prevent failure, it is recommended that you set the\n`returnPartialSuccess` parameter to `true`.", - "flatPath": "projects/{project}/aggregated/diskTypes", + }, + "list": { + "description": "Lists the DhcpOptionsConfigs for a project in the given location.", + "flatPath": "projects/{project}/regions/{region}/dhcpOptionsConfigs", "httpMethod": "GET", - "id": "compute.diskTypes.aggregatedList", + "id": "compute.dhcpOptionsConfigs.list", "parameterOrder": [ - "project" + "project", + "region" ], "parameters": { "filter": { @@ -2903,11 +3177,266 @@ "location": "query", "type": "string" }, - "includeAllScopes": { - "description": "Indicates whether every visible scope for each scope type (zone, region,\nglobal) should be included in the response. For new resource types added\nafter this field, the flag has no effect as new resource types will always\ninclude every visible scope for each scope type in response. For resource\ntypes which predate this field, if this flag is omitted or false, only\nscopes of the scope types where the resource type is expected to be found\nwill be included.", - "location": "query", - "type": "boolean" - }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned.\nIf the number of available results is larger than `maxResults`,\nCompute Engine returns a `nextPageToken` that can be used to get\nthe next page of results in subsequent list requests. Acceptable values are\n`0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results\nare returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation\ntimestamp using `orderBy=\"creationTimestamp desc\"`. This sorts\nresults based on the `creationTimestamp` field in\nreverse chronological order (newest result first). Use this to sort\nresources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or\n`creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the\n`nextPageToken` returned by a previous list request to get\nthe next page of results.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region of this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case\nof failure. The default value is false.\n\nFor example, when partial success behavior is enabled, aggregatedList for a\nsingle zone scope either returns all resources in the zone or no resources,\nwith an error code.", + "location": "query", + "type": "boolean" + } + }, + "path": "projects/{project}/regions/{region}/dhcpOptionsConfigs", + "response": { + "$ref": "DhcpOptionsConfigList" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "patch": { + "description": "Patches the specified DhcpOptionsConfig resource with the data included in\nthe request. This method supports PATCH\nsemantics and usesJSON merge\npatch format and processing rules.", + "flatPath": "projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}", + "httpMethod": "PATCH", + "id": "compute.dhcpOptionsConfigs.patch", + "parameterOrder": [ + "project", + "region", + "dhcpOptionsConfig" + ], + "parameters": { + "dhcpOptionsConfig": { + "description": "Name of the DhcpOptionsConfig resource to patch.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so\nthat if you must retry your request, the server will know to ignore the\nrequest if it has already been completed.\n\nFor example, consider a situation where you make an initial request and\nthe request times out. If you make the request again with the same\nrequest ID, the server can check if original operation with the same\nrequest ID was received, and if so, will ignore the second request. This\nprevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be\na valid UUID with the exception that zero UUID is not supported\n(00000000-0000-0000-0000-000000000000).\nend_interface: MixerMutationRequestBuilder", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "update_mask indicates fields to be updated as part of this request.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}", + "request": { + "$ref": "DhcpOptionsConfig" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "projects/{project}/regions/{region}/dhcpOptionsConfigs/{resource}/testIamPermissions", + "httpMethod": "POST", + "id": "compute.dhcpOptionsConfigs.testIamPermissions", + "parameterOrder": [ + "project", + "region", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "The name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/dhcpOptionsConfigs/{resource}/testIamPermissions", + "request": { + "$ref": "TestPermissionsRequest" + }, + "response": { + "$ref": "TestPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + } + } + }, + "diskSettings": { + "methods": { + "get": { + "description": "Get Zonal Disk Settings.", + "flatPath": "projects/{project}/zones/{zone}/diskSettings", + "httpMethod": "GET", + "id": "compute.diskSettings.get", + "parameterOrder": [ + "project", + "zone" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "zone": { + "description": "Name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/diskSettings", + "response": { + "$ref": "DiskSettings" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "patch": { + "description": "Patch Zonal Disk Settings", + "flatPath": "projects/{project}/zones/{zone}/diskSettings", + "httpMethod": "PATCH", + "id": "compute.diskSettings.patch", + "parameterOrder": [ + "project", + "zone" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so\nthat if you must retry your request, the server will know to ignore the\nrequest if it has already been completed.\n\nFor example, consider a situation where you make an initial request and\nthe request times out. If you make the request again with the same\nrequest ID, the server can check if original operation with the same\nrequest ID was received, and if so, will ignore the second request. This\nprevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be\na valid UUID with the exception that zero UUID is not supported\n(00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "update_mask indicates fields to be updated as part of this request.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/diskSettings", + "request": { + "$ref": "DiskSettings" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + } + } + }, + "diskTypes": { + "methods": { + "aggregatedList": { + "description": "Retrieves an aggregated list of disk types.\n\nTo prevent failure, it is recommended that you set the\n`returnPartialSuccess` parameter to `true`.", + "flatPath": "projects/{project}/aggregated/diskTypes", + "httpMethod": "GET", + "id": "compute.diskTypes.aggregatedList", + "parameterOrder": [ + "project" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most\nCompute resources support two types of filter expressions:\nexpressions that support regular expressions and expressions that follow\nAPI improvement proposal AIP-160.\nThese two types of filter expressions cannot be mixed in one request.\n\nIf you want to use AIP-160, your expression must specify the field name, an\noperator, and the value that you want to use for filtering. The value\nmust be a string, a number, or a boolean. The operator\nmust be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`.\n\nFor example, if you are filtering Compute Engine instances, you can\nexclude instances named `example-instance` by specifying\n`name != example-instance`.\n\nThe `:*` comparison can be used to test whether a key has been defined.\nFor example, to find all objects with `owner` label use:\n```\nlabels.owner:*\n```\n\nYou can also filter nested fields. For example, you could specify\n`scheduling.automaticRestart = false` to include instances only\nif they are not scheduled for automatic restarts. You can use filtering\non nested fields to filter based onresource labels.\n\nTo filter on multiple expressions, provide each separate expression within\nparentheses. For example:\n```\n(scheduling.automaticRestart = true)\n(cpuPlatform = \"Intel Skylake\")\n```\nBy default, each expression is an `AND` expression. However, you\ncan include `AND` and `OR` expressions explicitly.\nFor example:\n```\n(cpuPlatform = \"Intel Skylake\") OR\n(cpuPlatform = \"Intel Broadwell\") AND\n(scheduling.automaticRestart = true)\n```\n\nIf you want to use a regular expression, use the `eq` (equal) or `ne`\n(not equal) operator against a single un-parenthesized expression with or\nwithout quotes or against multiple parenthesized expressions. Examples:\n\n`fieldname eq unquoted literal`\n`fieldname eq 'single quoted literal'`\n`fieldname eq \"double quoted literal\"`\n`(fieldname1 eq literal) (fieldname2 ne \"literal\")`\n\nThe literal value is interpreted as a regular expression using GoogleRE2 library syntax.\nThe literal value must match the entire field.\n\nFor example, to filter for instances that do not end with name \"instance\",\nyou would use `name ne .*instance`.\n\nYou cannot combine constraints on multiple fields using regular\nexpressions.", + "location": "query", + "type": "string" + }, + "includeAllScopes": { + "description": "Indicates whether every visible scope for each scope type (zone, region,\nglobal) should be included in the response. For new resource types added\nafter this field, the flag has no effect as new resource types will always\ninclude every visible scope for each scope type in response. For resource\ntypes which predate this field, if this flag is omitted or false, only\nscopes of the scope types where the resource type is expected to be found\nwill be included.", + "location": "query", + "type": "boolean" + }, "maxResults": { "default": "500", "description": "The maximum number of results per page that should be returned.\nIf the number of available results is larger than `maxResults`,\nCompute Engine returns a `nextPageToken` that can be used to get\nthe next page of results in subsequent list requests. Acceptable values are\n`0` to `500`, inclusive. (Default: `500`)", @@ -30235,7 +30764,7 @@ ] }, "listUsable": { - "description": "Retrieves a list of all usable backend services in the specified project in\nthe given region.", + "description": "Retrieves a list of all usable backend services for Application Load\nBalancers and Proxy Network Load Balancers in the specified project in the\ngiven region. Backend services for external and internal passthrough\nNetwork Load Balancers are not included in the response.", "flatPath": "projects/{project}/regions/{region}/backendServices/listUsable", "httpMethod": "GET", "id": "compute.regionBackendServices.listUsable", @@ -57095,7 +57624,7 @@ } } }, - "revision": "20260625", + "revision": "20260629", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -57137,169 +57666,369 @@ }, "type": "object" }, - "AcceleratorTopologiesInfo": { - "description": "Info for accelerator topologies within a densely packed reservation.", - "id": "AcceleratorTopologiesInfo", - "properties": { - "acceleratorTopologyInfos": { - "description": "Info for each accelerator topology.", - "items": { - "$ref": "AcceleratorTopologiesInfoAcceleratorTopologyInfo" - }, - "type": "array" - } - }, - "type": "object" - }, - "AcceleratorTopologiesInfoAcceleratorTopologyInfo": { - "description": "Info for a slice of a given topology.", - "id": "AcceleratorTopologiesInfoAcceleratorTopologyInfo", - "properties": { - "acceleratorTopology": { - "description": "The accelerator topology.", - "type": "string" - }, - "infoPerTopologyStates": { - "description": "Info for each topology state.", - "items": { - "$ref": "AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState" - }, - "type": "array" - } - }, - "type": "object" - }, - "AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState": { - "description": "Info for each topology state.", - "id": "AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState", - "properties": { - "count": { - "description": "The number of accelerator topologies in this state.", - "format": "int32", - "type": "integer" - }, - "state": { - "description": "The state of the accelerator topology.", - "enum": [ - "AVAILABLE", - "DEGRADED", - "RUNNING", - "TOPOLOGY_STATE_UNSPECIFIED", - "UNHEALTHY" - ], - "enumDeprecated": [ - false, - false, - false, - false, - true - ], - "enumDescriptions": [ - "The accelerator topology is available.", - "The accelerator topology is degraded. The underlying capacity is not in a\nhealthy state and is not available.", - "The accelerator topology is running. If there are both running and\ndegraded hosts within a topology, DEGRADED state will be returned.", - "The state of the topology is unspecified.", - "This value has been deprecated and is no longer used." - ], - "type": "string" - } - }, - "type": "object" - }, - "AcceleratorType": { - "description": "Represents an Accelerator Type resource.\n\nGoogle Cloud Platform provides graphics processing units (accelerators) that\nyou can add to VM instances to improve or accelerate performance when working\nwith intensive workloads. For more information, readGPUs on Compute Engine.", - "id": "AcceleratorType", + "AcceleratorPodController": { + "description": "Represents a controller for managing out-of-band access to an accelerator\ndomain (e.g., NVLink Domain).", + "id": "AcceleratorPodController", "properties": { "creationTimestamp": { - "description": "[Output Only] Creation timestamp inRFC3339 text format.", + "description": "Output only. [Output Only] Creation timestamp inRFC3339 text format.", + "readOnly": true, "type": "string" }, - "deprecated": { - "$ref": "DeprecationStatus", - "description": "[Output Only] The deprecation status associated with this accelerator type." - }, "description": { - "description": "[Output Only] An optional textual description of the resource.", + "description": "An optional description of this resource.", "type": "string" }, "id": { - "description": "[Output Only] The unique identifier for the resource. This identifier is\ndefined by the server.", + "description": "Output only. [Output Only] The unique identifier for the resource. This identifier is\ndefined by the server.", "format": "uint64", + "readOnly": true, "type": "string" }, "kind": { - "default": "compute#acceleratorType", - "description": "Output only. [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types.", "readOnly": true, "type": "string" }, - "maximumCardsPerInstance": { - "description": "[Output Only] Maximum number of accelerator cards allowed per instance.", - "format": "int32", - "type": "integer" + "managementInterfaces": { + "additionalProperties": { + "$ref": "ManagementInterface" + }, + "description": "Map of management interfaces. Keys must be valid RFC1035 names and at most\n63 characters long.", + "type": "object" }, "name": { - "description": "[Output Only] Name of the resource.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "description": "Required. The name of the resource, provided by the client when initially creating\nthe resource. The resource name must be 1-63 characters long, and comply\nwithRFC1035.\nSpecifically, the name must match the regular expression\n`[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a\nlowercase letter, and all following characters must be a dash, lowercase\nletter, or digit, except the last character, which cannot be a dash.", "type": "string" }, "selfLink": { - "description": "Output only. [Output Only] Server-defined, fully qualified URL for this resource.", + "description": "Output only. [Output Only] Server-defined URL for the resource.", "readOnly": true, "type": "string" }, "selfLinkWithId": { - "description": "Output only. [Output Only] Server-defined URL for this resource's resource id.", + "description": "Output only. [Output Only] Server-defined URL for the resource with the resource ID.", "readOnly": true, "type": "string" }, + "target": { + "description": "Required. The target accelerator domain this controller manages.\nThis must be a resolvable identifier for the specific NVLink Domain or\nTPU system (e.g., a Reservation Sub-block URI).\nExample:\n\"projects/my-project/reservations/my-reservation/subBlocks/subblock-1\".", + "type": "string" + }, "zone": { - "description": "[Output Only] The name of the zone where the accelerator type resides,\nsuch as us-central1-a.\nYou must specify this field as part of the HTTP request URL. It is\nnot settable as a field in the request body.", + "description": "Output only. [Output Only] URL of the zone where the accelerator pod controller resides.", + "readOnly": true, "type": "string" } }, "type": "object" }, - "AcceleratorTypeAggregatedList": { - "id": "AcceleratorTypeAggregatedList", + "AcceleratorPodControllersListResponse": { + "id": "AcceleratorPodControllersListResponse", "properties": { - "id": { - "description": "[Output Only] Unique identifier for the resource; defined by the server.", - "type": "string" - }, "items": { - "additionalProperties": { - "$ref": "AcceleratorTypesScopedList", - "description": "[Output Only] Name of the scope containing this set of accelerator types." + "items": { + "$ref": "AcceleratorPodController" }, - "description": "A list of AcceleratorTypesScopedList resources.", - "type": "object" + "type": "array" }, "kind": { - "default": "compute#acceleratorTypeAggregatedList", - "description": "Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeAggregatedList for aggregated lists of\naccelerator types.", - "readOnly": true, "type": "string" }, "nextPageToken": { - "description": "[Output Only] This token allows you to get the next page of results for\nlist requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for\nthe query parameter pageToken in the next list request.\nSubsequent list requests will have their own nextPageToken to\ncontinue paging through the results.", "type": "string" }, "selfLink": { - "description": "Output only. [Output Only] Server-defined URL for this resource.", - "readOnly": true, "type": "string" }, - "unreachables": { - "description": "Output only. [Output Only] Unreachable resources.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" - }, "warning": { - "description": "[Output Only] Informational warning message.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute\nEngine returns NO_RESULTS_ON_PAGE if there\nare no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "LIST_OVERHEAD_QUOTA_EXCEED", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "QUOTA_INFO_UNAVAILABLE", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed\noperation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as\ndeprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as\nexperimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden.\nDeprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is\nnot of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "Resource can't be retrieved due to list overhead quota exceed\nwhich captures the amount of resources filtered out by\nuser-defined list filter.", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the\nnetwork.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an\nipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the\nsame network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite\nthe mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "Quota information is not available to client requests (e.g:\nregions.list).", + "The user attempted to use a resource that requires a TOS they have not\naccepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted\nbecause they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but\nits application does not make a lot of sense, because it allows only\nsingle instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key:\nvalue format. For example:\n\n\"data\": [\n {\n \"key\": \"scope\",\n \"value\": \"zones/us-east1-d\"\n }", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being\nreturned. For example, for warnings where there are no results in a list\nrequest for a particular zone, this key might be scope and\nthe key value might be the zone name. Other examples might be a key\nindicating a deprecated resource and a suggested replacement, or a\nwarning about invalid network settings (for example, if an instance\nattempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "AcceleratorTopologiesInfo": { + "description": "Info for accelerator topologies within a densely packed reservation.", + "id": "AcceleratorTopologiesInfo", + "properties": { + "acceleratorTopologyInfos": { + "description": "Info for each accelerator topology.", + "items": { + "$ref": "AcceleratorTopologiesInfoAcceleratorTopologyInfo" + }, + "type": "array" + } + }, + "type": "object" + }, + "AcceleratorTopologiesInfoAcceleratorTopologyInfo": { + "description": "Info for a slice of a given topology.", + "id": "AcceleratorTopologiesInfoAcceleratorTopologyInfo", + "properties": { + "acceleratorTopology": { + "description": "The accelerator topology.", + "type": "string" + }, + "infoPerTopologyStates": { + "description": "Info for each topology state.", + "items": { + "$ref": "AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState" + }, + "type": "array" + } + }, + "type": "object" + }, + "AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState": { + "description": "Info for each topology state.", + "id": "AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState", + "properties": { + "count": { + "description": "The number of accelerator topologies in this state.", + "format": "int32", + "type": "integer" + }, + "state": { + "description": "The state of the accelerator topology.", + "enum": [ + "AVAILABLE", + "DEGRADED", + "RUNNING", + "TOPOLOGY_STATE_UNSPECIFIED", + "UNHEALTHY" + ], + "enumDeprecated": [ + false, + false, + false, + false, + true + ], + "enumDescriptions": [ + "The accelerator topology is available.", + "The accelerator topology is degraded. The underlying capacity is not in a\nhealthy state and is not available.", + "The accelerator topology is running. If there are both running and\ndegraded hosts within a topology, DEGRADED state will be returned.", + "The state of the topology is unspecified.", + "This value has been deprecated and is no longer used." + ], + "type": "string" + } + }, + "type": "object" + }, + "AcceleratorType": { + "description": "Represents an Accelerator Type resource.\n\nGoogle Cloud Platform provides graphics processing units (accelerators) that\nyou can add to VM instances to improve or accelerate performance when working\nwith intensive workloads. For more information, readGPUs on Compute Engine.", + "id": "AcceleratorType", + "properties": { + "creationTimestamp": { + "description": "[Output Only] Creation timestamp inRFC3339 text format.", + "type": "string" + }, + "deprecated": { + "$ref": "DeprecationStatus", + "description": "[Output Only] The deprecation status associated with this accelerator type." + }, + "description": { + "description": "[Output Only] An optional textual description of the resource.", + "type": "string" + }, + "id": { + "description": "[Output Only] The unique identifier for the resource. This identifier is\ndefined by the server.", + "format": "uint64", + "type": "string" + }, + "kind": { + "default": "compute#acceleratorType", + "description": "Output only. [Output Only] The type of the resource. Alwayscompute#acceleratorType for accelerator types.", + "readOnly": true, + "type": "string" + }, + "maximumCardsPerInstance": { + "description": "[Output Only] Maximum number of accelerator cards allowed per instance.", + "format": "int32", + "type": "integer" + }, + "name": { + "description": "[Output Only] Name of the resource.", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "type": "string" + }, + "selfLink": { + "description": "Output only. [Output Only] Server-defined, fully qualified URL for this resource.", + "readOnly": true, + "type": "string" + }, + "selfLinkWithId": { + "description": "Output only. [Output Only] Server-defined URL for this resource's resource id.", + "readOnly": true, + "type": "string" + }, + "zone": { + "description": "[Output Only] The name of the zone where the accelerator type resides,\nsuch as us-central1-a.\nYou must specify this field as part of the HTTP request URL. It is\nnot settable as a field in the request body.", + "type": "string" + } + }, + "type": "object" + }, + "AcceleratorTypeAggregatedList": { + "id": "AcceleratorTypeAggregatedList", + "properties": { + "id": { + "description": "[Output Only] Unique identifier for the resource; defined by the server.", + "type": "string" + }, + "items": { + "additionalProperties": { + "$ref": "AcceleratorTypesScopedList", + "description": "[Output Only] Name of the scope containing this set of accelerator types." + }, + "description": "A list of AcceleratorTypesScopedList resources.", + "type": "object" + }, + "kind": { + "default": "compute#acceleratorTypeAggregatedList", + "description": "Output only. [Output Only] Type of resource. Alwayscompute#acceleratorTypeAggregatedList for aggregated lists of\naccelerator types.", + "readOnly": true, + "type": "string" + }, + "nextPageToken": { + "description": "[Output Only] This token allows you to get the next page of results for\nlist requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for\nthe query parameter pageToken in the next list request.\nSubsequent list requests will have their own nextPageToken to\ncontinue paging through the results.", + "type": "string" + }, + "selfLink": { + "description": "Output only. [Output Only] Server-defined URL for this resource.", + "readOnly": true, + "type": "string" + }, + "unreachables": { + "description": "Output only. [Output Only] Unreachable resources.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "warning": { + "description": "[Output Only] Informational warning message.", "properties": { "code": { "description": "[Output Only] A warning code, if applicable. For example, Compute\nEngine returns NO_RESULTS_ON_PAGE if there\nare no results in the response.", @@ -57765,6 +58494,7 @@ "type": "string" }, "publicDnsName": { + "deprecated": true, "description": "Output only. [Output Only] The public DNS domain name for the instance.", "readOnly": true, "type": "string" @@ -57778,6 +58508,7 @@ "type": "string" }, "setPublicDns": { + "deprecated": true, "description": "Specifies whether a public DNS 'A' record should be created for the\nexternal IP address of this access configuration.", "type": "boolean" }, @@ -57840,7 +58571,7 @@ "type": "string" }, "ipCollection": { - "description": "Reference to the source of external IPv4 addresses,\nlike a PublicDelegatedPrefix (PDP) for BYOIP.\nThe PDP must support enhanced IPv4 allocations.\n\nUse one of the following formats to specify a PDP when reserving an\nexternal IPv4 address using BYOIP.\n \n - \n Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name\n - \n Partial URL, as in\n \n \n - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name\n - regions/region/publicDelegatedPrefixes/pdp-name", + "description": "Reference to the source of IP addresses.\n\nIt supports the following cases:\n \n - \n Case 1: PublicDelegatedPrefix (PDP) for BYOIP external IPv4\n addresses. The PDP must support enhanced IPv4 allocations.\n - \n Case 2: Internal Range for global internal addresses.\n\n\n\nUse one of the following formats to specify the resource:\n\nFor a Public Delegated Prefix:\n \n - \n Full resource URL:https://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp\n - Partial URL:\n - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name\n - regions/region/publicDelegatedPrefixes/pdp-name\n \n\n\nFor an Internal Range:\n \n - Full URL:https://networkconnectivity.googleapis.com/v1/projects/project/locations/global/internalRanges/internal-range\n - Partial URL:projects/project/locations/global/internalRanges/internal-range", "type": "string" }, "ipVersion": { @@ -58516,6 +59247,18 @@ "description": "An alias IP range attached to an instance's network interface.", "id": "AliasIpRange", "properties": { + "candidateSubnetworkRangeNames": { + "description": "Identifies the candidate subnetwork range names for the alias\nIPs to be allocated from. When it is set, the IP would be allocated from\nany subnetwork range defined here if the IPs are available.\nOnly one of subnetwork_range_name or candidate_subnetwork_range_names\nshould be set.", + "items": { + "type": "string" + }, + "type": "array" + }, + "effectiveSubnetworkRangeName": { + "description": "Output only. [Output Only] The subnetwork range name where the IP is allocated.\nIt will be set to the subnetwork range where the IP is allocated only.", + "readOnly": true, + "type": "string" + }, "ipCidrRange": { "description": "The IP alias ranges to allocate for this interface. This IP CIDR range\nmust belong to the specified subnetwork and cannot contain IP addresses\nreserved by system or used by other network interfaces. This range may be\na single IP address (such as 10.2.3.4), a netmask (such as/24) or a CIDR-formatted string (such as10.1.2.0/24).", "type": "string" @@ -59218,6 +59961,17 @@ }, "type": "object" }, + "AuthenticationConfig": { + "description": "Authentication configuration for the management interface, typically using\nmTLS.", + "id": "AuthenticationConfig", + "properties": { + "trustConfig": { + "description": "Required. Resource name of the Cloud Certificate Manager TrustConfig used to validate\nclient certificates for mTLS.\nFormat: projects/{project}/locations/{location}/trustConfigs/{trust_config}", + "type": "string" + } + }, + "type": "object" + }, "AuthenticationPolicy": { "description": "[Deprecated] The authentication settings for the backend service.\nThe authentication settings for the backend service.", "id": "AuthenticationPolicy", @@ -63966,19 +64720,23 @@ "id": "CapacityHistoryResponse", "properties": { "location": { + "description": "Output only. The location (region or zone) for which the capacity history is returned.\nIt is returned as a URL - For example,https://www.googleapis.com/compute/v1/projects/project/zones/zone.", "readOnly": true, "type": "string" }, "machineType": { + "description": "The machine type for which the capacity history is returned.", "type": "string" }, "preemptionHistory": { + "description": "The preemption history for the requested machine type and location.", "items": { "$ref": "CapacityHistoryResponsePreemptionRecord" }, "type": "array" }, "priceHistory": { + "description": "The price history for the requested machine type and location.", "items": { "$ref": "CapacityHistoryResponsePriceRecord" }, @@ -63988,12 +64746,15 @@ "type": "object" }, "CapacityHistoryResponsePreemptionRecord": { + "description": "A record of Spot VM preemption history.", "id": "CapacityHistoryResponsePreemptionRecord", "properties": { "interval": { - "$ref": "Interval" + "$ref": "Interval", + "description": "The time interval for this preemption record." }, "preemptionRate": { + "description": "The preemption rate during the interval, representing the fraction of\nSpot VMs that were preempted. Range: 0.0 to 1.0. Preemption rate is\ncalculated as (total preempted Spots) / (total Spots that stopped\nrunning).", "format": "double", "type": "number" } @@ -64001,13 +64762,16 @@ "type": "object" }, "CapacityHistoryResponsePriceRecord": { + "description": "A record of price history.", "id": "CapacityHistoryResponsePriceRecord", "properties": { "interval": { - "$ref": "Interval" + "$ref": "Interval", + "description": "The time interval for this price record." }, "listPrice": { - "$ref": "Money" + "$ref": "Money", + "description": "The Spot VM list price during the interval." } }, "type": "object" @@ -65873,203 +66637,527 @@ }, "type": "object" }, - "CustomErrorResponsePolicy": { - "description": "Specifies the custom error response policy that must be applied when the\nbackend service or backend bucket responds with an error.", - "id": "CustomErrorResponsePolicy", - "properties": { - "errorResponseRules": { - "description": "Specifies rules for returning error responses.\n\nIn a given policy, if you specify rules for both a range of error codes\nas well as rules for specific error codes then rules with specific error\ncodes have a higher priority. For example, assume that you configure a rule\nfor 401 (Un-authorized) code, and another for all 4 series\nerror codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.\nHowever if the backend service returns a 403, the rule for4xx takes effect.", - "items": { - "$ref": "CustomErrorResponsePolicyCustomErrorResponseRule" - }, - "type": "array" - }, - "errorService": { - "description": "The full or partial URL to the BackendBucket resource that\ncontains the custom error content. Examples are:\n \n \n - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket\n - compute/v1/projects/project/global/backendBuckets/myBackendBucket\n - global/backendBuckets/myBackendBucket\n\nIf errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,\nan errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService. \n\nIf load balancer cannot reach\nthe backendBucket, a simple Not Found Error will\nbe returned, with the original response code (oroverrideResponseCode if configured).\n\nerrorService is not supported for internal or regionalHTTP/HTTPS load balancers.", - "type": "string" - } - }, - "type": "object" - }, - "CustomErrorResponsePolicyCustomErrorResponseRule": { - "description": "Specifies the mapping between the response code that will be returned along\nwith the custom error content and the response code returned by the backend\nservice.", - "id": "CustomErrorResponsePolicyCustomErrorResponseRule", - "properties": { - "matchResponseCodes": { - "description": "Valid values include:\n \n \n - A number between 400 and 599: For example\n 401 or 503, in which case the load balancer\n applies the policy if the error code exactly matches this value.\n - 5xx: Load Balancer will apply the policy if the\n backend service responds with any response code in the range of\n 500 to 599. \n - 4xx: Load\n Balancer will apply the policy if the backend service responds with any\n response code in the range of 400 to\n 499.\n\nValues must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.", - "items": { - "type": "string" - }, - "type": "array" - }, - "overrideResponseCode": { - "description": "The HTTP status code returned with the response containing the custom\nerror content. If overrideResponseCode is not supplied, the\nsame response code returned by the original backend bucket or backend\nservice is returned to the client.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "The full path to a file within backendBucket . For example:/errors/defaultError.html \n\npath must start\nwith a leading slash. path cannot have trailing slashes.\n\nIf the file is not available in backendBucket or the\nload balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client. \n\nThe value must\nbe from 1 to 1024 characters", - "type": "string" - } - }, - "type": "object" - }, - "CustomerEncryptionKey": { - "id": "CustomerEncryptionKey", - "properties": { - "kmsKeyName": { - "description": "The name of the encryption key that is stored in Google Cloud KMS.\nFor example:\n\n\"kmsKeyName\": \"projects/kms_project_id/locations/region/keyRings/\nkey_region/cryptoKeys/key\n\nThe fully-qualifed key name may be returned for resource GET requests. For \nexample: \n\n\"kmsKeyName\": \"projects/kms_project_id/locations/region/keyRings/\nkey_region/cryptoKeys/key\n/cryptoKeyVersions/1", - "type": "string" - }, - "kmsKeyServiceAccount": { - "description": "The service account being used for the encryption request for the given KMS\nkey. If absent, the Compute Engine default service account is used.\nFor example:\n\n\"kmsKeyServiceAccount\": \"name@project_id.iam.gserviceaccount.com/", - "type": "string" - }, - "rawKey": { - "description": "Specifies a 256-bit customer-supplied\nencryption key, encoded in RFC\n4648 base64 to either encrypt or decrypt this resource. You can\nprovide either the rawKey or thersaEncryptedKey.\nFor example:\n\n\"rawKey\":\n\"SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=\"", - "type": "string" - }, - "rsaEncryptedKey": { - "description": "Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit\ncustomer-supplied encryption key to either encrypt or decrypt this\nresource. You can provide either the rawKey or thersaEncryptedKey.\nFor example:\n\n\"rsaEncryptedKey\":\n\"ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH\nz0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD\nD6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==\"\n\nThe key must meet the following requirements before you can provide it to \nCompute Engine: \n \n 1. The key is wrapped using a RSA public key certificate provided by \n Google. \n 2. After being wrapped, the key must be encoded in RFC 4648 base64 \n encoding. \n\nGets the RSA public key certificate provided by Google at: \n\n\nhttps://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem", - "type": "string" - }, - "sha256": { - "description": "[Output only] TheRFC\n4648 base64 encoded SHA-256 hash of the customer-supplied\nencryption key that protects this resource.", - "type": "string" - } - }, - "type": "object" - }, - "CustomerEncryptionKeyProtectedDisk": { - "id": "CustomerEncryptionKeyProtectedDisk", - "properties": { - "diskEncryptionKey": { - "$ref": "CustomerEncryptionKey", - "description": "Decrypts data associated with the disk with acustomer-supplied\nencryption key." - }, - "source": { - "description": "Specifies a valid partial or full URL to an existing Persistent Disk\nresource. This field is only applicable for persistent disks.\nFor example:\n\n\"source\": \"/compute/v1/projects/project_id/zones/zone/disks/\ndisk_name", - "type": "string" - } - }, - "type": "object" - }, - "Date": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of\nday and time zone are either specified elsewhere or are insignificant. The\ndate is relative to the Gregorian Calendar. This can represent one of the\nfollowing:\n\n* A full date, with non-zero year, month, and day values.\n* A month and day, with a zero year (for example, an anniversary).\n* A year on its own, with a zero month and a zero day.\n* A year and month, with a zero day (for example, a credit card expiration\n date).\n\nRelated types:\n\n* google.type.TimeOfDay\n* google.type.DateTime\n* google.protobuf.Timestamp", - "id": "Date", - "properties": { - "day": { - "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0\nto specify a year by itself or a year and month where the day isn't\nsignificant.", - "format": "int32", - "type": "integer" - }, - "month": { - "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a\nmonth and day.", - "format": "int32", - "type": "integer" - }, - "year": { - "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without\na year.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "DateTime": { - "description": "Represents civil time (or occasionally physical time).\n\nThis type can represent a civil time in one of a few possible ways:\n\n * When utc_offset is set and time_zone is unset: a civil time on a calendar\n day with a particular offset from UTC.\n * When time_zone is set and utc_offset is unset: a civil time on a calendar\n day in a particular time zone.\n * When neither time_zone nor utc_offset is set: a civil time on a calendar\n day in local time.\n\nThe date is relative to the Proleptic Gregorian Calendar.\n\nIf year, month, or day are 0, the DateTime is considered not to have a\nspecific year, month, or day respectively.\n\nThis type may also be used to represent a physical time if all the date and\ntime fields are set and either case of the `time_offset` oneof is set.\nConsider using `Timestamp` message for physical time instead. If your use\ncase also would like to store the user's timezone, that can be done in\nanother field.\n\nThis type is more flexible than some applications may want. Make sure to\ndocument and validate your application's limitations.", - "id": "DateTime", - "properties": { - "day": { - "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and\nmonth, or 0 if specifying a datetime without a day.", - "format": "int32", - "type": "integer" - }, - "hours": { - "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults\nto 0 (midnight). An API may choose to allow the value \"24:00:00\" for\nscenarios like business closing time.", - "format": "int32", - "type": "integer" - }, - "minutes": { - "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", - "format": "int32", - "type": "integer" - }, - "month": { - "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a\ndatetime without a month.", - "format": "int32", - "type": "integer" - }, - "nanos": { - "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to\n999,999,999, defaults to 0.", - "format": "int32", - "type": "integer" - }, - "seconds": { - "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59,\ndefaults to 0. An API may allow the value 60 if it allows leap-seconds.", - "format": "int32", - "type": "integer" - }, - "timeZone": { - "$ref": "TimeZone", - "description": "Time zone." - }, - "utcOffset": { - "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours.\nFor example, a UTC offset of -4:00 would be represented as\n{ seconds: -14400 }.", - "format": "google-duration", - "type": "string" - }, - "year": { - "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a\ndatetime without a year.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "DeprecationStatus": { - "description": "Deprecation status for a public resource.", - "id": "DeprecationStatus", - "properties": { - "deleted": { - "description": "An optional RFC3339 timestamp on or after which the state of this\nresource is intended to change to DELETED. This is only\ninformational and the status will not change unless the client explicitly\nchanges it.", - "type": "string" - }, - "deprecated": { - "description": "An optional RFC3339 timestamp on or after which the state of this\nresource is intended to change to DEPRECATED. This is only\ninformational and the status will not change unless the client explicitly\nchanges it.", - "type": "string" - }, - "obsolete": { - "description": "An optional RFC3339 timestamp on or after which the state of this\nresource is intended to change to OBSOLETE. This is only\ninformational and the status will not change unless the client explicitly\nchanges it.", - "type": "string" - }, - "replacement": { - "description": "The URL of the suggested replacement for a deprecated resource.\nThe suggested replacement resource must be the same kind of resource as the\ndeprecated resource.", - "type": "string" - }, - "state": { - "description": "The deprecation state of this resource. This can be ACTIVE,DEPRECATED, OBSOLETE, or DELETED.\nOperations which communicate the end of life date for an image, can useACTIVE. Operations which create a new resource using aDEPRECATED resource will return successfully, but with a\nwarning indicating the deprecated resource and recommending its\nreplacement. Operations which use OBSOLETE orDELETED resources will be rejected and result in an error.", - "enum": [ - "ACTIVE", - "DELETED", - "DEPRECATED", - "OBSOLETE" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "stateOverride": { - "$ref": "RolloutPolicy", - "description": "The rollout policy for this deprecation. This policy is only enforced by\nimage family views. The rollout policy restricts the zones where the\nassociated resource is considered in a deprecated state. When the rollout\npolicy does not include the user specified zone, or if the zone is rolled\nout, the associated resource is considered in a deprecated state.\n\nThe rollout policy for this deprecation is read-only, except for\nallowlisted users. This field might not be configured. To view the latest\nnon-deprecated image in a specific zone, use theimageFamilyViews.get method." - } - }, - "type": "object" - }, + "CustomErrorResponsePolicy": { + "description": "Specifies the custom error response policy that must be applied when the\nbackend service or backend bucket responds with an error.", + "id": "CustomErrorResponsePolicy", + "properties": { + "errorResponseRules": { + "description": "Specifies rules for returning error responses.\n\nIn a given policy, if you specify rules for both a range of error codes\nas well as rules for specific error codes then rules with specific error\ncodes have a higher priority. For example, assume that you configure a rule\nfor 401 (Un-authorized) code, and another for all 4 series\nerror codes (4XX). If the backend service returns a401, then the rule for 401 will be applied.\nHowever if the backend service returns a 403, the rule for4xx takes effect.", + "items": { + "$ref": "CustomErrorResponsePolicyCustomErrorResponseRule" + }, + "type": "array" + }, + "errorService": { + "description": "The full or partial URL to the BackendBucket resource that\ncontains the custom error content. Examples are:\n \n \n - https://www.googleapis.com/compute/v1/projects/project/global/backendBuckets/myBackendBucket\n - compute/v1/projects/project/global/backendBuckets/myBackendBucket\n - global/backendBuckets/myBackendBucket\n\nIf errorService is not specified at lower levels likepathMatcher, pathRule and routeRule,\nan errorService specified at a higher level in theUrlMap will be used. IfUrlMap.defaultCustomErrorResponsePolicy contains one or moreerrorResponseRules[], it must specifyerrorService. \n\nIf load balancer cannot reach\nthe backendBucket, a simple Not Found Error will\nbe returned, with the original response code (oroverrideResponseCode if configured).\n\nerrorService is not supported for internal or regionalHTTP/HTTPS load balancers.", + "type": "string" + } + }, + "type": "object" + }, + "CustomErrorResponsePolicyCustomErrorResponseRule": { + "description": "Specifies the mapping between the response code that will be returned along\nwith the custom error content and the response code returned by the backend\nservice.", + "id": "CustomErrorResponsePolicyCustomErrorResponseRule", + "properties": { + "matchResponseCodes": { + "description": "Valid values include:\n \n \n - A number between 400 and 599: For example\n 401 or 503, in which case the load balancer\n applies the policy if the error code exactly matches this value.\n - 5xx: Load Balancer will apply the policy if the\n backend service responds with any response code in the range of\n 500 to 599. \n - 4xx: Load\n Balancer will apply the policy if the backend service responds with any\n response code in the range of 400 to\n 499.\n\nValues must be unique within matchResponseCodes and across allerrorResponseRules ofCustomErrorResponsePolicy.", + "items": { + "type": "string" + }, + "type": "array" + }, + "overrideResponseCode": { + "description": "The HTTP status code returned with the response containing the custom\nerror content. If overrideResponseCode is not supplied, the\nsame response code returned by the original backend bucket or backend\nservice is returned to the client.", + "format": "int32", + "type": "integer" + }, + "path": { + "description": "The full path to a file within backendBucket . For example:/errors/defaultError.html \n\npath must start\nwith a leading slash. path cannot have trailing slashes.\n\nIf the file is not available in backendBucket or the\nload balancer cannot reach the BackendBucket, a simpleNot Found Error is returned to the client. \n\nThe value must\nbe from 1 to 1024 characters", + "type": "string" + } + }, + "type": "object" + }, + "CustomerEncryptionKey": { + "id": "CustomerEncryptionKey", + "properties": { + "kmsKeyName": { + "description": "The name of the encryption key that is stored in Google Cloud KMS.\nFor example:\n\n\"kmsKeyName\": \"projects/kms_project_id/locations/region/keyRings/\nkey_region/cryptoKeys/key\n\nThe fully-qualifed key name may be returned for resource GET requests. For \nexample: \n\n\"kmsKeyName\": \"projects/kms_project_id/locations/region/keyRings/\nkey_region/cryptoKeys/key\n/cryptoKeyVersions/1", + "type": "string" + }, + "kmsKeyServiceAccount": { + "description": "The service account being used for the encryption request for the given KMS\nkey. If absent, the Compute Engine default service account is used.\nFor example:\n\n\"kmsKeyServiceAccount\": \"name@project_id.iam.gserviceaccount.com/", + "type": "string" + }, + "rawKey": { + "description": "Specifies a 256-bit customer-supplied\nencryption key, encoded in RFC\n4648 base64 to either encrypt or decrypt this resource. You can\nprovide either the rawKey or thersaEncryptedKey.\nFor example:\n\n\"rawKey\":\n\"SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=\"", + "type": "string" + }, + "rsaEncryptedKey": { + "description": "Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit\ncustomer-supplied encryption key to either encrypt or decrypt this\nresource. You can provide either the rawKey or thersaEncryptedKey.\nFor example:\n\n\"rsaEncryptedKey\":\n\"ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH\nz0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD\nD6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==\"\n\nThe key must meet the following requirements before you can provide it to \nCompute Engine: \n \n 1. The key is wrapped using a RSA public key certificate provided by \n Google. \n 2. After being wrapped, the key must be encoded in RFC 4648 base64 \n encoding. \n\nGets the RSA public key certificate provided by Google at: \n\n\nhttps://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem", + "type": "string" + }, + "sha256": { + "description": "[Output only] TheRFC\n4648 base64 encoded SHA-256 hash of the customer-supplied\nencryption key that protects this resource.", + "type": "string" + } + }, + "type": "object" + }, + "CustomerEncryptionKeyProtectedDisk": { + "id": "CustomerEncryptionKeyProtectedDisk", + "properties": { + "diskEncryptionKey": { + "$ref": "CustomerEncryptionKey", + "description": "Decrypts data associated with the disk with acustomer-supplied\nencryption key." + }, + "source": { + "description": "Specifies a valid partial or full URL to an existing Persistent Disk\nresource. This field is only applicable for persistent disks.\nFor example:\n\n\"source\": \"/compute/v1/projects/project_id/zones/zone/disks/\ndisk_name", + "type": "string" + } + }, + "type": "object" + }, + "Date": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of\nday and time zone are either specified elsewhere or are insignificant. The\ndate is relative to the Gregorian Calendar. This can represent one of the\nfollowing:\n\n* A full date, with non-zero year, month, and day values.\n* A month and day, with a zero year (for example, an anniversary).\n* A year on its own, with a zero month and a zero day.\n* A year and month, with a zero day (for example, a credit card expiration\n date).\n\nRelated types:\n\n* google.type.TimeOfDay\n* google.type.DateTime\n* google.protobuf.Timestamp", + "id": "Date", + "properties": { + "day": { + "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0\nto specify a year by itself or a year and month where the day isn't\nsignificant.", + "format": "int32", + "type": "integer" + }, + "month": { + "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a\nmonth and day.", + "format": "int32", + "type": "integer" + }, + "year": { + "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without\na year.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DateTime": { + "description": "Represents civil time (or occasionally physical time).\n\nThis type can represent a civil time in one of a few possible ways:\n\n * When utc_offset is set and time_zone is unset: a civil time on a calendar\n day with a particular offset from UTC.\n * When time_zone is set and utc_offset is unset: a civil time on a calendar\n day in a particular time zone.\n * When neither time_zone nor utc_offset is set: a civil time on a calendar\n day in local time.\n\nThe date is relative to the Proleptic Gregorian Calendar.\n\nIf year, month, or day are 0, the DateTime is considered not to have a\nspecific year, month, or day respectively.\n\nThis type may also be used to represent a physical time if all the date and\ntime fields are set and either case of the `time_offset` oneof is set.\nConsider using `Timestamp` message for physical time instead. If your use\ncase also would like to store the user's timezone, that can be done in\nanother field.\n\nThis type is more flexible than some applications may want. Make sure to\ndocument and validate your application's limitations.", + "id": "DateTime", + "properties": { + "day": { + "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and\nmonth, or 0 if specifying a datetime without a day.", + "format": "int32", + "type": "integer" + }, + "hours": { + "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults\nto 0 (midnight). An API may choose to allow the value \"24:00:00\" for\nscenarios like business closing time.", + "format": "int32", + "type": "integer" + }, + "minutes": { + "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", + "format": "int32", + "type": "integer" + }, + "month": { + "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a\ndatetime without a month.", + "format": "int32", + "type": "integer" + }, + "nanos": { + "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to\n999,999,999, defaults to 0.", + "format": "int32", + "type": "integer" + }, + "seconds": { + "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59,\ndefaults to 0. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "type": "integer" + }, + "timeZone": { + "$ref": "TimeZone", + "description": "Time zone." + }, + "utcOffset": { + "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours.\nFor example, a UTC offset of -4:00 would be represented as\n{ seconds: -14400 }.", + "format": "google-duration", + "type": "string" + }, + "year": { + "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a\ndatetime without a year.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DeprecationStatus": { + "description": "Deprecation status for a public resource.", + "id": "DeprecationStatus", + "properties": { + "deleted": { + "description": "An optional RFC3339 timestamp on or after which the state of this\nresource is intended to change to DELETED. This is only\ninformational and the status will not change unless the client explicitly\nchanges it.", + "type": "string" + }, + "deprecated": { + "description": "An optional RFC3339 timestamp on or after which the state of this\nresource is intended to change to DEPRECATED. This is only\ninformational and the status will not change unless the client explicitly\nchanges it.", + "type": "string" + }, + "obsolete": { + "description": "An optional RFC3339 timestamp on or after which the state of this\nresource is intended to change to OBSOLETE. This is only\ninformational and the status will not change unless the client explicitly\nchanges it.", + "type": "string" + }, + "replacement": { + "description": "The URL of the suggested replacement for a deprecated resource.\nThe suggested replacement resource must be the same kind of resource as the\ndeprecated resource.", + "type": "string" + }, + "state": { + "description": "The deprecation state of this resource. This can be ACTIVE,DEPRECATED, OBSOLETE, or DELETED.\nOperations which communicate the end of life date for an image, can useACTIVE. Operations which create a new resource using aDEPRECATED resource will return successfully, but with a\nwarning indicating the deprecated resource and recommending its\nreplacement. Operations which use OBSOLETE orDELETED resources will be rejected and result in an error.", + "enum": [ + "ACTIVE", + "DELETED", + "DEPRECATED", + "OBSOLETE" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "type": "string" + }, + "stateOverride": { + "$ref": "RolloutPolicy", + "description": "The rollout policy for this deprecation. This policy is only enforced by\nimage family views. The rollout policy restricts the zones where the\nassociated resource is considered in a deprecated state. When the rollout\npolicy does not include the user specified zone, or if the zone is rolled\nout, the associated resource is considered in a deprecated state.\n\nThe rollout policy for this deprecation is read-only, except for\nallowlisted users. This field might not be configured. To view the latest\nnon-deprecated image in a specific zone, use theimageFamilyViews.get method." + } + }, + "type": "object" + }, + "DhcpOptionsConfig": { + "description": "A standalone, regional API resource that encapsulates a set of user-defined\nDHCP configurations.", + "id": "DhcpOptionsConfig", + "properties": { + "associations": { + "additionalProperties": { + "$ref": "DhcpOptionsConfigAssociation" + }, + "description": "Mapping of user-defined keys to DhcpOptionsConfig to Network associations.", + "type": "object" + }, + "bootFileIpv4Name": { + "description": "The file path and name of the boot image/file on the TFTP server that the\nclient VM guest OS should download and execute during network boot. Used\nwhen the standard DHCP header 'file' field is overloaded. Corresponds to\nDHCPv4 Option 67.", + "type": "string" + }, + "bootFileIpv6Parameters": { + "description": "A list of UTF-8 encoded parameter strings to be passed as arguments to the\nbootloader program or OS kernel after downloading the boot file.\nCorresponds to DHCPv6 Option 60.", + "items": { + "type": "string" + }, + "type": "array" + }, + "bootFileIpv6Url": { + "description": "The Uniform Resource Locator (URL) specifying the protocol, server address,\nand file path of the boot file that the client VM guest OS should download\nand execute for network boot (e.g., 'tftp://[2001:db8::1]/bootx64.efi' or\n'http://[2001:db8::1]/boot.img'). Corresponds to DHCPv6 Option 59.", + "type": "string" + }, + "creationTimestamp": { + "description": "Output only. [Output Only] Creation timestamp inRFC3339\ntext format.", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "An optional description of this resource. Provide this property when you\ncreate the resource.", + "type": "string" + }, + "dnsSearchPaths": { + "description": "An ordered list of domain suffixes (search paths) that the client VM guest\nOS should append to resolve hostnames that are not fully qualified. Applies\nto both DHCPv4 Option 119 and DHCPv6 Option 24.", + "items": { + "type": "string" + }, + "type": "array" + }, + "dnsServerIpv4Addresses": { + "description": "An ordered list of IPv4 addresses of DNS recursive name servers available\nto the client VM guest OS, specified in order of preference. Corresponds to\nDHCPv4 Option 6.", + "items": { + "type": "string" + }, + "type": "array" + }, + "dnsServerIpv6Addresses": { + "description": "An ordered list of IPv6 addresses of DNS recursive name servers available\nto the client VM guest OS, specified in order of preference. Corresponds to\nDHCPv6 Option 23.", + "items": { + "type": "string" + }, + "type": "array" + }, + "domainName": { + "description": "The domain name that the client VM guest OS should use when resolving\nhostnames via DNS (e.g., 'example.com'). It defines the default domain\nsuffix for the client. Corresponds to DHCPv4 Option 15.", + "type": "string" + }, + "id": { + "description": "Output only. [Output Only] The unique identifier for the resource type. The server\ngenerates this identifier.", + "format": "uint64", + "readOnly": true, + "type": "string" + }, + "kind": { + "default": "compute#dhcpOptionsConfig", + "description": "Output only. [Output Only] Type of the resource. Alwayscompute#dhcpOptionsConfig for dhcp options configs.", + "readOnly": true, + "type": "string" + }, + "leaseTimeSec": { + "description": "The duration, in seconds, of the IPv4 address lease offered by the DHCP\nserver to the client VM guest OS. Corresponds to DHCPv4 Option 51.", + "format": "int64", + "type": "string" + }, + "name": { + "annotations": { + "required": [ + "compute.dhcpOptionsConfigs.insert" + ] + }, + "description": "Name of the resource. Provided by the client when the resource is created.\nThe name must be 1-63 characters long, and comply withRFC1035.\nSpecifically, the name must be 1-63 characters long and match the regular\nexpression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first\ncharacter must be a lowercase letter, and all following characters must\nbe a dash, lowercase letter, or digit, except the last character, which\ncannot be a dash.", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "type": "string" + }, + "ntpServerIpv4Addresses": { + "description": "An ordered list of IPv4 addresses of Network Time Protocol (NTP) servers\navailable to the client VM guest OS for system clock synchronization,\nlisted in order of preference. Corresponds to DHCPv4 Option 42.", + "items": { + "type": "string" + }, + "type": "array" + }, + "ntpServerIpv6Addresses": { + "description": "An ordered list of IPv6 addresses of Network Time Protocol (NTP) servers\navailable to the client VM guest OS for system clock synchronization.\nCorresponds to DHCPv6 Option 56.", + "items": { + "type": "string" + }, + "type": "array" + }, + "region": { + "description": "Output only. [Output Only] URL of the region where the resource resides.", + "readOnly": true, + "type": "string" + }, + "selfLink": { + "description": "Output only. [Output Only] Server-defined URL for the resource.", + "readOnly": true, + "type": "string" + }, + "tftpServerIpv4Addresses": { + "description": "An ordered list of one or more IPv4 addresses of TFTP servers. Provides\nserver redundancy and failover support, and is generally prioritized by\nclients over the single hostname specified in Option 66. Corresponds to\nDHCPv4 Option 150.", + "items": { + "type": "string" + }, + "type": "array" + }, + "tftpServerIpv4Name": { + "description": "The hostname or IP address of the Trivial File Transfer Protocol (TFTP)\nserver from which the client VM guest OS can download boot files. Typically\nused in network booting (PXE) when the standard DHCP header 'sname' field\nis overloaded. Corresponds to DHCPv4 Option 66.", + "type": "string" + } + }, + "type": "object" + }, + "DhcpOptionsConfigAssociation": { + "description": "Association represents the relationship between a DHCP options config and a\nnetwork. Association represents the relationship between a DHCP options\nconfig and a network.", + "id": "DhcpOptionsConfigAssociation", + "properties": { + "network": { + "description": "Required. The target network this DHCP option is attached to.\nYou can specify this as a full or partial URL. For example, the following\nare all valid URLs:\n \n \n - https://www.googleapis.com/compute/v1/projects/project/global/networks/network\n \n - projects/project/global/networks/network", + "type": "string" + }, + "networkId": { + "description": "Output only. [Output Only] The server-defined ID of the associated Network.", + "format": "uint64", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. [Output Only] State of the association.", + "enum": [ + "ACTIVE", + "ORPHANED", + "STATE_UNSPECIFIED" + ], + "enumDescriptions": [ + "The association is active and the DHCP configuration is applied.", + "The association is orphaned (the network has been deleted).", + "Default value. This value is unused." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DhcpOptionsConfigList": { + "id": "DhcpOptionsConfigList", + "properties": { + "etag": { + "description": "Server-defined ETag for optimistic concurrency control.", + "type": "string" + }, + "id": { + "description": "[Output Only] Unique identifier for the resource; defined by the server.", + "type": "string" + }, + "items": { + "description": "A list of DhcpOptionsConfig resources.", + "items": { + "$ref": "DhcpOptionsConfig" + }, + "type": "array" + }, + "kind": { + "default": "compute#dhcpOptionsConfigList", + "description": "Output only. [Output Only] Type of the resource. Alwayscompute#dhcpOptionsConfigList for a list of dhcp options\nconfigs.", + "readOnly": true, + "type": "string" + }, + "nextPageToken": { + "description": "[Output Only] This token allows you to get the next page of results for\nlist requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for\nthe query parameter pageToken in the next list request.\nSubsequent list requests will have their own nextPageToken to\ncontinue paging through the results.", + "type": "string" + }, + "selfLink": { + "description": "[Output Only] Server-defined URL for this resource.", + "type": "string" + }, + "unreachables": { + "description": "Output only. [Output Only] Unreachable resources.\nend_interface: MixerListResponseWithEtagBuilder", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "warning": { + "description": "[Output Only] Informational warning message.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute\nEngine returns NO_RESULTS_ON_PAGE if there\nare no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "LIST_OVERHEAD_QUOTA_EXCEED", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "QUOTA_INFO_UNAVAILABLE", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed\noperation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as\ndeprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as\nexperimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden.\nDeprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is\nnot of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "Resource can't be retrieved due to list overhead quota exceed\nwhich captures the amount of resources filtered out by\nuser-defined list filter.", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the\nnetwork.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an\nipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the\nsame network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite\nthe mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "Quota information is not available to client requests (e.g:\nregions.list).", + "The user attempted to use a resource that requires a TOS they have not\naccepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted\nbecause they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but\nits application does not make a lot of sense, because it allows only\nsingle instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key:\nvalue format. For example:\n\n\"data\": [\n {\n \"key\": \"scope\",\n \"value\": \"zones/us-east1-d\"\n }", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being\nreturned. For example, for warnings where there are no results in a list\nrequest for a particular zone, this key might be scope and\nthe key value might be the zone name. Other examples might be a key\nindicating a deprecated resource and a suggested replacement, or a\nwarning about invalid network settings (for example, if an instance\nattempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, "Disk": { "description": "Represents a Persistent Disk resource.\n\nGoogle Compute Engine has two Disk resources:\n\n* [Zonal](/compute/docs/reference/rest/alpha/disks)\n* [Regional](/compute/docs/reference/rest/alpha/regionDisks)\n\nPersistent disks are required for running your VM instances.\nCreate both boot and non-boot (data) persistent disks. For more information,\nread Persistent Disks. For more\nstorage options, read Storage options.\n\nThe disks resource represents a zonal persistent disk.\nFor more information, readZonal persistent disks.\n\nThe regionDisks resource represents a\nregional persistent disk. For more information, read\nRegional resources.", "id": "Disk", @@ -69345,7 +70433,7 @@ "id": "FirewallPolicyRule", "properties": { "action": { - "description": "The Action to perform when the client connection triggers the rule.\nValid actions for firewall rules are: \"allow\", \"deny\",\n\"apply_security_profile_group\" and \"goto_next\".\nValid actions for packet mirroring rules are: \"mirror\", \"do_not_mirror\"\nand \"goto_next\".", + "description": "The Action to perform when the client connection triggers the rule.\nValid actions for firewall rules are: \"allow\", \"deny\",\n\"apply_security_profile_group\" and \"goto_next\" (\n\"apply_security_profile_group\" can be specified only for global\nnetwork firewall policies or hierarchical firewall policies).\nValid actions for packet mirroring rules are: \"mirror\", \"do_not_mirror\"\nand \"goto_next\".", "type": "string" }, "description": { @@ -69398,7 +70486,7 @@ "type": "integer" }, "securityProfileGroup": { - "description": "A fully-qualified URL of a SecurityProfile resource instance.\nExample:\nhttps://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group\nMust be specified if action is one of 'apply_security_profile_group' or\n'mirror'. Cannot be specified for other actions.", + "description": "A fully-qualified URL of a SecurityProfileGroup resource instance.\nExample:\nhttps://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group\nMust be specified if action is one of 'apply_security_profile_group' or\n'mirror'. Cannot be specified for other actions. Can be specified only\nfor global network firewall policies or hierarchical firewall policies.", "type": "string" }, "targetForwardingRules": { @@ -70879,6 +71967,10 @@ "description": "Name of reservations where the capacity is provisioned at the time of\ndelivery of future reservations. If the reservation with the given name\ndoes not exist already, it is created automatically at the time of Approval\nwith INACTIVE state till specified start-time. Either provide the\nreservation_name or a name_prefix.", "type": "string" }, + "resourceName": { + "description": "Name of the resource intended to be delivered. Name should conform to\nRFC1035. This will be the name of storage pool or Exapool for persistent\ndisk FRs.", + "type": "string" + }, "schedulingType": { "description": "Maintenance information for this reservation", "enum": [ @@ -70920,6 +72012,10 @@ "description": "Output only. [Output only] Status of the Future Reservation", "readOnly": true }, + "storagePoolProperties": { + "$ref": "FutureReservationStoragePoolProperties", + "description": "Storage pool details for the future reservation." + }, "timeWindow": { "$ref": "FutureReservationTimeWindow", "description": "Time window for this Future Reservation." @@ -71034,6 +72130,11 @@ "readOnly": true, "type": "array" }, + "exapoolProvisionedCapacityGb": { + "$ref": "StoragePoolExapoolProvisionedCapacityGb", + "description": "Output only. Exapool provisioned capacities for each SKU type.", + "readOnly": true + }, "existingMatchingUsageInfo": { "$ref": "FutureReservationStatusExistingMatchingUsageInfo", "description": "Output only. [Output Only] Represents the existing matching usage for the future\nreservation.", @@ -71092,6 +72193,11 @@ }, "specificSkuProperties": { "$ref": "FutureReservationStatusSpecificSKUProperties" + }, + "storagePoolProvisionedCapacity": { + "$ref": "FutureReservationStoragePoolProvisionedCapacity", + "description": "Output only. Storage pool provisioned capacities for each SKU type.", + "readOnly": true } }, "type": "object" @@ -71213,6 +72319,47 @@ }, "type": "object" }, + "FutureReservationStoragePoolProperties": { + "description": "Storage pool properties for the future reservation.", + "id": "FutureReservationStoragePoolProperties", + "properties": { + "requestedExapoolProvisionedCapacityGb": { + "$ref": "StoragePoolExapoolProvisionedCapacityGb", + "description": "Requested exapool provisioned capacity in GiB." + }, + "requestedStoragePoolProvisionedCapacity": { + "$ref": "FutureReservationStoragePoolProvisionedCapacity", + "description": "Requested storage pool provisioned capacity." + }, + "storagePoolType": { + "description": "Type of the storage pool.", + "type": "string" + } + }, + "type": "object" + }, + "FutureReservationStoragePoolProvisionedCapacity": { + "description": "Storage pool provisioned capacities for each SKU type.", + "id": "FutureReservationStoragePoolProvisionedCapacity", + "properties": { + "poolProvisionedCapacityGb": { + "description": "Size of the storage pool in GiB.", + "format": "int64", + "type": "string" + }, + "poolProvisionedIops": { + "description": "Provisioned IOPS of the storage pool. Only relevant if the storage pool\ntype is hyperdisk-balanced.", + "format": "int64", + "type": "string" + }, + "poolProvisionedThroughput": { + "description": "Provisioned throughput of the storage pool in MiB/s. Only relevant if\nthe storage pool type is hyperdisk-balanced or hyperdisk-throughput.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "FutureReservationTimeWindow": { "id": "FutureReservationTimeWindow", "properties": { @@ -78620,6 +79767,20 @@ "readOnly": true, "type": "string" }, + "localSsdEncryptionMode": { + "description": "Specifies which method should be used for encrypting the\nLocal SSDs attached to the VM.", + "enum": [ + "EPHEMERAL_KEY_ENCRYPTION", + "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED", + "STANDARD_ENCRYPTION" + ], + "enumDescriptions": [ + "The given VM will opt-in for using ephemeral key for\nencryption of Local SSDs.\nThe Local SSDs will not be able to recover data in case of VM\ncrash.", + "The given VM will be encrypted using keys managed by the cloud\ninfrastructure and the keys will be deleted when the VM is\ndeleted.", + "The given VM will be encrypted using keys managed by the cloud\ninfrastructure and the keys will be deleted when the VM is\ndeleted." + ], + "type": "string" + }, "machineType": { "description": "Full or partial URL of the machine type resource to use for this instance,\nin the format:zones/zone/machineTypes/machine-type. This is provided by the client\nwhen the instance is created. For example, the following is a valid partial\nurl to a predefined\nmachine type:\n\nzones/us-central1-f/machineTypes/n1-standard-1\n\n\nTo create acustom\nmachine type, provide a URL to a machine type in the following format,\nwhere CPUS is 1 or an even number up to 32 (2,\n4, 6, ... 24, etc), and MEMORY is the total\nmemory for this instance. Memory must be a multiple of 256 MB and must\nbe supplied in MB (e.g. 5 GB of memory is 5120 MB):\n\nzones/zone/machineTypes/custom-CPUS-MEMORY\n\n\nFor example: zones/us-central1-f/machineTypes/custom-4-5120\nFor a full list of restrictions, read theSpecifications\nfor custom machine types.", "type": "string" @@ -83094,6 +84255,20 @@ "description": "Labels to apply to instances that are created from these properties.", "type": "object" }, + "localSsdEncryptionMode": { + "description": "Specifies which method should be used for encrypting the\nLocal SSDs attached to the VM.", + "enum": [ + "EPHEMERAL_KEY_ENCRYPTION", + "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED", + "STANDARD_ENCRYPTION" + ], + "enumDescriptions": [ + "The given VM will opt-in for using ephemeral key for\nencryption of Local SSDs.\nThe Local SSDs will not be able to recover data in case of VM\ncrash.", + "The given VM will be encrypted using keys managed by the cloud\ninfrastructure and the keys will be deleted when the VM is\ndeleted.", + "The given VM will be encrypted using keys managed by the cloud\ninfrastructure and the keys will be deleted when the VM is\ndeleted." + ], + "type": "string" + }, "machineType": { "annotations": { "required": [ @@ -92011,12 +93186,12 @@ }, "scheduling": { "$ref": "ManagedInstanceScheduling", - "description": "Output only. [Output Only] Information about the termination timestamp of the instance,\nif applicable.", + "description": "Output only. Information about the termination timestamp of the instance, if applicable.", "readOnly": true }, "shutdownDetails": { "$ref": "ManagedInstanceShutdownDetails", - "description": "Output only. [Output Only] Specifies the graceful shutdown details if the instance is in\n`PENDING_STOP` state or there is a programmed stop scheduled.", + "description": "Output only. Specifies the graceful shutdown details if the instance is in\n`PENDING_STOP` state or there is a programmed stop scheduled.", "readOnly": true }, "sizeInUnit": { @@ -92077,7 +93252,7 @@ "type": "string" }, "trigger": { - "description": "Output only. [Output Only] Details of the current action that the managed instance\ngroup has scheduled for the instance. Contains trigger for the current\naction, and methodName in case it was triggered by API call. Possible\nvalues for trigger:\n \n - API Any API call.\n - PROACTIVE_UPDATE Proactive updater scheduled an update\n on this managed instance.\n - AUTOSCALING Instance being deleted/created after a\n decision from the Autoscaler.\n - REDISTRIBUTION The regional managed instance group is\n moving instances between zones to restore balance.\n - STANDBY_REFILL The managed instance group is refilling\n the Standby Pool (stopped/suspended virtual machines) after scale\n up.\n - MAINTENANCE Manual maintenance.\n - FAILED_CREATION The managed instance group is handling\n failed instance creation.\n - INSTANCE_FAILURE The managed instance group is handling\n instance failure, according to\n the Instance Lifecycle Policy.\n - FAILED_HEALTH_CHECK The managed instance group is\n handling failed health check, according to the Instance Lifecycle\n Policy.\n - TERMINATION_TIMESTAMP Instance reached termination time,\n thus managed instance group stops/deletes it.", + "description": "Output only. [Output Only] Details of the current action that the managed instance\ngroup has scheduled for the instance. Contains trigger for the current\naction, and methodName in case it was triggered by API call. Possible\nvalues for trigger:\n \n - API Any API call.\n - PROACTIVE_UPDATE Proactive updater scheduled an update\n on this managed instance.\n - AUTOSCALING Instance being deleted/created after a\n decision from the Autoscaler.\n - REDISTRIBUTION The regional managed instance group is\n moving instances between zones to restore balance.\n - STANDBY_REFILL The managed instance group is refilling\n the Standby Pool (stopped/suspended virtual machines) after scale\n up.\n - MAINTENANCE Manual maintenance.\n - FAILED_CREATION The managed instance group is handling\n failed instance creation.\n - INSTANCE_FAILURE The managed instance group is handling\n instance failure, according to\n the Instance Lifecycle Policy.\n - FAILED_HEALTH_CHECK The managed instance group is\n handling failed health check, according to the Instance Lifecycle\n Policy.\n - TERMINATION_TIMESTAMP Instance reached termination time,\n thus managed instance group stops/deletes it.\n - GRACEFUL_SHUTDOWN_TIMESTAMP Instance reached graceful\n shutdown time, thus managed instance group stops/deletes it to\n gracefully shut it down.", "enum": [ "API", "AUTOSCALING", @@ -92289,13 +93464,13 @@ "id": "ManagedInstanceScheduling", "properties": { "gracefulShutdownTimestamp": { - "description": "Output only. [Output Only] The timestamp at which the underlying instance will be\ntriggered for graceful shutdown if it is configured. This is in RFC3339 text format.", + "description": "Output only. The timestamp at which the underlying instance will be\ntriggered for graceful shutdown if it is configured. This is in RFC3339 text format.", "format": "google-datetime", "readOnly": true, "type": "string" }, "terminationTimestamp": { - "description": "Output only. [Output Only] The timestamp at which the managed instance will be\nterminated. This is in RFC3339 text format.", + "description": "Output only. The timestamp at which the managed instance will be terminated. This is\nin RFC3339 text\nformat.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -92308,11 +93483,11 @@ "properties": { "maxDuration": { "$ref": "Duration", - "description": "Output only. [Output Only] The duration for graceful shutdown. Only applicable when\nthe instance is in `PENDING_STOP` state.", + "description": "Output only. The duration for graceful shutdown. Only applicable when the instance is\nin `PENDING_STOP` state.", "readOnly": true }, "requestTimestamp": { - "description": "Output only. [Output Only] Past timestamp indicating the beginning of `PENDING_STOP`\nstate of instance in RFC3339 text format.", + "description": "Output only. Past timestamp indicating the beginning of `PENDING_STOP` state of\ninstance in RFC3339\ntext format.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -92336,6 +93511,62 @@ }, "type": "object" }, + "ManagementInterface": { + "description": "Represents a managed interface for an accelerator domain.\nIt defines the network endpoint and authentication configuration needed to\naccess specific management services like NMX-C or gNMI.", + "id": "ManagementInterface", + "properties": { + "authenticationConfig": { + "$ref": "AuthenticationConfig" + }, + "ipv4Address": { + "description": "The IPv4 internal IP address assigned to this management interface\nendpoint. This address will be used by the customer to route traffic to the\nmanagement interface.", + "type": "string" + }, + "ipv6Address": { + "description": "The IPv6 internal IP address assigned to this management interface\nendpoint. This address will be used by the customer to route traffic to the\nmanagement interface if IPv6 is supported and configured.", + "type": "string" + }, + "network": { + "description": "The URL of the VPC network to which the management interface endpoint is\nattached. The customer must ensure that this network is correctly\nconfigured for routing to the accelerator domain.", + "type": "string" + }, + "state": { + "enum": [ + "ACTIVE", + "INACTIVE", + "PENDING", + "STATE_UNSPECIFIED" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "readOnly": true, + "type": "string" + }, + "subnetwork": { + "description": "The URL of the subnetwork from which to assign the IP address for the\nendpoint. The subnetwork must belong to the specified network and have\navailable IP addresses.", + "type": "string" + }, + "type": { + "description": "Required. The type of management service this interface provides.\nSupported types include NMX-C for partition management and gNMI for switch\nmonitoring.", + "enum": [ + "TYPE_NVLINK_PARTITION_MANAGEMENT", + "TYPE_NVLINK_SWITCH_MONITORING", + "TYPE_UNSPECIFIED" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "Metadata": { "description": "A metadata key/value entry.", "id": "Metadata", @@ -93353,14 +94584,14 @@ "type": "string" }, "producerAcceptLists": { - "description": "Projects that are allowed to connect to this network attachment.\nThe project can be specified using its id or number.", + "description": "Projects or service class ids that are allowed to connect to this network\nattachment. The project can be specified using its id or number. Service\nclass id can be specified as \"serviceclasses/{service_class_id}\".", "items": { "type": "string" }, "type": "array" }, "producerRejectLists": { - "description": "Projects that are not allowed to connect to this network attachment.\nThe project can be specified using its id or number.", + "description": "Projects or service class ids that are not allowed to connect to this\nnetwork attachment. The project can be specified using its id or number.\nService class id can be specified as \"serviceclasses/{service_class_id}\".", "items": { "type": "string" }, @@ -108669,7 +109900,7 @@ "id": "ReliabilityRisk", "properties": { "creationTimestamp": { - "description": "Output only. [Output Only] Creation timestamp inRFC3339\ntext format.", + "description": "Output only. [Output Only] Creation timestamp in RFC3339\ntext format.", "readOnly": true, "type": "string" }, @@ -108693,13 +109924,13 @@ "type": "string" }, "name": { - "description": "Name of the resource. The name must be 1-63 characters long and\ncomply withRFC1035.", + "description": "Name of the resource. The name must be 1-63 characters long and\ncomply with RFC1035.", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "type": "string" }, "recommendation": { "$ref": "RiskRecommendation", - "description": "The recommendations to mitigate the risk." + "description": "The recommendation to mitigate the risk." }, "selfLink": { "description": "Output only. [Output Only] Server-defined URL for the resource.", @@ -108715,6 +109946,7 @@ "type": "object" }, "ReliabilityRisksListResponse": { + "description": "Response message for the List method of ReliabilityRisksService.", "id": "ReliabilityRisksListResponse", "properties": { "etag": { @@ -112179,6 +113411,11 @@ "format": "int32", "type": "integer" }, + "gracefulShutdownTimestamp": { + "description": "Output only. Specifies the timestamp, when the instance will start graceful shutdown\nprocess, in RFC3339 text format.", + "readOnly": true, + "type": "string" + }, "terminationTimestamp": { "description": "Time in future when the instance will be terminated inRFC3339 text format.", "type": "string" @@ -112265,7 +113502,7 @@ "type": "object" }, "RiskDetails": { - "description": "Details about a risk.", + "description": "Detailed insights and metrics about a detected reliability risk.", "id": "RiskDetails", "properties": { "duration": { @@ -112274,7 +113511,8 @@ "type": "string" }, "globalDnsInsight": { - "$ref": "RiskDetailsGlobalDnsInsight" + "$ref": "RiskDetailsGlobalDnsInsight", + "description": "Insight details for global DNS risk." }, "lastUpdateTimestamp": { "description": "The last time the risk was updated.", @@ -112315,10 +113553,11 @@ "type": "object" }, "RiskDetailsGlobalDnsInsight": { + "description": "Detailed insights for a global DNS reliability risk.", "id": "RiskDetailsGlobalDnsInsight", "properties": { "projectDefaultIsGlobalDns": { - "description": "Whether the project default DNS setting is global or not.", + "description": "Indicates whether the project's default DNS setting is global DNS.", "type": "boolean" }, "queryObservationWindow": { @@ -112327,7 +113566,7 @@ "type": "string" }, "riskyQueryCount": { - "description": "The number of queries that are risky. This will always be less than\ntotal_query_count.", + "description": "The number of queries that are risky. This is always less than or\nequal to total_query_count.", "format": "int64", "type": "string" }, @@ -112340,7 +113579,7 @@ "type": "object" }, "RiskRecommendation": { - "description": "Recommendation with reference url.", + "description": "Recommendation for mitigating a reliability risk, including a reference URL.", "id": "RiskRecommendation", "properties": { "content": { @@ -115028,6 +116267,11 @@ "bfdStatus": { "$ref": "BfdStatus" }, + "depreferenced": { + "description": "Output only. [Output Only] Indicates whether the BGP peer is in a depreferenced state.", + "readOnly": true, + "type": "boolean" + }, "enableIpv4": { "description": "Output only. Enable IPv4 traffic over BGP Peer.\nIt is enabled by default if the peerIpAddress is version 4.", "readOnly": true, @@ -121816,7 +123060,6 @@ "id": "SslPolicyReference", "properties": { "sslPolicy": { - "description": "URL of the SSL policy resource. Set this to empty string to clear any\nexisting SSL policy associated with the target proxy resource.", "type": "string" } }, @@ -133081,6 +134324,19 @@ }, "identityCertificateEnabled": { "type": "boolean" + }, + "identityType": { + "enum": [ + "AGENT_IDENTITY", + "IDENTITY_TYPE_UNSPECIFIED", + "SERVICE_ACCOUNT" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" } }, "type": "object" diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index 77efe607c59..ab92682a2e1 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -146,6 +146,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err return nil, err } s := &Service{client: client, BasePath: basePath, logger: internaloption.GetLogger(opts)} + s.AcceleratorPodControllers = NewAcceleratorPodControllersService(s) s.AcceleratorTypes = NewAcceleratorTypesService(s) s.Addresses = NewAddressesService(s) s.Advice = NewAdviceService(s) @@ -153,6 +154,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err s.BackendBuckets = NewBackendBucketsService(s) s.BackendServices = NewBackendServicesService(s) s.CrossSiteNetworks = NewCrossSiteNetworksService(s) + s.DhcpOptionsConfigs = NewDhcpOptionsConfigsService(s) s.DiskSettings = NewDiskSettingsService(s) s.DiskTypes = NewDiskTypesService(s) s.Disks = NewDisksService(s) @@ -321,6 +323,8 @@ type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment + AcceleratorPodControllers *AcceleratorPodControllersService + AcceleratorTypes *AcceleratorTypesService Addresses *AddressesService @@ -335,6 +339,8 @@ type Service struct { CrossSiteNetworks *CrossSiteNetworksService + DhcpOptionsConfigs *DhcpOptionsConfigsService + DiskSettings *DiskSettingsService DiskTypes *DiskTypesService @@ -631,6 +637,15 @@ func (s *Service) userAgent() string { return googleapi.UserAgent + " " + s.UserAgent } +func NewAcceleratorPodControllersService(s *Service) *AcceleratorPodControllersService { + rs := &AcceleratorPodControllersService{s: s} + return rs +} + +type AcceleratorPodControllersService struct { + s *Service +} + func NewAcceleratorTypesService(s *Service) *AcceleratorTypesService { rs := &AcceleratorTypesService{s: s} return rs @@ -694,6 +709,15 @@ type CrossSiteNetworksService struct { s *Service } +func NewDhcpOptionsConfigsService(s *Service) *DhcpOptionsConfigsService { + rs := &DhcpOptionsConfigsService{s: s} + return rs +} + +type DhcpOptionsConfigsService struct { + s *Service +} + func NewDiskSettingsService(s *Service) *DiskSettingsService { rs := &DiskSettingsService{s: s} return rs @@ -2074,6 +2098,239 @@ func (s AcceleratorConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// AcceleratorPodController: Represents a controller for managing out-of-band +// access to an accelerator +// domain (e.g., NVLink Domain). +type AcceleratorPodController struct { + // CreationTimestamp: Output only. [Output Only] Creation timestamp inRFC3339 + // text format. + CreationTimestamp string `json:"creationTimestamp,omitempty"` + // Description: An optional description of this resource. + Description string `json:"description,omitempty"` + // Id: Output only. [Output Only] The unique identifier for the resource. This + // identifier is + // defined by the server. + Id uint64 `json:"id,omitempty,string"` + Kind string `json:"kind,omitempty"` + // ManagementInterfaces: Map of management interfaces. Keys must be valid + // RFC1035 names and at most + // 63 characters long. + ManagementInterfaces map[string]ManagementInterface `json:"managementInterfaces,omitempty"` + // Name: Required. 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 + // withRFC1035. + // Specifically, the name must 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. + Name string `json:"name,omitempty"` + // SelfLink: Output only. [Output Only] Server-defined URL for the resource. + SelfLink string `json:"selfLink,omitempty"` + // SelfLinkWithId: Output only. [Output Only] Server-defined URL for the + // resource with the resource ID. + SelfLinkWithId string `json:"selfLinkWithId,omitempty"` + // Target: Required. The target accelerator domain this controller + // manages. + // This must be a resolvable identifier for the specific NVLink Domain or + // TPU system (e.g., a Reservation Sub-block + // URI). + // Example: + // "projects/my-project/reservations/my-reservation/subBlocks/subblock-1". + Target string `json:"target,omitempty"` + // Zone: Output only. [Output Only] URL of the zone where the accelerator pod + // controller resides. + Zone string `json:"zone,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreationTimestamp") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreationTimestamp") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AcceleratorPodController) MarshalJSON() ([]byte, error) { + type NoMethod AcceleratorPodController + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type AcceleratorPodControllersListResponse struct { + Items []*AcceleratorPodController `json:"items,omitempty"` + Kind string `json:"kind,omitempty"` + NextPageToken string `json:"nextPageToken,omitempty"` + SelfLink string `json:"selfLink,omitempty"` + Warning *AcceleratorPodControllersListResponseWarning `json:"warning,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Items") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Items") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AcceleratorPodControllersListResponse) MarshalJSON() ([]byte, error) { + type NoMethod AcceleratorPodControllersListResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type AcceleratorPodControllersListResponseWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, + // Compute + // Engine returns NO_RESULTS_ON_PAGE if there + // are no results in the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made + // by a failed + // operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources + // has a type marked as + // deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is + // larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as + // experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. + // Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected + // kernel, which is deprecated. + // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend + // service is associated with a health check that is + // not of type HTTP/HTTPS/HTTP2. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list + // overhead quota exceed + // which captures the amount of resources filtered out by + // user-defined list filter. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not + // assigned to an instance on the + // network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip + // forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance + // URL refers to an instance that does not have an + // ipv6 interface on the same network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to + // an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL + // refers to an instance that is not on the + // same network as the route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a + // status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue + // the process despite + // the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing + // due to errors + // "QUOTA_INFO_UNAVAILABLE" - Quota information is not available to client + // requests (e.g: + // regions.list). + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that + // requires a TOS they have not + // accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is + // in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete + // could not be deleted + // because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance + // group manager is valid as such, but + // its application does not make a lot of sense, because it allows only + // single instance in instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are + // present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + // Data: [Output Only] Metadata about this warning in key: + // value format. For example: + // + // "data": [ + // { + // "key": "scope", + // "value": "zones/us-east1-d" + // } + Data []*AcceleratorPodControllersListResponseWarningData `json:"data,omitempty"` + // Message: [Output Only] A human-readable description of the warning code. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AcceleratorPodControllersListResponseWarning) MarshalJSON() ([]byte, error) { + type NoMethod AcceleratorPodControllersListResponseWarning + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type AcceleratorPodControllersListResponseWarningData struct { + // Key: [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). + Key string `json:"key,omitempty"` + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AcceleratorPodControllersListResponseWarningData) MarshalJSON() ([]byte, error) { + type NoMethod AcceleratorPodControllersListResponseWarningData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // AcceleratorTopologiesInfo: Info for accelerator topologies within a densely // packed reservation. type AcceleratorTopologiesInfo struct { @@ -2906,24 +3163,39 @@ type Address struct { // identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` - // IpCollection: Reference to the source of external IPv4 addresses, - // like a PublicDelegatedPrefix (PDP) for BYOIP. - // The PDP must support enhanced IPv4 allocations. + // IpCollection: Reference to the source of IP addresses. // - // Use one of the following formats to specify a PDP when reserving an - // external IPv4 address using BYOIP. + // It supports the following cases: // // - - // Full resource URL, as - // inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/pub - // licDelegatedPrefixes/pdp-name + // Case 1: PublicDelegatedPrefix (PDP) for BYOIP external IPv4 + // addresses. The PDP must support enhanced IPv4 allocations. // - - // Partial URL, as in + // Case 2: Internal Range for global internal addresses. // // - // - - // projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - // - regions/region/publicDelegatedPrefixes/pdp-name + // + // Use one of the following formats to specify the resource: + // + // For a Public Delegated Prefix: + // + // - + // Full resource + // URL:https://www.googleapis.com/compute/v1/projects/projectId/regions/region/p + // ublicDelegatedPrefixes/pdp + // - Partial URL: + // - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name + // - regions/region/publicDelegatedPrefixes/pdp-name + // + // + // + // For an Internal Range: + // + // - Full + // URL:https://networkconnectivity.googleapis.com/v1/projects/project/locations/ + // global/internalRanges/internal-range + // - Partial + // URL:projects/project/locations/global/internalRanges/internal-range IpCollection string `json:"ipCollection,omitempty"` // IpVersion: The IP version that will be used by this address. Valid options // areIPV4 or IPV6. @@ -3728,6 +4000,17 @@ func (s AdvancedMachineFeatures) MarshalJSON() ([]byte, error) { // AliasIpRange: An alias IP range attached to an instance's network interface. type AliasIpRange struct { + // CandidateSubnetworkRangeNames: Identifies the candidate subnetwork range + // names for the alias + // IPs to be allocated from. When it is set, the IP would be allocated from + // any subnetwork range defined here if the IPs are available. + // Only one of subnetwork_range_name or candidate_subnetwork_range_names + // should be set. + CandidateSubnetworkRangeNames []string `json:"candidateSubnetworkRangeNames,omitempty"` + // EffectiveSubnetworkRangeName: Output only. [Output Only] The subnetwork + // range name where the IP is allocated. + // It will be set to the subnetwork range where the IP is allocated only. + EffectiveSubnetworkRangeName string `json:"effectiveSubnetworkRangeName,omitempty"` // IpCidrRange: The IP alias ranges to allocate for this interface. This IP // CIDR range // must belong to the specified subnetwork and cannot contain IP @@ -3740,15 +4023,15 @@ type AliasIpRange struct { // to allocate an IP // alias range. If not specified, the primary range of the subnetwork is used. SubnetworkRangeName string `json:"subnetworkRangeName,omitempty"` - // ForceSendFields is a list of field names (e.g. "IpCidrRange") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. + // ForceSendFields is a list of field names (e.g. + // "CandidateSubnetworkRangeNames") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "IpCidrRange") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "CandidateSubnetworkRangeNames") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -4752,6 +5035,33 @@ func (s AuditLogConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// AuthenticationConfig: Authentication configuration for the management +// interface, typically using +// mTLS. +type AuthenticationConfig struct { + // TrustConfig: Required. Resource name of the Cloud Certificate Manager + // TrustConfig used to validate + // client certificates for mTLS. + // Format: projects/{project}/locations/{location}/trustConfigs/{trust_config} + TrustConfig string `json:"trustConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "TrustConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TrustConfig") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthenticationConfig) MarshalJSON() ([]byte, error) { + type NoMethod AuthenticationConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // AuthenticationPolicy: [Deprecated] The authentication settings for the // backend service. // The authentication settings for the backend service. @@ -12388,10 +12698,18 @@ func (s CapacityHistoryRequestLocationPolicy) MarshalJSON() ([]byte, error) { // CapacityHistoryResponse: Contains the capacity history. type CapacityHistoryResponse struct { - Location string `json:"location,omitempty"` - MachineType string `json:"machineType,omitempty"` + // Location: Output only. The location (region or zone) for which the capacity + // history is returned. + // It is returned as a URL - For + // example,https://www.googleapis.com/compute/v1/projects/project/zones/zone. + Location string `json:"location,omitempty"` + // MachineType: The machine type for which the capacity history is returned. + MachineType string `json:"machineType,omitempty"` + // PreemptionHistory: The preemption history for the requested machine type and + // location. PreemptionHistory []*CapacityHistoryResponsePreemptionRecord `json:"preemptionHistory,omitempty"` - PriceHistory []*CapacityHistoryResponsePriceRecord `json:"priceHistory,omitempty"` + // PriceHistory: The price history for the requested machine type and location. + PriceHistory []*CapacityHistoryResponsePriceRecord `json:"priceHistory,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -12413,9 +12731,18 @@ func (s CapacityHistoryResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// CapacityHistoryResponsePreemptionRecord: A record of Spot VM preemption +// history. type CapacityHistoryResponsePreemptionRecord struct { - Interval *Interval `json:"interval,omitempty"` - PreemptionRate float64 `json:"preemptionRate,omitempty"` + // Interval: The time interval for this preemption record. + Interval *Interval `json:"interval,omitempty"` + // PreemptionRate: The preemption rate during the interval, representing the + // fraction of + // Spot VMs that were preempted. Range: 0.0 to 1.0. Preemption rate + // is + // calculated as (total preempted Spots) / (total Spots that stopped + // running). + PreemptionRate float64 `json:"preemptionRate,omitempty"` // ForceSendFields is a list of field names (e.g. "Interval") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -12448,9 +12775,12 @@ func (s *CapacityHistoryResponsePreemptionRecord) UnmarshalJSON(data []byte) err return nil } +// CapacityHistoryResponsePriceRecord: A record of price history. type CapacityHistoryResponsePriceRecord struct { - Interval *Interval `json:"interval,omitempty"` - ListPrice *Money `json:"listPrice,omitempty"` + // Interval: The time interval for this price record. + Interval *Interval `json:"interval,omitempty"` + // ListPrice: The Spot VM list price during the interval. + ListPrice *Money `json:"listPrice,omitempty"` // ForceSendFields is a list of field names (e.g. "Interval") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -15141,6 +15471,373 @@ func (s DeprecationStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// DhcpOptionsConfig: A standalone, regional API resource that encapsulates a +// set of user-defined +// DHCP configurations. +type DhcpOptionsConfig struct { + // Associations: Mapping of user-defined keys to DhcpOptionsConfig to Network + // associations. + Associations map[string]DhcpOptionsConfigAssociation `json:"associations,omitempty"` + // BootFileIpv4Name: The file path and name of the boot image/file on the TFTP + // server that the + // client VM guest OS should download and execute during network boot. + // Used + // when the standard DHCP header 'file' field is overloaded. Corresponds + // to + // DHCPv4 Option 67. + BootFileIpv4Name string `json:"bootFileIpv4Name,omitempty"` + // BootFileIpv6Parameters: A list of UTF-8 encoded parameter strings to be + // passed as arguments to the + // bootloader program or OS kernel after downloading the boot file. + // Corresponds to DHCPv6 Option 60. + BootFileIpv6Parameters []string `json:"bootFileIpv6Parameters,omitempty"` + // BootFileIpv6Url: The Uniform Resource Locator (URL) specifying the protocol, + // server address, + // and file path of the boot file that the client VM guest OS should + // download + // and execute for network boot (e.g., 'tftp://[2001:db8::1]/bootx64.efi' + // or + // 'http://[2001:db8::1]/boot.img'). Corresponds to DHCPv6 Option 59. + BootFileIpv6Url string `json:"bootFileIpv6Url,omitempty"` + // CreationTimestamp: Output only. [Output Only] Creation timestamp + // inRFC3339 + // text format. + CreationTimestamp string `json:"creationTimestamp,omitempty"` + // Description: An optional description of this resource. Provide this property + // when you + // create the resource. + Description string `json:"description,omitempty"` + // DnsSearchPaths: An ordered list of domain suffixes (search paths) that the + // client VM guest + // OS should append to resolve hostnames that are not fully qualified. + // Applies + // to both DHCPv4 Option 119 and DHCPv6 Option 24. + DnsSearchPaths []string `json:"dnsSearchPaths,omitempty"` + // DnsServerIpv4Addresses: An ordered list of IPv4 addresses of DNS recursive + // name servers available + // to the client VM guest OS, specified in order of preference. Corresponds + // to + // DHCPv4 Option 6. + DnsServerIpv4Addresses []string `json:"dnsServerIpv4Addresses,omitempty"` + // DnsServerIpv6Addresses: An ordered list of IPv6 addresses of DNS recursive + // name servers available + // to the client VM guest OS, specified in order of preference. Corresponds + // to + // DHCPv6 Option 23. + DnsServerIpv6Addresses []string `json:"dnsServerIpv6Addresses,omitempty"` + // DomainName: The domain name that the client VM guest OS should use when + // resolving + // hostnames via DNS (e.g., 'example.com'). It defines the default + // domain + // suffix for the client. Corresponds to DHCPv4 Option 15. + DomainName string `json:"domainName,omitempty"` + // Id: Output only. [Output Only] The unique identifier for the resource type. + // The server + // generates this identifier. + Id uint64 `json:"id,omitempty,string"` + // Kind: Output only. [Output Only] Type of the resource. + // Alwayscompute#dhcpOptionsConfig for dhcp options configs. + Kind string `json:"kind,omitempty"` + // LeaseTimeSec: The duration, in seconds, of the IPv4 address lease offered by + // the DHCP + // server to the client VM guest OS. Corresponds to DHCPv4 Option 51. + LeaseTimeSec int64 `json:"leaseTimeSec,omitempty,string"` + // Name: Name of the resource. Provided by the client when the resource is + // created. + // The name must be 1-63 characters long, and comply withRFC1035. + // 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. + Name string `json:"name,omitempty"` + // NtpServerIpv4Addresses: An ordered list of IPv4 addresses of Network Time + // Protocol (NTP) servers + // available to the client VM guest OS for system clock synchronization, + // listed in order of preference. Corresponds to DHCPv4 Option 42. + NtpServerIpv4Addresses []string `json:"ntpServerIpv4Addresses,omitempty"` + // NtpServerIpv6Addresses: An ordered list of IPv6 addresses of Network Time + // Protocol (NTP) servers + // available to the client VM guest OS for system clock + // synchronization. + // Corresponds to DHCPv6 Option 56. + NtpServerIpv6Addresses []string `json:"ntpServerIpv6Addresses,omitempty"` + // Region: Output only. [Output Only] URL of the region where the resource + // resides. + Region string `json:"region,omitempty"` + // SelfLink: Output only. [Output Only] Server-defined URL for the resource. + SelfLink string `json:"selfLink,omitempty"` + // TftpServerIpv4Addresses: An ordered list of one or more IPv4 addresses of + // TFTP servers. Provides + // server redundancy and failover support, and is generally prioritized + // by + // clients over the single hostname specified in Option 66. Corresponds + // to + // DHCPv4 Option 150. + TftpServerIpv4Addresses []string `json:"tftpServerIpv4Addresses,omitempty"` + // TftpServerIpv4Name: The hostname or IP address of the Trivial File Transfer + // Protocol (TFTP) + // server from which the client VM guest OS can download boot files. + // Typically + // used in network booting (PXE) when the standard DHCP header 'sname' field + // is overloaded. Corresponds to DHCPv4 Option 66. + TftpServerIpv4Name string `json:"tftpServerIpv4Name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Associations") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Associations") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DhcpOptionsConfig) MarshalJSON() ([]byte, error) { + type NoMethod DhcpOptionsConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DhcpOptionsConfigAssociation: Association represents the relationship +// between a DHCP options config and a +// network. Association represents the relationship between a DHCP +// options +// config and a network. +type DhcpOptionsConfigAssociation struct { + // Network: Required. The target network this DHCP option is attached to. + // You can specify this as a full or partial URL. For example, the + // following + // are all valid URLs: + // + // + // - + // https://www.googleapis.com/compute/v1/projects/project/global/networks/network + // + // - projects/project/global/networks/network + Network string `json:"network,omitempty"` + // NetworkId: Output only. [Output Only] The server-defined ID of the + // associated Network. + NetworkId uint64 `json:"networkId,omitempty,string"` + // State: Output only. [Output Only] State of the association. + // + // Possible values: + // "ACTIVE" - The association is active and the DHCP configuration is + // applied. + // "ORPHANED" - The association is orphaned (the network has been deleted). + // "STATE_UNSPECIFIED" - Default value. This value is unused. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "Network") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Network") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DhcpOptionsConfigAssociation) MarshalJSON() ([]byte, error) { + type NoMethod DhcpOptionsConfigAssociation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type DhcpOptionsConfigList struct { + // Etag: Server-defined ETag for optimistic concurrency control. + Etag string `json:"etag,omitempty"` + // Id: [Output Only] Unique identifier for the resource; defined by the server. + Id string `json:"id,omitempty"` + // Items: A list of DhcpOptionsConfig resources. + Items []*DhcpOptionsConfig `json:"items,omitempty"` + // Kind: Output only. [Output Only] Type of the resource. + // Alwayscompute#dhcpOptionsConfigList for a list of dhcp options + // configs. + Kind string `json:"kind,omitempty"` + // NextPageToken: [Output Only] This token allows you to get the next page of + // results for + // list requests. If the number of results is larger thanmaxResults, 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. + NextPageToken string `json:"nextPageToken,omitempty"` + // SelfLink: [Output Only] Server-defined URL for this resource. + SelfLink string `json:"selfLink,omitempty"` + // Unreachables: Output only. [Output Only] Unreachable + // resources. + // end_interface: MixerListResponseWithEtagBuilder + Unreachables []string `json:"unreachables,omitempty"` + // Warning: [Output Only] Informational warning message. + Warning *DhcpOptionsConfigListWarning `json:"warning,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DhcpOptionsConfigList) MarshalJSON() ([]byte, error) { + type NoMethod DhcpOptionsConfigList + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DhcpOptionsConfigListWarning: [Output Only] Informational warning message. +type DhcpOptionsConfigListWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, + // Compute + // Engine returns NO_RESULTS_ON_PAGE if there + // are no results in the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made + // by a failed + // operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources + // has a type marked as + // deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is + // larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as + // experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. + // Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected + // kernel, which is deprecated. + // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend + // service is associated with a health check that is + // not of type HTTP/HTTPS/HTTP2. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list + // overhead quota exceed + // which captures the amount of resources filtered out by + // user-defined list filter. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not + // assigned to an instance on the + // network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip + // forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance + // URL refers to an instance that does not have an + // ipv6 interface on the same network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to + // an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL + // refers to an instance that is not on the + // same network as the route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a + // status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue + // the process despite + // the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing + // due to errors + // "QUOTA_INFO_UNAVAILABLE" - Quota information is not available to client + // requests (e.g: + // regions.list). + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that + // requires a TOS they have not + // accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is + // in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete + // could not be deleted + // because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance + // group manager is valid as such, but + // its application does not make a lot of sense, because it allows only + // single instance in instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are + // present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + // Data: [Output Only] Metadata about this warning in key: + // value format. For example: + // + // "data": [ + // { + // "key": "scope", + // "value": "zones/us-east1-d" + // } + Data []*DhcpOptionsConfigListWarningData `json:"data,omitempty"` + // Message: [Output Only] A human-readable description of the warning code. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DhcpOptionsConfigListWarning) MarshalJSON() ([]byte, error) { + type NoMethod DhcpOptionsConfigListWarning + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type DhcpOptionsConfigListWarningData struct { + // Key: [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). + Key string `json:"key,omitempty"` + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DhcpOptionsConfigListWarningData) MarshalJSON() ([]byte, error) { + type NoMethod DhcpOptionsConfigListWarningData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Disk: Represents a Persistent Disk resource. // // Google Compute Engine has two Disk resources: @@ -19776,7 +20473,10 @@ type FirewallPolicyRule struct { // rule. // Valid actions for firewall rules are: "allow", // "deny", - // "apply_security_profile_group" and "goto_next". + // "apply_security_profile_group" and "goto_next" + // ( + // "apply_security_profile_group" can be specified only for global + // network firewall policies or hierarchical firewall policies). // Valid actions for packet mirroring rules are: "mirror", "do_not_mirror" // and "goto_next". Action string `json:"action,omitempty"` @@ -19823,13 +20523,15 @@ type FirewallPolicyRule struct { // a single firewall policy // rule. RuleTupleCount int64 `json:"ruleTupleCount,omitempty"` - // SecurityProfileGroup: A fully-qualified URL of a SecurityProfile resource + // SecurityProfileGroup: A fully-qualified URL of a SecurityProfileGroup + // resource // instance. // Example: // https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group // Must be specified if action is one of 'apply_security_profile_group' // or - // 'mirror'. Cannot be specified for other actions. + // 'mirror'. Cannot be specified for other actions. Can be specified only + // for global network firewall policies or hierarchical firewall policies. SecurityProfileGroup string `json:"securityProfileGroup,omitempty"` // TargetForwardingRules: A list of forwarding rules to which this rule // applies. @@ -21752,6 +22454,12 @@ type FutureReservation struct { // the // reservation_name or a name_prefix. ReservationName string `json:"reservationName,omitempty"` + // ResourceName: Name of the resource intended to be delivered. Name should + // conform to + // RFC1035. This will be the name of storage pool or Exapool for + // persistent + // disk FRs. + ResourceName string `json:"resourceName,omitempty"` // SchedulingType: Maintenance information for this reservation // // Possible values: @@ -21782,6 +22490,8 @@ type FutureReservation struct { SpecificSkuProperties *FutureReservationSpecificSKUProperties `json:"specificSkuProperties,omitempty"` // Status: Output only. [Output only] Status of the Future Reservation Status *FutureReservationStatus `json:"status,omitempty"` + // StoragePoolProperties: Storage pool details for the future reservation. + StoragePoolProperties *FutureReservationStoragePoolProperties `json:"storagePoolProperties,omitempty"` // TimeWindow: Time window for this Future Reservation. TimeWindow *FutureReservationTimeWindow `json:"timeWindow,omitempty"` // Zone: Output only. [Output Only] URL of the Zone where this future @@ -21937,6 +22647,9 @@ type FutureReservationStatus struct { // automatically created reservations at // start_time. AutoCreatedReservations []string `json:"autoCreatedReservations,omitempty"` + // ExapoolProvisionedCapacityGb: Output only. Exapool provisioned capacities + // for each SKU type. + ExapoolProvisionedCapacityGb *StoragePoolExapoolProvisionedCapacityGb `json:"exapoolProvisionedCapacityGb,omitempty"` // ExistingMatchingUsageInfo: Output only. [Output Only] Represents the // existing matching usage for the future // reservation. @@ -21994,6 +22707,9 @@ type FutureReservationStatus struct { // persist past start_time + 24h. ProcurementStatus string `json:"procurementStatus,omitempty"` SpecificSkuProperties *FutureReservationStatusSpecificSKUProperties `json:"specificSkuProperties,omitempty"` + // StoragePoolProvisionedCapacity: Output only. Storage pool provisioned + // capacities for each SKU type. + StoragePoolProvisionedCapacity *FutureReservationStoragePoolProvisionedCapacity `json:"storagePoolProvisionedCapacity,omitempty"` // ForceSendFields is a list of field names (e.g. "AmendmentStatus") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -22168,6 +22884,68 @@ func (s FutureReservationStatusSpecificSKUProperties) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// FutureReservationStoragePoolProperties: Storage pool properties for the +// future reservation. +type FutureReservationStoragePoolProperties struct { + // RequestedExapoolProvisionedCapacityGb: Requested exapool provisioned + // capacity in GiB. + RequestedExapoolProvisionedCapacityGb *StoragePoolExapoolProvisionedCapacityGb `json:"requestedExapoolProvisionedCapacityGb,omitempty"` + // RequestedStoragePoolProvisionedCapacity: Requested storage pool provisioned + // capacity. + RequestedStoragePoolProvisionedCapacity *FutureReservationStoragePoolProvisionedCapacity `json:"requestedStoragePoolProvisionedCapacity,omitempty"` + // StoragePoolType: Type of the storage pool. + StoragePoolType string `json:"storagePoolType,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "RequestedExapoolProvisionedCapacityGb") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. + // "RequestedExapoolProvisionedCapacityGb") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for + // more details. + NullFields []string `json:"-"` +} + +func (s FutureReservationStoragePoolProperties) MarshalJSON() ([]byte, error) { + type NoMethod FutureReservationStoragePoolProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// FutureReservationStoragePoolProvisionedCapacity: Storage pool provisioned +// capacities for each SKU type. +type FutureReservationStoragePoolProvisionedCapacity struct { + // PoolProvisionedCapacityGb: Size of the storage pool in GiB. + PoolProvisionedCapacityGb int64 `json:"poolProvisionedCapacityGb,omitempty,string"` + // PoolProvisionedIops: Provisioned IOPS of the storage pool. Only relevant if + // the storage pool + // type is hyperdisk-balanced. + PoolProvisionedIops int64 `json:"poolProvisionedIops,omitempty,string"` + // PoolProvisionedThroughput: Provisioned throughput of the storage pool in + // MiB/s. Only relevant if + // the storage pool type is hyperdisk-balanced or hyperdisk-throughput. + PoolProvisionedThroughput int64 `json:"poolProvisionedThroughput,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "PoolProvisionedCapacityGb") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PoolProvisionedCapacityGb") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s FutureReservationStoragePoolProvisionedCapacity) MarshalJSON() ([]byte, error) { + type NoMethod FutureReservationStoragePoolProvisionedCapacity + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type FutureReservationTimeWindow struct { Duration *Duration `json:"duration,omitempty"` EndTime string `json:"endTime,omitempty"` @@ -31977,6 +32755,25 @@ type Instance struct { // LastSuspendedTimestamp: Output only. [Output Only] Last suspended timestamp // inRFC3339 text format. LastSuspendedTimestamp string `json:"lastSuspendedTimestamp,omitempty"` + // LocalSsdEncryptionMode: Specifies which method should be used for encrypting + // the + // Local SSDs attached to the VM. + // + // Possible values: + // "EPHEMERAL_KEY_ENCRYPTION" - The given VM will opt-in for using ephemeral + // key for + // encryption of Local SSDs. + // The Local SSDs will not be able to recover data in case of VM + // crash. + // "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED" - The given VM will be encrypted + // using keys managed by the cloud + // infrastructure and the keys will be deleted when the VM is + // deleted. + // "STANDARD_ENCRYPTION" - The given VM will be encrypted using keys managed + // by the cloud + // infrastructure and the keys will be deleted when the VM is + // deleted. + LocalSsdEncryptionMode string `json:"localSsdEncryptionMode,omitempty"` // MachineType: Full or partial URL of the machine type resource to use for // this instance, // in the format:zones/zone/machineTypes/machine-type. This is provided by the @@ -37840,6 +38637,25 @@ type InstanceProperties struct { KeyRevocationActionType string `json:"keyRevocationActionType,omitempty"` // Labels: Labels to apply to instances that are created from these properties. Labels map[string]string `json:"labels,omitempty"` + // LocalSsdEncryptionMode: Specifies which method should be used for encrypting + // the + // Local SSDs attached to the VM. + // + // Possible values: + // "EPHEMERAL_KEY_ENCRYPTION" - The given VM will opt-in for using ephemeral + // key for + // encryption of Local SSDs. + // The Local SSDs will not be able to recover data in case of VM + // crash. + // "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED" - The given VM will be encrypted + // using keys managed by the cloud + // infrastructure and the keys will be deleted when the VM is + // deleted. + // "STANDARD_ENCRYPTION" - The given VM will be encrypted using keys managed + // by the cloud + // infrastructure and the keys will be deleted when the VM is + // deleted. + LocalSsdEncryptionMode string `json:"localSsdEncryptionMode,omitempty"` // MachineType: The machine type to use for instances that are created from // these // properties. @@ -48898,12 +49714,11 @@ type ManagedInstance struct { // from // InstanceFlexibilityPolicy. PropertiesFromFlexibilityPolicy *ManagedInstancePropertiesFromFlexibilityPolicy `json:"propertiesFromFlexibilityPolicy,omitempty"` - // Scheduling: Output only. [Output Only] Information about the termination - // timestamp of the instance, - // if applicable. + // Scheduling: Output only. Information about the termination timestamp of the + // instance, if applicable. Scheduling *ManagedInstanceScheduling `json:"scheduling,omitempty"` - // ShutdownDetails: Output only. [Output Only] Specifies the graceful shutdown - // details if the instance is in + // ShutdownDetails: Output only. Specifies the graceful shutdown details if the + // instance is in // `PENDING_STOP` state or there is a programmed stop scheduled. ShutdownDetails *ManagedInstanceShutdownDetails `json:"shutdownDetails,omitempty"` // SizeInUnit: Output only. [Output only] The size of the VM represented by @@ -49015,6 +49830,9 @@ type ManagedInstanceCurrentActionDetails struct { // Policy. // - TERMINATION_TIMESTAMP Instance reached termination time, // thus managed instance group stops/deletes it. + // - GRACEFUL_SHUTDOWN_TIMESTAMP Instance reached graceful + // shutdown time, thus managed instance group stops/deletes it to + // gracefully shut it down. // // Possible values: // "API" - Any API call. @@ -49310,14 +50128,15 @@ func (s ManagedInstancePropertiesFromFlexibilityPolicy) MarshalJSON() ([]byte, e } type ManagedInstanceScheduling struct { - // GracefulShutdownTimestamp: Output only. [Output Only] The timestamp at which - // the underlying instance will be + // GracefulShutdownTimestamp: Output only. The timestamp at which the + // underlying instance will be // triggered for graceful shutdown if it is configured. This is in RFC3339 text // format. GracefulShutdownTimestamp string `json:"gracefulShutdownTimestamp,omitempty"` - // TerminationTimestamp: Output only. [Output Only] The timestamp at which the - // managed instance will be - // terminated. This is in RFC3339 text format. + // TerminationTimestamp: Output only. The timestamp at which the managed + // instance will be terminated. This is + // in RFC3339 text + // format. TerminationTimestamp string `json:"terminationTimestamp,omitempty"` // ForceSendFields is a list of field names (e.g. "GracefulShutdownTimestamp") // to unconditionally include in API requests. By default, fields with empty or @@ -49338,13 +50157,14 @@ func (s ManagedInstanceScheduling) MarshalJSON() ([]byte, error) { } type ManagedInstanceShutdownDetails struct { - // MaxDuration: Output only. [Output Only] The duration for graceful shutdown. - // Only applicable when - // the instance is in `PENDING_STOP` state. + // MaxDuration: Output only. The duration for graceful shutdown. Only + // applicable when the instance is + // in `PENDING_STOP` state. MaxDuration *Duration `json:"maxDuration,omitempty"` - // RequestTimestamp: Output only. [Output Only] Past timestamp indicating the - // beginning of `PENDING_STOP` - // state of instance in RFC3339 text format. + // RequestTimestamp: Output only. Past timestamp indicating the beginning of + // `PENDING_STOP` state of + // instance in RFC3339 + // text format. RequestTimestamp string `json:"requestTimestamp,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxDuration") to // unconditionally include in API requests. By default, fields with empty or @@ -49389,6 +50209,71 @@ func (s ManagedInstanceVersion) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ManagementInterface: Represents a managed interface for an accelerator +// domain. +// It defines the network endpoint and authentication configuration needed +// to +// access specific management services like NMX-C or gNMI. +type ManagementInterface struct { + AuthenticationConfig *AuthenticationConfig `json:"authenticationConfig,omitempty"` + // Ipv4Address: The IPv4 internal IP address assigned to this management + // interface + // endpoint. This address will be used by the customer to route traffic to + // the + // management interface. + Ipv4Address string `json:"ipv4Address,omitempty"` + // Ipv6Address: The IPv6 internal IP address assigned to this management + // interface + // endpoint. This address will be used by the customer to route traffic to + // the + // management interface if IPv6 is supported and configured. + Ipv6Address string `json:"ipv6Address,omitempty"` + // Network: The URL of the VPC network to which the management interface + // endpoint is + // attached. The customer must ensure that this network is correctly + // configured for routing to the accelerator domain. + Network string `json:"network,omitempty"` + // Possible values: + // "ACTIVE" + // "INACTIVE" + // "PENDING" + // "STATE_UNSPECIFIED" + State string `json:"state,omitempty"` + // Subnetwork: The URL of the subnetwork from which to assign the IP address + // for the + // endpoint. The subnetwork must belong to the specified network and + // have + // available IP addresses. + Subnetwork string `json:"subnetwork,omitempty"` + // Type: Required. The type of management service this interface + // provides. + // Supported types include NMX-C for partition management and gNMI for + // switch + // monitoring. + // + // Possible values: + // "TYPE_NVLINK_PARTITION_MANAGEMENT" + // "TYPE_NVLINK_SWITCH_MONITORING" + // "TYPE_UNSPECIFIED" + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthenticationConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthenticationConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ManagementInterface) MarshalJSON() ([]byte, error) { + type NoMethod ManagementInterface + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Metadata: A metadata key/value entry. type Metadata struct { // Fingerprint: Specifies a fingerprint for this request, which is essentially @@ -50711,13 +51596,17 @@ type NetworkAttachment struct { // belongs // to the same network as all the subnetworks. Network string `json:"network,omitempty"` - // ProducerAcceptLists: Projects that are allowed to connect to this network - // attachment. - // The project can be specified using its id or number. + // ProducerAcceptLists: Projects or service class ids that are allowed to + // connect to this network + // attachment. The project can be specified using its id or number. + // Service + // class id can be specified as "serviceclasses/{service_class_id}". ProducerAcceptLists []string `json:"producerAcceptLists,omitempty"` - // ProducerRejectLists: Projects that are not allowed to connect to this - // network attachment. - // The project can be specified using its id or number. + // ProducerRejectLists: Projects or service class ids that are not allowed to + // connect to this + // network attachment. The project can be specified using its id or + // number. + // Service class id can be specified as "serviceclasses/{service_class_id}". ProducerRejectLists []string `json:"producerRejectLists,omitempty"` // Region: Output only. [Output Only] URL of the region where the network // attachment resides. @@ -69114,8 +70003,8 @@ func (s RegionWaitForReplicationCatchUpRequest) MarshalJSON() ([]byte, error) { // ReliabilityRisk: Represents a ReliabilityRisk resource. type ReliabilityRisk struct { - // CreationTimestamp: Output only. [Output Only] Creation timestamp - // inRFC3339 + // CreationTimestamp: Output only. [Output Only] Creation timestamp in + // RFC3339 // text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional textual description of the resource; provided when @@ -69133,9 +70022,9 @@ type ReliabilityRisk struct { // for reliability risks. Kind string `json:"kind,omitempty"` // Name: Name of the resource. The name must be 1-63 characters long and - // comply withRFC1035. + // comply with RFC1035. Name string `json:"name,omitempty"` - // Recommendation: The recommendations to mitigate the risk. + // Recommendation: The recommendation to mitigate the risk. Recommendation *RiskRecommendation `json:"recommendation,omitempty"` // SelfLink: Output only. [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` @@ -69163,6 +70052,8 @@ func (s ReliabilityRisk) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ReliabilityRisksListResponse: Response message for the List method of +// ReliabilityRisksService. type ReliabilityRisksListResponse struct { Etag string `json:"etag,omitempty"` // Id: [Output Only] Unique identifier for the resource; defined by the server. @@ -73254,6 +74145,10 @@ type ResourceStatusScheduling struct { // must be a number between 1 and the number of availability domains // specified in the spread placement policy attached to the instance. AvailabilityDomain int64 `json:"availabilityDomain,omitempty"` + // GracefulShutdownTimestamp: Output only. Specifies the timestamp, when the + // instance will start graceful shutdown + // process, in RFC3339 text format. + GracefulShutdownTimestamp string `json:"gracefulShutdownTimestamp,omitempty"` // TerminationTimestamp: Time in future when the instance will be terminated // inRFC3339 text format. TerminationTimestamp string `json:"terminationTimestamp,omitempty"` @@ -73383,10 +74278,12 @@ func (s ResourceStatusShutdownDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RiskDetails: Details about a risk. +// RiskDetails: Detailed insights and metrics about a detected reliability +// risk. type RiskDetails struct { // Duration: The duration of the risk since it was detected. - Duration string `json:"duration,omitempty"` + Duration string `json:"duration,omitempty"` + // GlobalDnsInsight: Insight details for global DNS risk. GlobalDnsInsight *RiskDetailsGlobalDnsInsight `json:"globalDnsInsight,omitempty"` // LastUpdateTimestamp: The last time the risk was updated. LastUpdateTimestamp string `json:"lastUpdateTimestamp,omitempty"` @@ -73423,15 +74320,17 @@ func (s RiskDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// RiskDetailsGlobalDnsInsight: Detailed insights for a global DNS reliability +// risk. type RiskDetailsGlobalDnsInsight struct { - // ProjectDefaultIsGlobalDns: Whether the project default DNS setting is global - // or not. + // ProjectDefaultIsGlobalDns: Indicates whether the project's default DNS + // setting is global DNS. ProjectDefaultIsGlobalDns bool `json:"projectDefaultIsGlobalDns,omitempty"` // QueryObservationWindow: The observation window for the query counts. QueryObservationWindow string `json:"queryObservationWindow,omitempty"` - // RiskyQueryCount: The number of queries that are risky. This will always be - // less than - // total_query_count. + // RiskyQueryCount: The number of queries that are risky. This is always less + // than or + // equal to total_query_count. RiskyQueryCount int64 `json:"riskyQueryCount,omitempty,string"` // TotalQueryCount: The total number of queries in the observation window. TotalQueryCount int64 `json:"totalQueryCount,omitempty,string"` @@ -73453,7 +74352,8 @@ func (s RiskDetailsGlobalDnsInsight) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RiskRecommendation: Recommendation with reference url. +// RiskRecommendation: Recommendation for mitigating a reliability risk, +// including a reference URL. type RiskRecommendation struct { // Content: Mitigation guide for the risk. Content string `json:"content,omitempty"` @@ -76787,6 +77687,9 @@ type RouterStatusBgpPeerStatus struct { // AdvertisedRoutes: Routes that were advertised to the remote BGP peer AdvertisedRoutes []*Route `json:"advertisedRoutes,omitempty"` BfdStatus *BfdStatus `json:"bfdStatus,omitempty"` + // Depreferenced: Output only. [Output Only] Indicates whether the BGP peer is + // in a depreferenced state. + Depreferenced bool `json:"depreferenced,omitempty"` // EnableIpv4: Output only. Enable IPv4 traffic over BGP Peer. // It is enabled by default if the peerIpAddress is version 4. EnableIpv4 bool `json:"enableIpv4,omitempty"` @@ -85342,9 +86245,6 @@ func (s SslPolicyWarningsData) MarshalJSON() ([]byte, error) { } type SslPolicyReference struct { - // SslPolicy: URL of the SSL policy resource. Set this to empty string to clear - // any - // existing SSL policy associated with the target proxy resource. SslPolicy string `json:"sslPolicy,omitempty"` // ForceSendFields is a list of field names (e.g. "SslPolicy") to // unconditionally include in API requests. By default, fields with empty or @@ -99611,6 +100511,11 @@ func (s WireProperties) MarshalJSON() ([]byte, error) { type WorkloadIdentityConfig struct { Identity string `json:"identity,omitempty"` IdentityCertificateEnabled bool `json:"identityCertificateEnabled,omitempty"` + // Possible values: + // "AGENT_IDENTITY" + // "IDENTITY_TYPE_UNSPECIFIED" + // "SERVICE_ACCOUNT" + IdentityType string `json:"identityType,omitempty"` // ForceSendFields is a list of field names (e.g. "Identity") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/compute/v0.alpha/compute2-gen.go b/compute/v0.alpha/compute2-gen.go index a15c1d24a52..351735d4fdf 100644 --- a/compute/v0.alpha/compute2-gen.go +++ b/compute/v0.alpha/compute2-gen.go @@ -16,186 +16,145 @@ import ( gensupport "google.golang.org/api/internal/gensupport" ) -type AcceleratorTypesAggregatedListCall struct { - s *Service - project string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type AcceleratorPodControllersDeleteCall struct { + s *Service + project string + zone string + resourceId string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// AggregatedList: Retrieves an aggregated list of accelerator types. -// -// To prevent failure, it is recommended that you set -// the -// `returnPartialSuccess` parameter to `true`. +// Delete: Deletes the specified AcceleratorPodController resource. // -// - project: Project ID for this request. -func (r *AcceleratorTypesService) AggregatedList(project string) *AcceleratorTypesAggregatedListCall { - c := &AcceleratorTypesAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - project: . +// - resourceId: . +// - zone: . +func (r *AcceleratorPodControllersService) Delete(project string, zone string, resourceId string) *AcceleratorPodControllersDeleteCall { + c := &AcceleratorPodControllersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project + c.zone = zone + c.resourceId = resourceId return c } -// Filter sets the optional parameter "filter": A filter expression that -// filters resources listed in the response. Most -// Compute resources support two types of filter expressions: -// expressions that support regular expressions and expressions that follow -// API improvement proposal AIP-160. -// These two types of filter expressions cannot be mixed in one request. -// -// If you want to use AIP-160, your 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 `:*` 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 onresource 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) -// ``` -// -// If you want to use a regular expression, use the `eq` (equal) or `ne` -// (not equal) operator against a single un-parenthesized expression with -// or -// without quotes or against multiple parenthesized expressions. -// Examples: -// -// `fieldname eq unquoted literal` -// `fieldname eq 'single quoted literal'` -// `fieldname eq "double quoted literal" -// `(fieldname1 eq literal) (fieldname2 ne "literal")` -// -// The literal value is interpreted as a regular expression using GoogleRE2 -// library syntax. -// The literal value must match the entire field. -// -// For example, to filter for instances that do not end with name -// "instance", -// you would use `name ne .*instance`. -// -// You cannot combine constraints on multiple fields using regular -// expressions. -func (c *AcceleratorTypesAggregatedListCall) Filter(filter string) *AcceleratorTypesAggregatedListCall { - c.urlParams_.Set("filter", filter) +// RequestId sets the optional parameter "requestId": +func (c *AcceleratorPodControllersDeleteCall) RequestId(requestId string) *AcceleratorPodControllersDeleteCall { + c.urlParams_.Set("requestId", requestId) return c } -// IncludeAllScopes sets the optional parameter "includeAllScopes": 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. -func (c *AcceleratorTypesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *AcceleratorTypesAggregatedListCall { - c.urlParams_.Set("includeAllScopes", fmt.Sprint(includeAllScopes)) +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *AcceleratorPodControllersDeleteCall) Fields(s ...googleapi.Field) *AcceleratorPodControllersDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// MaxResults sets the optional parameter "maxResults": 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`) -func (c *AcceleratorTypesAggregatedListCall) MaxResults(maxResults int64) *AcceleratorTypesAggregatedListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) +// Context sets the context to be used in this call's Do method. +func (c *AcceleratorPodControllersDeleteCall) Context(ctx context.Context) *AcceleratorPodControllersDeleteCall { + c.ctx_ = ctx return c } -// OrderBy sets the optional parameter "orderBy": 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. -func (c *AcceleratorTypesAggregatedListCall) OrderBy(orderBy string) *AcceleratorTypesAggregatedListCall { - c.urlParams_.Set("orderBy", orderBy) - return c +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *AcceleratorPodControllersDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ } -// PageToken sets the optional parameter "pageToken": Specifies a page token to -// use. Set `pageToken` to the -// `nextPageToken` returned by a previous list request to get -// the next page of results. -func (c *AcceleratorTypesAggregatedListCall) PageToken(pageToken string) *AcceleratorTypesAggregatedListCall { - c.urlParams_.Set("pageToken", pageToken) - return c +func (c *AcceleratorPodControllersDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/acceleratorPodControllers/{resourceId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "resourceId": c.resourceId, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.acceleratorPodControllers.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": -// Opt-in for partial success behavior which provides partial results in -// case -// of failure. The default value is false. -// -// For example, when partial success behavior is enabled, aggregatedList for -// a -// single zone scope either returns all resources in the zone or no -// resources, -// with an error code. -func (c *AcceleratorTypesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AcceleratorTypesAggregatedListCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) - return c +// Do executes the "compute.acceleratorPodControllers.delete" call. +// 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 *AcceleratorPodControllersDeleteCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.acceleratorPodControllers.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil } -// ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The -// Shared VPC service project id or service project number for which -// aggregated list request is invoked for subnetworks list-usable api. -func (c *AcceleratorTypesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *AcceleratorTypesAggregatedListCall { - c.urlParams_.Set("serviceProjectNumber", fmt.Sprint(serviceProjectNumber)) +type AcceleratorPodControllersGetCall struct { + s *Service + project string + zone string + resourceId string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the specified AcceleratorPodController resource. +// +// - project: . +// - resourceId: . +// - zone: . +func (r *AcceleratorPodControllersService) Get(project string, zone string, resourceId string) *AcceleratorPodControllersGetCall { + c := &AcceleratorPodControllersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.resourceId = resourceId return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AcceleratorTypesAggregatedListCall) Fields(s ...googleapi.Field) *AcceleratorTypesAggregatedListCall { +func (c *AcceleratorPodControllersGetCall) Fields(s ...googleapi.Field) *AcceleratorPodControllersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -203,34 +162,34 @@ func (c *AcceleratorTypesAggregatedListCall) Fields(s ...googleapi.Field) *Accel // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *AcceleratorTypesAggregatedListCall) IfNoneMatch(entityTag string) *AcceleratorTypesAggregatedListCall { +func (c *AcceleratorPodControllersGetCall) IfNoneMatch(entityTag string) *AcceleratorPodControllersGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *AcceleratorTypesAggregatedListCall) Context(ctx context.Context) *AcceleratorTypesAggregatedListCall { +func (c *AcceleratorPodControllersGetCall) Context(ctx context.Context) *AcceleratorPodControllersGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AcceleratorTypesAggregatedListCall) Header() http.Header { +func (c *AcceleratorPodControllersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AcceleratorTypesAggregatedListCall) doRequest(alt string) (*http.Response, error) { +func (c *AcceleratorPodControllersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/acceleratorTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/acceleratorPodControllers/{resourceId}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -238,19 +197,21 @@ func (c *AcceleratorTypesAggregatedListCall) doRequest(alt string) (*http.Respon } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, + "project": c.project, + "zone": c.zone, + "resourceId": c.resourceId, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.acceleratorTypes.aggregatedList", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.acceleratorPodControllers.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.acceleratorTypes.aggregatedList" call. +// Do executes the "compute.acceleratorPodControllers.get" call. // Any non-2xx status code is an error. Response headers are in either -// *AcceleratorTypeAggregatedList.ServerResponse.Header or (if a response was +// *AcceleratorPodController.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 *AcceleratorTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*AcceleratorTypeAggregatedList, error) { +func (c *AcceleratorPodControllersGetCall) Do(opts ...googleapi.CallOption) (*AcceleratorPodController, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -269,7 +230,7 @@ func (c *AcceleratorTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &AcceleratorTypeAggregatedList{ + ret := &AcceleratorPodController{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -280,116 +241,90 @@ func (c *AcceleratorTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.acceleratorTypes.aggregatedList", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.acceleratorPodControllers.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *AcceleratorTypesAggregatedListCall) Pages(ctx context.Context, f func(*AcceleratorTypeAggregatedList) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type AcceleratorTypesGetCall struct { - s *Service - project string - zone string - acceleratorType string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type AcceleratorPodControllersInsertCall struct { + s *Service + project string + zone string + acceleratorpodcontroller *AcceleratorPodController + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Returns the specified accelerator type. +// Insert: Inserts a new AcceleratorPodController resource. // -// - acceleratorType: Name of the accelerator type to return. -// - project: Project ID for this request. -// - zone: The name of the zone for this request. -func (r *AcceleratorTypesService) Get(project string, zone string, acceleratorType string) *AcceleratorTypesGetCall { - c := &AcceleratorTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - project: . +// - zone: . +func (r *AcceleratorPodControllersService) Insert(project string, zone string, acceleratorpodcontroller *AcceleratorPodController) *AcceleratorPodControllersInsertCall { + c := &AcceleratorPodControllersInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone - c.acceleratorType = acceleratorType + c.acceleratorpodcontroller = acceleratorpodcontroller + return c +} + +// RequestId sets the optional parameter "requestId": +func (c *AcceleratorPodControllersInsertCall) RequestId(requestId string) *AcceleratorPodControllersInsertCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AcceleratorTypesGetCall) Fields(s ...googleapi.Field) *AcceleratorTypesGetCall { +func (c *AcceleratorPodControllersInsertCall) Fields(s ...googleapi.Field) *AcceleratorPodControllersInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *AcceleratorTypesGetCall) IfNoneMatch(entityTag string) *AcceleratorTypesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *AcceleratorTypesGetCall) Context(ctx context.Context) *AcceleratorTypesGetCall { +func (c *AcceleratorPodControllersInsertCall) Context(ctx context.Context) *AcceleratorPodControllersInsertCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AcceleratorTypesGetCall) Header() http.Header { +func (c *AcceleratorPodControllersInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AcceleratorTypesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *AcceleratorPodControllersInsertCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.acceleratorpodcontroller) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/acceleratorPodControllers") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "zone": c.zone, - "acceleratorType": c.acceleratorType, + "project": c.project, + "zone": c.zone, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.acceleratorTypes.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.acceleratorPodControllers.insert", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.acceleratorTypes.get" call. +// Do executes the "compute.acceleratorPodControllers.insert" call. // Any non-2xx status code is an error. Response headers are in either -// *AcceleratorType.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 *AcceleratorTypesGetCall) Do(opts ...googleapi.CallOption) (*AcceleratorType, error) { +// *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 *AcceleratorPodControllersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -408,7 +343,7 @@ func (c *AcceleratorTypesGetCall) Do(opts ...googleapi.CallOption) (*Accelerator if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &AcceleratorType{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -419,11 +354,11 @@ func (c *AcceleratorTypesGetCall) Do(opts ...googleapi.CallOption) (*Accelerator if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.acceleratorTypes.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.acceleratorPodControllers.insert", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type AcceleratorTypesListCall struct { +type AcceleratorPodControllersListCall struct { s *Service project string zone string @@ -433,14 +368,12 @@ type AcceleratorTypesListCall struct { header_ http.Header } -// List: Retrieves a list of accelerator types that are available to the -// specified -// project. +// List: Lists the AcceleratorPodController resources in the specified zone. // -// - project: Project ID for this request. -// - zone: The name of the zone for this request. -func (r *AcceleratorTypesService) List(project string, zone string) *AcceleratorTypesListCall { - c := &AcceleratorTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - project: . +// - zone: . +func (r *AcceleratorPodControllersService) List(project string, zone string) *AcceleratorPodControllersListCall { + c := &AcceleratorPodControllersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone return c @@ -513,7 +446,7 @@ func (r *AcceleratorTypesService) List(project string, zone string) *Accelerator // // You cannot combine constraints on multiple fields using regular // expressions. -func (c *AcceleratorTypesListCall) Filter(filter string) *AcceleratorTypesListCall { +func (c *AcceleratorPodControllersListCall) Filter(filter string) *AcceleratorPodControllersListCall { c.urlParams_.Set("filter", filter) return c } @@ -525,7 +458,7 @@ func (c *AcceleratorTypesListCall) Filter(filter string) *AcceleratorTypesListCa // the next page of results in subsequent list requests. Acceptable values // are // `0` to `500`, inclusive. (Default: `500`) -func (c *AcceleratorTypesListCall) MaxResults(maxResults int64) *AcceleratorTypesListCall { +func (c *AcceleratorPodControllersListCall) MaxResults(maxResults int64) *AcceleratorPodControllersListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } @@ -545,7 +478,7 @@ func (c *AcceleratorTypesListCall) MaxResults(maxResults int64) *AcceleratorType // // Currently, only sorting by `name` or // `creationTimestamp desc` is supported. -func (c *AcceleratorTypesListCall) OrderBy(orderBy string) *AcceleratorTypesListCall { +func (c *AcceleratorPodControllersListCall) OrderBy(orderBy string) *AcceleratorPodControllersListCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -554,7 +487,7 @@ func (c *AcceleratorTypesListCall) OrderBy(orderBy string) *AcceleratorTypesList // use. Set `pageToken` to the // `nextPageToken` returned by a previous list request to get // the next page of results. -func (c *AcceleratorTypesListCall) PageToken(pageToken string) *AcceleratorTypesListCall { +func (c *AcceleratorPodControllersListCall) PageToken(pageToken string) *AcceleratorPodControllersListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -569,7 +502,7 @@ func (c *AcceleratorTypesListCall) PageToken(pageToken string) *AcceleratorTypes // single zone scope either returns all resources in the zone or no // resources, // with an error code. -func (c *AcceleratorTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AcceleratorTypesListCall { +func (c *AcceleratorPodControllersListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AcceleratorPodControllersListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -577,7 +510,7 @@ func (c *AcceleratorTypesListCall) ReturnPartialSuccess(returnPartialSuccess boo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AcceleratorTypesListCall) Fields(s ...googleapi.Field) *AcceleratorTypesListCall { +func (c *AcceleratorPodControllersListCall) Fields(s ...googleapi.Field) *AcceleratorPodControllersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -585,34 +518,34 @@ func (c *AcceleratorTypesListCall) Fields(s ...googleapi.Field) *AcceleratorType // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *AcceleratorTypesListCall) IfNoneMatch(entityTag string) *AcceleratorTypesListCall { +func (c *AcceleratorPodControllersListCall) IfNoneMatch(entityTag string) *AcceleratorPodControllersListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *AcceleratorTypesListCall) Context(ctx context.Context) *AcceleratorTypesListCall { +func (c *AcceleratorPodControllersListCall) Context(ctx context.Context) *AcceleratorPodControllersListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AcceleratorTypesListCall) Header() http.Header { +func (c *AcceleratorPodControllersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AcceleratorTypesListCall) doRequest(alt string) (*http.Response, error) { +func (c *AcceleratorPodControllersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/acceleratorTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/acceleratorPodControllers") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -623,17 +556,17 @@ func (c *AcceleratorTypesListCall) doRequest(alt string) (*http.Response, error) "project": c.project, "zone": c.zone, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.acceleratorTypes.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.acceleratorPodControllers.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.acceleratorTypes.list" call. +// Do executes the "compute.acceleratorPodControllers.list" call. // Any non-2xx status code is an error. Response headers are in either -// *AcceleratorTypeList.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 *AcceleratorTypesListCall) Do(opts ...googleapi.CallOption) (*AcceleratorTypeList, error) { +// *AcceleratorPodControllersListResponse.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 *AcceleratorPodControllersListCall) Do(opts ...googleapi.CallOption) (*AcceleratorPodControllersListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -652,7 +585,7 @@ func (c *AcceleratorTypesListCall) Do(opts ...googleapi.CallOption) (*Accelerato if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &AcceleratorTypeList{ + ret := &AcceleratorPodControllersListResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -663,14 +596,14 @@ func (c *AcceleratorTypesListCall) Do(opts ...googleapi.CallOption) (*Accelerato if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.acceleratorTypes.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.acceleratorPodControllers.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *AcceleratorTypesListCall) Pages(ctx context.Context, f func(*AcceleratorTypeList) error) error { +func (c *AcceleratorPodControllersListCall) Pages(ctx context.Context, f func(*AcceleratorPodControllersListResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -688,7 +621,130 @@ func (c *AcceleratorTypesListCall) Pages(ctx context.Context, f func(*Accelerato } } -type AddressesAggregatedListCall struct { +type AcceleratorPodControllersPatchCall struct { + s *Service + project string + zone string + resourceId string + acceleratorpodcontroller *AcceleratorPodController + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Patches the specified AcceleratorPodController resource. +// +// - project: . +// - resourceId: . +// - zone: . +func (r *AcceleratorPodControllersService) Patch(project string, zone string, resourceId string, acceleratorpodcontroller *AcceleratorPodController) *AcceleratorPodControllersPatchCall { + c := &AcceleratorPodControllersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.resourceId = resourceId + c.acceleratorpodcontroller = acceleratorpodcontroller + return c +} + +// RequestId sets the optional parameter "requestId": +func (c *AcceleratorPodControllersPatchCall) RequestId(requestId string) *AcceleratorPodControllersPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": +func (c *AcceleratorPodControllersPatchCall) UpdateMask(updateMask string) *AcceleratorPodControllersPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *AcceleratorPodControllersPatchCall) Fields(s ...googleapi.Field) *AcceleratorPodControllersPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AcceleratorPodControllersPatchCall) Context(ctx context.Context) *AcceleratorPodControllersPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *AcceleratorPodControllersPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AcceleratorPodControllersPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.acceleratorpodcontroller) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/acceleratorPodControllers/{resourceId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "resourceId": c.resourceId, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.acceleratorPodControllers.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.acceleratorPodControllers.patch" call. +// 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 *AcceleratorPodControllersPatchCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.acceleratorPodControllers.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type AcceleratorTypesAggregatedListCall struct { s *Service project string urlParams_ gensupport.URLParams @@ -697,15 +753,15 @@ type AddressesAggregatedListCall struct { header_ http.Header } -// AggregatedList: Retrieves an aggregated list of addresses. +// AggregatedList: Retrieves an aggregated list of accelerator types. // // To prevent failure, it is recommended that you set // the // `returnPartialSuccess` parameter to `true`. // // - project: Project ID for this request. -func (r *AddressesService) AggregatedList(project string) *AddressesAggregatedListCall { - c := &AddressesAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *AcceleratorTypesService) AggregatedList(project string) *AcceleratorTypesAggregatedListCall { + c := &AcceleratorTypesAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project return c } @@ -777,7 +833,7 @@ func (r *AddressesService) AggregatedList(project string) *AddressesAggregatedLi // // You cannot combine constraints on multiple fields using regular // expressions. -func (c *AddressesAggregatedListCall) Filter(filter string) *AddressesAggregatedListCall { +func (c *AcceleratorTypesAggregatedListCall) Filter(filter string) *AcceleratorTypesAggregatedListCall { c.urlParams_.Set("filter", filter) return c } @@ -795,7 +851,7 @@ func (c *AddressesAggregatedListCall) Filter(filter string) *AddressesAggregated // scopes of the scope types where the resource type is expected to be // found // will be included. -func (c *AddressesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *AddressesAggregatedListCall { +func (c *AcceleratorTypesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *AcceleratorTypesAggregatedListCall { c.urlParams_.Set("includeAllScopes", fmt.Sprint(includeAllScopes)) return c } @@ -807,7 +863,7 @@ func (c *AddressesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *A // the next page of results in subsequent list requests. Acceptable values // are // `0` to `500`, inclusive. (Default: `500`) -func (c *AddressesAggregatedListCall) MaxResults(maxResults int64) *AddressesAggregatedListCall { +func (c *AcceleratorTypesAggregatedListCall) MaxResults(maxResults int64) *AcceleratorTypesAggregatedListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } @@ -827,7 +883,7 @@ func (c *AddressesAggregatedListCall) MaxResults(maxResults int64) *AddressesAgg // // Currently, only sorting by `name` or // `creationTimestamp desc` is supported. -func (c *AddressesAggregatedListCall) OrderBy(orderBy string) *AddressesAggregatedListCall { +func (c *AcceleratorTypesAggregatedListCall) OrderBy(orderBy string) *AcceleratorTypesAggregatedListCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -836,7 +892,7 @@ func (c *AddressesAggregatedListCall) OrderBy(orderBy string) *AddressesAggregat // use. Set `pageToken` to the // `nextPageToken` returned by a previous list request to get // the next page of results. -func (c *AddressesAggregatedListCall) PageToken(pageToken string) *AddressesAggregatedListCall { +func (c *AcceleratorTypesAggregatedListCall) PageToken(pageToken string) *AcceleratorTypesAggregatedListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -851,7 +907,7 @@ func (c *AddressesAggregatedListCall) PageToken(pageToken string) *AddressesAggr // single zone scope either returns all resources in the zone or no // resources, // with an error code. -func (c *AddressesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AddressesAggregatedListCall { +func (c *AcceleratorTypesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AcceleratorTypesAggregatedListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -859,7 +915,7 @@ func (c *AddressesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess // ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The // Shared VPC service project id or service project number for which // aggregated list request is invoked for subnetworks list-usable api. -func (c *AddressesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *AddressesAggregatedListCall { +func (c *AcceleratorTypesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *AcceleratorTypesAggregatedListCall { c.urlParams_.Set("serviceProjectNumber", fmt.Sprint(serviceProjectNumber)) return c } @@ -867,7 +923,7 @@ func (c *AddressesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AddressesAggregatedListCall) Fields(s ...googleapi.Field) *AddressesAggregatedListCall { +func (c *AcceleratorTypesAggregatedListCall) Fields(s ...googleapi.Field) *AcceleratorTypesAggregatedListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -875,34 +931,34 @@ func (c *AddressesAggregatedListCall) Fields(s ...googleapi.Field) *AddressesAgg // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *AddressesAggregatedListCall) IfNoneMatch(entityTag string) *AddressesAggregatedListCall { +func (c *AcceleratorTypesAggregatedListCall) IfNoneMatch(entityTag string) *AcceleratorTypesAggregatedListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *AddressesAggregatedListCall) Context(ctx context.Context) *AddressesAggregatedListCall { +func (c *AcceleratorTypesAggregatedListCall) Context(ctx context.Context) *AcceleratorTypesAggregatedListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AddressesAggregatedListCall) Header() http.Header { +func (c *AcceleratorTypesAggregatedListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AddressesAggregatedListCall) doRequest(alt string) (*http.Response, error) { +func (c *AcceleratorTypesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/addresses") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/acceleratorTypes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -912,18 +968,18 @@ func (c *AddressesAggregatedListCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.addresses.aggregatedList", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.acceleratorTypes.aggregatedList", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.addresses.aggregatedList" call. +// Do executes the "compute.acceleratorTypes.aggregatedList" call. // Any non-2xx status code is an error. Response headers are in either -// *AddressAggregatedList.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 *AddressesAggregatedListCall) Do(opts ...googleapi.CallOption) (*AddressAggregatedList, error) { - gensupport.SetOptions(c.urlParams_, opts...) +// *AcceleratorTypeAggregatedList.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 *AcceleratorTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*AcceleratorTypeAggregatedList, error) { + gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { @@ -941,7 +997,7 @@ func (c *AddressesAggregatedListCall) Do(opts ...googleapi.CallOption) (*Address if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &AddressAggregatedList{ + ret := &AcceleratorTypeAggregatedList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -952,14 +1008,14 @@ func (c *AddressesAggregatedListCall) Do(opts ...googleapi.CallOption) (*Address if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.addresses.aggregatedList", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.acceleratorTypes.aggregatedList", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *AddressesAggregatedListCall) Pages(ctx context.Context, f func(*AddressAggregatedList) error) error { +func (c *AcceleratorTypesAggregatedListCall) Pages(ctx context.Context, f func(*AcceleratorTypeAggregatedList) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -977,100 +1033,91 @@ func (c *AddressesAggregatedListCall) Pages(ctx context.Context, f func(*Address } } -type AddressesDeleteCall struct { - s *Service - project string - region string - address string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AcceleratorTypesGetCall struct { + s *Service + project string + zone string + acceleratorType string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes the specified address resource. +// Get: Returns the specified accelerator type. // -// - address: Name of the address resource to delete. +// - acceleratorType: Name of the accelerator type to return. // - project: Project ID for this request. -// - region: Name of the region for this request. -func (r *AddressesService) Delete(project string, region string, address string) *AddressesDeleteCall { - c := &AddressesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - zone: The name of the zone for this request. +func (r *AcceleratorTypesService) Get(project string, zone string, acceleratorType string) *AcceleratorTypesGetCall { + c := &AcceleratorTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region - c.address = address - return c -} - -// RequestId sets the optional parameter "requestId": 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). -func (c *AddressesDeleteCall) RequestId(requestId string) *AddressesDeleteCall { - c.urlParams_.Set("requestId", requestId) + c.zone = zone + c.acceleratorType = acceleratorType return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AddressesDeleteCall) Fields(s ...googleapi.Field) *AddressesDeleteCall { +func (c *AcceleratorTypesGetCall) Fields(s ...googleapi.Field) *AcceleratorTypesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *AcceleratorTypesGetCall) IfNoneMatch(entityTag string) *AcceleratorTypesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *AddressesDeleteCall) Context(ctx context.Context) *AddressesDeleteCall { +func (c *AcceleratorTypesGetCall) Context(ctx context.Context) *AcceleratorTypesGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AddressesDeleteCall) Header() http.Header { +func (c *AcceleratorTypesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AddressesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *AcceleratorTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/addresses/{address}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "address": c.address, + "project": c.project, + "zone": c.zone, + "acceleratorType": c.acceleratorType, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.addresses.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.acceleratorTypes.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.addresses.delete" call. +// Do executes the "compute.acceleratorTypes.get" call. // 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 *AddressesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *AcceleratorType.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 *AcceleratorTypesGetCall) Do(opts ...googleapi.CallOption) (*AcceleratorType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1089,7 +1136,7 @@ func (c *AddressesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, erro if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &AcceleratorType{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -1100,225 +1147,221 @@ func (c *AddressesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, erro if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.addresses.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.acceleratorTypes.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type AddressesGetCall struct { +type AcceleratorTypesListCall struct { s *Service project string - region string - address string + zone string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Returns the specified address resource. +// List: Retrieves a list of accelerator types that are available to the +// specified +// project. // -// - address: Name of the address resource to return. // - project: Project ID for this request. -// - region: Name of the region for this request. -func (r *AddressesService) Get(project string, region string, address string) *AddressesGetCall { - c := &AddressesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - zone: The name of the zone for this request. +func (r *AcceleratorTypesService) List(project string, zone string) *AcceleratorTypesListCall { + c := &AcceleratorTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region - c.address = address + c.zone = zone return c } -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *AddressesGetCall) Fields(s ...googleapi.Field) *AddressesGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most +// Compute resources support two types of filter expressions: +// expressions that support regular expressions and expressions that follow +// API improvement proposal AIP-160. +// These two types of filter expressions cannot be mixed in one request. +// +// If you want to use AIP-160, your 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 `:*` 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 onresource 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) +// ``` +// +// If you want to use a regular expression, use the `eq` (equal) or `ne` +// (not equal) operator against a single un-parenthesized expression with +// or +// without quotes or against multiple parenthesized expressions. +// Examples: +// +// `fieldname eq unquoted literal` +// `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" +// `(fieldname1 eq literal) (fieldname2 ne "literal")` +// +// The literal value is interpreted as a regular expression using GoogleRE2 +// library syntax. +// The literal value must match the entire field. +// +// For example, to filter for instances that do not end with name +// "instance", +// you would use `name ne .*instance`. +// +// You cannot combine constraints on multiple fields using regular +// expressions. +func (c *AcceleratorTypesListCall) Filter(filter string) *AcceleratorTypesListCall { + c.urlParams_.Set("filter", filter) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *AddressesGetCall) IfNoneMatch(entityTag string) *AddressesGetCall { - c.ifNoneMatch_ = entityTag +// MaxResults sets the optional parameter "maxResults": 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`) +func (c *AcceleratorTypesListCall) MaxResults(maxResults int64) *AcceleratorTypesListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Context sets the context to be used in this call's Do method. -func (c *AddressesGetCall) Context(ctx context.Context) *AddressesGetCall { - c.ctx_ = ctx +// OrderBy sets the optional parameter "orderBy": 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. +func (c *AcceleratorTypesListCall) OrderBy(orderBy string) *AcceleratorTypesListCall { + c.urlParams_.Set("orderBy", orderBy) return c } -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *AddressesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AddressesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/addresses/{address}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "address": c.address, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.addresses.get", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.addresses.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *Address.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 *AddressesGetCall) Do(opts ...googleapi.CallOption) (*Address, 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 := &Address{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.addresses.get", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type AddressesInsertCall struct { - s *Service - project string - region string - address *Address - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Creates an address resource in the specified project by using the -// data -// included in the request. -// -// - project: Project ID for this request. -// - region: Name of the region for this request. -func (r *AddressesService) Insert(project string, region string, address *Address) *AddressesInsertCall { - c := &AddressesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region - c.address = address +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the +// `nextPageToken` returned by a previous list request to get +// the next page of results. +func (c *AcceleratorTypesListCall) PageToken(pageToken string) *AcceleratorTypesListCall { + c.urlParams_.Set("pageToken", pageToken) return c } -// RequestId sets the optional parameter "requestId": 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. +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in +// case +// of failure. The default value is false. // -// The request ID must be -// a valid UUID with the exception that zero UUID is not -// supported -// (00000000-0000-0000-0000-000000000000). -func (c *AddressesInsertCall) RequestId(requestId string) *AddressesInsertCall { - c.urlParams_.Set("requestId", requestId) +// For example, when partial success behavior is enabled, aggregatedList for +// a +// single zone scope either returns all resources in the zone or no +// resources, +// with an error code. +func (c *AcceleratorTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AcceleratorTypesListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AddressesInsertCall) Fields(s ...googleapi.Field) *AddressesInsertCall { +func (c *AcceleratorTypesListCall) Fields(s ...googleapi.Field) *AcceleratorTypesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *AcceleratorTypesListCall) IfNoneMatch(entityTag string) *AcceleratorTypesListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *AddressesInsertCall) Context(ctx context.Context) *AddressesInsertCall { +func (c *AcceleratorTypesListCall) Context(ctx context.Context) *AcceleratorTypesListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AddressesInsertCall) Header() http.Header { +func (c *AcceleratorTypesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AddressesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.address) - if err != nil { - return nil, err +func (c *AcceleratorTypesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/addresses") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/acceleratorTypes") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "project": c.project, - "region": c.region, + "zone": c.zone, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.addresses.insert", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.acceleratorTypes.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.addresses.insert" call. +// Do executes the "compute.acceleratorTypes.list" call. // 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 *AddressesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *AcceleratorTypeList.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 *AcceleratorTypesListCall) Do(opts ...googleapi.CallOption) (*AcceleratorTypeList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1337,7 +1380,7 @@ func (c *AddressesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, erro if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &AcceleratorTypeList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -1348,29 +1391,50 @@ func (c *AddressesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, erro if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.addresses.insert", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.acceleratorTypes.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type AddressesListCall struct { +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *AcceleratorTypesListCall) Pages(ctx context.Context, f func(*AcceleratorTypeList) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type AddressesAggregatedListCall struct { s *Service project string - region string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Retrieves a list of addresses contained within -// the specified region. +// AggregatedList: Retrieves an aggregated list of addresses. +// +// To prevent failure, it is recommended that you set +// the +// `returnPartialSuccess` parameter to `true`. // // - project: Project ID for this request. -// - region: Name of the region for this request. -func (r *AddressesService) List(project string, region string) *AddressesListCall { - c := &AddressesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *AddressesService) AggregatedList(project string) *AddressesAggregatedListCall { + c := &AddressesAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region return c } @@ -1441,11 +1505,29 @@ func (r *AddressesService) List(project string, region string) *AddressesListCal // // You cannot combine constraints on multiple fields using regular // expressions. -func (c *AddressesListCall) Filter(filter string) *AddressesListCall { +func (c *AddressesAggregatedListCall) Filter(filter string) *AddressesAggregatedListCall { c.urlParams_.Set("filter", filter) return c } +// IncludeAllScopes sets the optional parameter "includeAllScopes": 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. +func (c *AddressesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *AddressesAggregatedListCall { + c.urlParams_.Set("includeAllScopes", fmt.Sprint(includeAllScopes)) + return c +} + // MaxResults sets the optional parameter "maxResults": The maximum number of // results per page that should be returned. // If the number of available results is larger than `maxResults`, @@ -1453,7 +1535,7 @@ func (c *AddressesListCall) Filter(filter string) *AddressesListCall { // the next page of results in subsequent list requests. Acceptable values // are // `0` to `500`, inclusive. (Default: `500`) -func (c *AddressesListCall) MaxResults(maxResults int64) *AddressesListCall { +func (c *AddressesAggregatedListCall) MaxResults(maxResults int64) *AddressesAggregatedListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } @@ -1473,7 +1555,7 @@ func (c *AddressesListCall) MaxResults(maxResults int64) *AddressesListCall { // // Currently, only sorting by `name` or // `creationTimestamp desc` is supported. -func (c *AddressesListCall) OrderBy(orderBy string) *AddressesListCall { +func (c *AddressesAggregatedListCall) OrderBy(orderBy string) *AddressesAggregatedListCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -1482,7 +1564,7 @@ func (c *AddressesListCall) OrderBy(orderBy string) *AddressesListCall { // use. Set `pageToken` to the // `nextPageToken` returned by a previous list request to get // the next page of results. -func (c *AddressesListCall) PageToken(pageToken string) *AddressesListCall { +func (c *AddressesAggregatedListCall) PageToken(pageToken string) *AddressesAggregatedListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -1497,15 +1579,23 @@ func (c *AddressesListCall) PageToken(pageToken string) *AddressesListCall { // single zone scope either returns all resources in the zone or no // resources, // with an error code. -func (c *AddressesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AddressesListCall { +func (c *AddressesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AddressesAggregatedListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } +// ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The +// Shared VPC service project id or service project number for which +// aggregated list request is invoked for subnetworks list-usable api. +func (c *AddressesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *AddressesAggregatedListCall { + c.urlParams_.Set("serviceProjectNumber", fmt.Sprint(serviceProjectNumber)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AddressesListCall) Fields(s ...googleapi.Field) *AddressesListCall { +func (c *AddressesAggregatedListCall) Fields(s ...googleapi.Field) *AddressesAggregatedListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -1513,34 +1603,34 @@ func (c *AddressesListCall) Fields(s ...googleapi.Field) *AddressesListCall { // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *AddressesListCall) IfNoneMatch(entityTag string) *AddressesListCall { +func (c *AddressesAggregatedListCall) IfNoneMatch(entityTag string) *AddressesAggregatedListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *AddressesListCall) Context(ctx context.Context) *AddressesListCall { +func (c *AddressesAggregatedListCall) Context(ctx context.Context) *AddressesAggregatedListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AddressesListCall) Header() http.Header { +func (c *AddressesAggregatedListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AddressesListCall) doRequest(alt string) (*http.Response, error) { +func (c *AddressesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/addresses") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/addresses") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -1549,18 +1639,18 @@ func (c *AddressesListCall) doRequest(alt string) (*http.Response, error) { req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "project": c.project, - "region": c.region, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.addresses.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.addresses.aggregatedList", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.addresses.list" call. +// Do executes the "compute.addresses.aggregatedList" call. // Any non-2xx status code is an error. Response headers are in either -// *AddressList.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 *AddressesListCall) Do(opts ...googleapi.CallOption) (*AddressList, error) { +// *AddressAggregatedList.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 *AddressesAggregatedListCall) Do(opts ...googleapi.CallOption) (*AddressAggregatedList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1579,7 +1669,7 @@ func (c *AddressesListCall) Do(opts ...googleapi.CallOption) (*AddressList, erro if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &AddressList{ + ret := &AddressAggregatedList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -1590,14 +1680,14 @@ func (c *AddressesListCall) Do(opts ...googleapi.CallOption) (*AddressList, erro if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.addresses.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.addresses.aggregatedList", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *AddressesListCall) Pages(ctx context.Context, f func(*AddressList) error) error { +func (c *AddressesAggregatedListCall) Pages(ctx context.Context, f func(*AddressAggregatedList) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -1615,28 +1705,26 @@ func (c *AddressesListCall) Pages(ctx context.Context, f func(*AddressList) erro } } -type AddressesMoveCall struct { - s *Service - project string - region string - address string - regionaddressesmoverequest *RegionAddressesMoveRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AddressesDeleteCall struct { + s *Service + project string + region string + address string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Move: Moves the specified address resource. +// Delete: Deletes the specified address resource. // -// - address: Name of the address resource to move. -// - project: Source project ID which the Address is moved from. +// - address: Name of the address resource to delete. +// - project: Project ID for this request. // - region: Name of the region for this request. -func (r *AddressesService) Move(project string, region string, address string, regionaddressesmoverequest *RegionAddressesMoveRequest) *AddressesMoveCall { - c := &AddressesMoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *AddressesService) Delete(project string, region string, address string) *AddressesDeleteCall { + c := &AddressesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.region = region c.address = address - c.regionaddressesmoverequest = regionaddressesmoverequest return c } @@ -1657,7 +1745,7 @@ func (r *AddressesService) Move(project string, region string, address string, r // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *AddressesMoveCall) RequestId(requestId string) *AddressesMoveCall { +func (c *AddressesDeleteCall) RequestId(requestId string) *AddressesDeleteCall { c.urlParams_.Set("requestId", requestId) return c } @@ -1665,37 +1753,33 @@ func (c *AddressesMoveCall) RequestId(requestId string) *AddressesMoveCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AddressesMoveCall) Fields(s ...googleapi.Field) *AddressesMoveCall { +func (c *AddressesDeleteCall) Fields(s ...googleapi.Field) *AddressesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *AddressesMoveCall) Context(ctx context.Context) *AddressesMoveCall { +func (c *AddressesDeleteCall) Context(ctx context.Context) *AddressesDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AddressesMoveCall) Header() http.Header { +func (c *AddressesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AddressesMoveCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.regionaddressesmoverequest) - if err != nil { - return nil, err - } +func (c *AddressesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/addresses/{address}/move") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/addresses/{address}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } @@ -1705,16 +1789,16 @@ func (c *AddressesMoveCall) doRequest(alt string) (*http.Response, error) { "region": c.region, "address": c.address, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.addresses.move", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.addresses.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.addresses.move" call. +// Do executes the "compute.addresses.delete" call. // 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 *AddressesMoveCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *AddressesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1744,112 +1828,94 @@ func (c *AddressesMoveCall) Do(opts ...googleapi.CallOption) (*Operation, error) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.addresses.move", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.addresses.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type AddressesSetLabelsCall struct { - s *Service - project string - region string - resource string - regionsetlabelsrequest *RegionSetLabelsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AddressesGetCall struct { + s *Service + project string + region string + address string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// SetLabels: Sets the labels on an Address. To learn more about labels, read -// theLabeling -// Resources documentation. +// Get: Returns the specified address resource. // +// - address: Name of the address resource to return. // - project: Project ID for this request. -// - region: The region for this request. -// - resource: Name or id of the resource for this request. -func (r *AddressesService) SetLabels(project string, region string, resource string, regionsetlabelsrequest *RegionSetLabelsRequest) *AddressesSetLabelsCall { - c := &AddressesSetLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - region: Name of the region for this request. +func (r *AddressesService) Get(project string, region string, address string) *AddressesGetCall { + c := &AddressesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.region = region - c.resource = resource - c.regionsetlabelsrequest = regionsetlabelsrequest - return c -} - -// RequestId sets the optional parameter "requestId": 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). -func (c *AddressesSetLabelsCall) RequestId(requestId string) *AddressesSetLabelsCall { - c.urlParams_.Set("requestId", requestId) + c.address = address return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AddressesSetLabelsCall) Fields(s ...googleapi.Field) *AddressesSetLabelsCall { +func (c *AddressesGetCall) Fields(s ...googleapi.Field) *AddressesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *AddressesGetCall) IfNoneMatch(entityTag string) *AddressesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *AddressesSetLabelsCall) Context(ctx context.Context) *AddressesSetLabelsCall { +func (c *AddressesGetCall) Context(ctx context.Context) *AddressesGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AddressesSetLabelsCall) Header() http.Header { +func (c *AddressesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AddressesSetLabelsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.regionsetlabelsrequest) - if err != nil { - return nil, err +func (c *AddressesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/addresses/{resource}/setLabels") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/addresses/{address}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "resource": c.resource, + "project": c.project, + "region": c.region, + "address": c.address, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.addresses.setLabels", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.addresses.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.addresses.setLabels" call. +// Do executes the "compute.addresses.get" call. // 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 +// *Address.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 *AddressesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *AddressesGetCall) Do(opts ...googleapi.CallOption) (*Address, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1868,7 +1934,7 @@ func (c *AddressesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, e if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &Address{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -1879,68 +1945,88 @@ func (c *AddressesSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, e if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.addresses.setLabels", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.addresses.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type AddressesTestIamPermissionsCall struct { - s *Service - project string - region string - resource string - testpermissionsrequest *TestPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AddressesInsertCall struct { + s *Service + project string + region string + address *Address + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the specified -// resource. +// Insert: Creates an address resource in the specified project by using the +// data +// included in the request. // // - project: Project ID for this request. -// - region: The name of the region for this request. -// - resource: Name or id of the resource for this request. -func (r *AddressesService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *AddressesTestIamPermissionsCall { - c := &AddressesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - region: Name of the region for this request. +func (r *AddressesService) Insert(project string, region string, address *Address) *AddressesInsertCall { + c := &AddressesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.region = region - c.resource = resource - c.testpermissionsrequest = testpermissionsrequest + c.address = address + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *AddressesInsertCall) RequestId(requestId string) *AddressesInsertCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AddressesTestIamPermissionsCall) Fields(s ...googleapi.Field) *AddressesTestIamPermissionsCall { +func (c *AddressesInsertCall) Fields(s ...googleapi.Field) *AddressesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *AddressesTestIamPermissionsCall) Context(ctx context.Context) *AddressesTestIamPermissionsCall { +func (c *AddressesInsertCall) Context(ctx context.Context) *AddressesInsertCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AddressesTestIamPermissionsCall) Header() http.Header { +func (c *AddressesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AddressesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *AddressesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testpermissionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.address) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/addresses") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -1948,21 +2034,19 @@ func (c *AddressesTestIamPermissionsCall) doRequest(alt string) (*http.Response, } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "resource": c.resource, + "project": c.project, + "region": c.region, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.addresses.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.addresses.insert", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.addresses.testIamPermissions" call. +// Do executes the "compute.addresses.insert" call. // Any non-2xx status code is an error. Response headers are in either -// *TestPermissionsResponse.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 *AddressesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error) { +// *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 *AddressesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1981,7 +2065,7 @@ func (c *AddressesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*Tes if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &TestPermissionsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -1992,72 +2076,201 @@ func (c *AddressesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*Tes if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.addresses.testIamPermissions", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.addresses.insert", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type AdviceCalendarModeCall struct { - s *Service - project string - region string - calendarmodeadvicerequest *CalendarModeAdviceRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type AddressesListCall struct { + s *Service + project string + region string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// CalendarMode: Advise how, where and when to create the requested amount of -// instances -// with specified accelerators, within the specified time and location -// limits. -// The method recommends creating future reservations for the -// requested -// resources. +// List: Retrieves a list of addresses contained within +// the specified region. // // - project: Project ID for this request. // - region: Name of the region for this request. -func (r *AdviceService) CalendarMode(project string, region string, calendarmodeadvicerequest *CalendarModeAdviceRequest) *AdviceCalendarModeCall { - c := &AdviceCalendarModeCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *AddressesService) List(project string, region string) *AddressesListCall { + c := &AddressesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.region = region - c.calendarmodeadvicerequest = calendarmodeadvicerequest + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most +// Compute resources support two types of filter expressions: +// expressions that support regular expressions and expressions that follow +// API improvement proposal AIP-160. +// These two types of filter expressions cannot be mixed in one request. +// +// If you want to use AIP-160, your 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 `:*` 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 onresource 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) +// ``` +// +// If you want to use a regular expression, use the `eq` (equal) or `ne` +// (not equal) operator against a single un-parenthesized expression with +// or +// without quotes or against multiple parenthesized expressions. +// Examples: +// +// `fieldname eq unquoted literal` +// `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" +// `(fieldname1 eq literal) (fieldname2 ne "literal")` +// +// The literal value is interpreted as a regular expression using GoogleRE2 +// library syntax. +// The literal value must match the entire field. +// +// For example, to filter for instances that do not end with name +// "instance", +// you would use `name ne .*instance`. +// +// You cannot combine constraints on multiple fields using regular +// expressions. +func (c *AddressesListCall) Filter(filter string) *AddressesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": 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`) +func (c *AddressesListCall) MaxResults(maxResults int64) *AddressesListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": 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. +func (c *AddressesListCall) OrderBy(orderBy string) *AddressesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the +// `nextPageToken` returned by a previous list request to get +// the next page of results. +func (c *AddressesListCall) PageToken(pageToken string) *AddressesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in +// case +// of failure. The default value is false. +// +// For example, when partial success behavior is enabled, aggregatedList for +// a +// single zone scope either returns all resources in the zone or no +// resources, +// with an error code. +func (c *AddressesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *AddressesListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *AdviceCalendarModeCall) Fields(s ...googleapi.Field) *AdviceCalendarModeCall { +func (c *AddressesListCall) Fields(s ...googleapi.Field) *AddressesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *AddressesListCall) IfNoneMatch(entityTag string) *AddressesListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *AdviceCalendarModeCall) Context(ctx context.Context) *AdviceCalendarModeCall { +func (c *AddressesListCall) Context(ctx context.Context) *AddressesListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *AdviceCalendarModeCall) Header() http.Header { +func (c *AddressesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AdviceCalendarModeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.calendarmodeadvicerequest) - if err != nil { - return nil, err +func (c *AddressesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/advice/calendarMode") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/addresses") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -2066,17 +2279,16 @@ func (c *AdviceCalendarModeCall) doRequest(alt string) (*http.Response, error) { "project": c.project, "region": c.region, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.advice.calendarMode", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.addresses.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.advice.calendarMode" call. +// Do executes the "compute.addresses.list" call. // Any non-2xx status code is an error. Response headers are in either -// *CalendarModeAdviceResponse.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 *AdviceCalendarModeCall) Do(opts ...googleapi.CallOption) (*CalendarModeAdviceResponse, error) { +// *AddressList.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 *AddressesListCall) Do(opts ...googleapi.CallOption) (*AddressList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2095,7 +2307,7 @@ func (c *AdviceCalendarModeCall) Do(opts ...googleapi.CallOption) (*CalendarMode if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &CalendarModeAdviceResponse{ + ret := &AddressList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2106,41 +2318,557 @@ func (c *AdviceCalendarModeCall) Do(opts ...googleapi.CallOption) (*CalendarMode if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.advice.calendarMode", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.addresses.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type AdviceCapacityCall struct { - s *Service - project string - region string - capacityadvicerequest *CapacityAdviceRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *AddressesListCall) Pages(ctx context.Context, f func(*AddressList) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// Capacity: Advice on making real-time decisions (such as choosing zone -// or -// machine types) during deployment to maximize your chances of -// obtaining -// capacity. +type AddressesMoveCall struct { + s *Service + project string + region string + address string + regionaddressesmoverequest *RegionAddressesMoveRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Move: Moves the specified address resource. // -// - project: Project ID for this request. +// - address: Name of the address resource to move. +// - project: Source project ID which the Address is moved from. // - region: Name of the region for this request. -func (r *AdviceService) Capacity(project string, region string, capacityadvicerequest *CapacityAdviceRequest) *AdviceCapacityCall { - c := &AdviceCapacityCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *AddressesService) Move(project string, region string, address string, regionaddressesmoverequest *RegionAddressesMoveRequest) *AddressesMoveCall { + c := &AddressesMoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.region = region - c.capacityadvicerequest = capacityadvicerequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *AdviceCapacityCall) Fields(s ...googleapi.Field) *AdviceCapacityCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) + c.address = address + c.regionaddressesmoverequest = regionaddressesmoverequest + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *AddressesMoveCall) RequestId(requestId string) *AddressesMoveCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *AddressesMoveCall) Fields(s ...googleapi.Field) *AddressesMoveCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AddressesMoveCall) Context(ctx context.Context) *AddressesMoveCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *AddressesMoveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AddressesMoveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.regionaddressesmoverequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/addresses/{address}/move") + 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{ + "project": c.project, + "region": c.region, + "address": c.address, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.addresses.move", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.addresses.move" call. +// 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 *AddressesMoveCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.addresses.move", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type AddressesSetLabelsCall struct { + s *Service + project string + region string + resource string + regionsetlabelsrequest *RegionSetLabelsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetLabels: Sets the labels on an Address. To learn more about labels, read +// theLabeling +// Resources documentation. +// +// - project: Project ID for this request. +// - region: The region for this request. +// - resource: Name or id of the resource for this request. +func (r *AddressesService) SetLabels(project string, region string, resource string, regionsetlabelsrequest *RegionSetLabelsRequest) *AddressesSetLabelsCall { + c := &AddressesSetLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.resource = resource + c.regionsetlabelsrequest = regionsetlabelsrequest + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *AddressesSetLabelsCall) RequestId(requestId string) *AddressesSetLabelsCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *AddressesSetLabelsCall) Fields(s ...googleapi.Field) *AddressesSetLabelsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AddressesSetLabelsCall) Context(ctx context.Context) *AddressesSetLabelsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *AddressesSetLabelsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AddressesSetLabelsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.regionsetlabelsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/addresses/{resource}/setLabels") + 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{ + "project": c.project, + "region": c.region, + "resource": c.resource, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.addresses.setLabels", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.addresses.setLabels" call. +// 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 *AddressesSetLabelsCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.addresses.setLabels", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type AddressesTestIamPermissionsCall struct { + s *Service + project string + region string + resource string + testpermissionsrequest *TestPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. +// +// - project: Project ID for this request. +// - region: The name of the region for this request. +// - resource: Name or id of the resource for this request. +func (r *AddressesService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *AddressesTestIamPermissionsCall { + c := &AddressesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.resource = resource + c.testpermissionsrequest = testpermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *AddressesTestIamPermissionsCall) Fields(s ...googleapi.Field) *AddressesTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AddressesTestIamPermissionsCall) Context(ctx context.Context) *AddressesTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *AddressesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AddressesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testpermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions") + 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{ + "project": c.project, + "region": c.region, + "resource": c.resource, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.addresses.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.addresses.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *TestPermissionsResponse.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 *AddressesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, 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 := &TestPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.addresses.testIamPermissions", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type AdviceCalendarModeCall struct { + s *Service + project string + region string + calendarmodeadvicerequest *CalendarModeAdviceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// CalendarMode: Advise how, where and when to create the requested amount of +// instances +// with specified accelerators, within the specified time and location +// limits. +// The method recommends creating future reservations for the +// requested +// resources. +// +// - project: Project ID for this request. +// - region: Name of the region for this request. +func (r *AdviceService) CalendarMode(project string, region string, calendarmodeadvicerequest *CalendarModeAdviceRequest) *AdviceCalendarModeCall { + c := &AdviceCalendarModeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.calendarmodeadvicerequest = calendarmodeadvicerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *AdviceCalendarModeCall) Fields(s ...googleapi.Field) *AdviceCalendarModeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AdviceCalendarModeCall) Context(ctx context.Context) *AdviceCalendarModeCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *AdviceCalendarModeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AdviceCalendarModeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.calendarmodeadvicerequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/advice/calendarMode") + 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{ + "project": c.project, + "region": c.region, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.advice.calendarMode", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.advice.calendarMode" call. +// Any non-2xx status code is an error. Response headers are in either +// *CalendarModeAdviceResponse.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 *AdviceCalendarModeCall) Do(opts ...googleapi.CallOption) (*CalendarModeAdviceResponse, 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 := &CalendarModeAdviceResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.advice.calendarMode", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type AdviceCapacityCall struct { + s *Service + project string + region string + capacityadvicerequest *CapacityAdviceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Capacity: Advice on making real-time decisions (such as choosing zone +// or +// machine types) during deployment to maximize your chances of +// obtaining +// capacity. +// +// - project: Project ID for this request. +// - region: Name of the region for this request. +func (r *AdviceService) Capacity(project string, region string, capacityadvicerequest *CapacityAdviceRequest) *AdviceCapacityCall { + c := &AdviceCapacityCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.capacityadvicerequest = capacityadvicerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *AdviceCapacityCall) Fields(s ...googleapi.Field) *AdviceCapacityCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7365,8 +8093,12 @@ type BackendServicesListUsableCall struct { header_ http.Header } -// ListUsable: Retrieves a list of all usable backend services in the specified -// project. +// ListUsable: Retrieves a list of all usable backend services for Application +// Load +// Balancers and Proxy Network Load Balancers in the specified project. +// Backend services for external and internal passthrough Network +// Load +// Balancers are not included in the response. // // - project: Project ID for this request. func (r *BackendServicesService) ListUsable(project string) *BackendServicesListUsableCall { @@ -9148,138 +9880,26 @@ func (c *CrossSiteNetworksPatchCall) Do(opts ...googleapi.CallOption) (*Operatio return ret, nil } -type DiskSettingsGetCall struct { - s *Service - project string - zone string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Get Zonal Disk Settings. -// -// - project: Project ID for this request. -// - zone: Name of the zone for this request. -func (r *DiskSettingsService) Get(project string, zone string) *DiskSettingsGetCall { - c := &DiskSettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.zone = zone - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *DiskSettingsGetCall) Fields(s ...googleapi.Field) *DiskSettingsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *DiskSettingsGetCall) IfNoneMatch(entityTag string) *DiskSettingsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *DiskSettingsGetCall) Context(ctx context.Context) *DiskSettingsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *DiskSettingsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *DiskSettingsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/diskSettings") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "zone": c.zone, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.diskSettings.get", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.diskSettings.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *DiskSettings.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 *DiskSettingsGetCall) Do(opts ...googleapi.CallOption) (*DiskSettings, 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 := &DiskSettings{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.diskSettings.get", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type DiskSettingsPatchCall struct { - s *Service - project string - zone string - disksettings *DiskSettings - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DhcpOptionsConfigsDeleteCall struct { + s *Service + project string + region string + dhcpOptionsConfig string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Patch Zonal Disk Settings +// Delete: Deletes the specified DhcpOptionsConfig in the given location // +// - dhcpOptionsConfig: Name of the DhcpOptionsConfig resource to delete. // - project: Project ID for this request. -// - zone: The name of the zone for this request. -func (r *DiskSettingsService) Patch(project string, zone string, disksettings *DiskSettings) *DiskSettingsPatchCall { - c := &DiskSettingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - region: Name of the region of this request. +func (r *DhcpOptionsConfigsService) Delete(project string, region string, dhcpOptionsConfig string) *DhcpOptionsConfigsDeleteCall { + c := &DhcpOptionsConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.zone = zone - c.disksettings = disksettings + c.region = region + c.dhcpOptionsConfig = dhcpOptionsConfig return c } @@ -9300,70 +9920,61 @@ func (r *DiskSettingsService) Patch(project string, zone string, disksettings *D // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *DiskSettingsPatchCall) RequestId(requestId string) *DiskSettingsPatchCall { +// end_interface: MixerMutationRequestBuilder +func (c *DhcpOptionsConfigsDeleteCall) RequestId(requestId string) *DhcpOptionsConfigsDeleteCall { c.urlParams_.Set("requestId", requestId) return c } -// UpdateMask sets the optional parameter "updateMask": update_mask indicates -// fields to be updated as part of this request. -func (c *DiskSettingsPatchCall) UpdateMask(updateMask string) *DiskSettingsPatchCall { - c.urlParams_.Set("updateMask", updateMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DiskSettingsPatchCall) Fields(s ...googleapi.Field) *DiskSettingsPatchCall { +func (c *DhcpOptionsConfigsDeleteCall) Fields(s ...googleapi.Field) *DhcpOptionsConfigsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *DiskSettingsPatchCall) Context(ctx context.Context) *DiskSettingsPatchCall { +func (c *DhcpOptionsConfigsDeleteCall) Context(ctx context.Context) *DhcpOptionsConfigsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DiskSettingsPatchCall) Header() http.Header { +func (c *DhcpOptionsConfigsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DiskSettingsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disksettings) - if err != nil { - return nil, err - } +func (c *DhcpOptionsConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/diskSettings") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "zone": c.zone, + "project": c.project, + "region": c.region, + "dhcpOptionsConfig": c.dhcpOptionsConfig, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.diskSettings.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.dhcpOptionsConfigs.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.diskSettings.patch" call. +// Do executes the "compute.dhcpOptionsConfigs.delete" call. // 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 *DiskSettingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DhcpOptionsConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9393,190 +10004,38 @@ func (c *DiskSettingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, er if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.diskSettings.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.dhcpOptionsConfigs.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DiskTypesAggregatedListCall struct { - s *Service - project string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type DhcpOptionsConfigsGetCall struct { + s *Service + project string + region string + dhcpOptionsConfig string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// AggregatedList: Retrieves an aggregated list of disk types. -// -// To prevent failure, it is recommended that you set -// the -// `returnPartialSuccess` parameter to `true`. +// Get: Returns the specified DhcpOptionsConfig resource in the given location. // +// - dhcpOptionsConfig: Name of the DhcpOptionsConfig resource to return. // - project: Project ID for this request. -func (r *DiskTypesService) AggregatedList(project string) *DiskTypesAggregatedListCall { - c := &DiskTypesAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - region: Name of the region of this request. +func (r *DhcpOptionsConfigsService) Get(project string, region string, dhcpOptionsConfig string) *DhcpOptionsConfigsGetCall { + c := &DhcpOptionsConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - return c -} - -// Filter sets the optional parameter "filter": A filter expression that -// filters resources listed in the response. Most -// Compute resources support two types of filter expressions: -// expressions that support regular expressions and expressions that follow -// API improvement proposal AIP-160. -// These two types of filter expressions cannot be mixed in one request. -// -// If you want to use AIP-160, your 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 `:*` 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 onresource 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) -// ``` -// -// If you want to use a regular expression, use the `eq` (equal) or `ne` -// (not equal) operator against a single un-parenthesized expression with -// or -// without quotes or against multiple parenthesized expressions. -// Examples: -// -// `fieldname eq unquoted literal` -// `fieldname eq 'single quoted literal'` -// `fieldname eq "double quoted literal" -// `(fieldname1 eq literal) (fieldname2 ne "literal")` -// -// The literal value is interpreted as a regular expression using GoogleRE2 -// library syntax. -// The literal value must match the entire field. -// -// For example, to filter for instances that do not end with name -// "instance", -// you would use `name ne .*instance`. -// -// You cannot combine constraints on multiple fields using regular -// expressions. -func (c *DiskTypesAggregatedListCall) Filter(filter string) *DiskTypesAggregatedListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// IncludeAllScopes sets the optional parameter "includeAllScopes": 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. -func (c *DiskTypesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *DiskTypesAggregatedListCall { - c.urlParams_.Set("includeAllScopes", fmt.Sprint(includeAllScopes)) - return c -} - -// MaxResults sets the optional parameter "maxResults": 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`) -func (c *DiskTypesAggregatedListCall) MaxResults(maxResults int64) *DiskTypesAggregatedListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// OrderBy sets the optional parameter "orderBy": 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. -func (c *DiskTypesAggregatedListCall) OrderBy(orderBy string) *DiskTypesAggregatedListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageToken sets the optional parameter "pageToken": Specifies a page token to -// use. Set `pageToken` to the -// `nextPageToken` returned by a previous list request to get -// the next page of results. -func (c *DiskTypesAggregatedListCall) PageToken(pageToken string) *DiskTypesAggregatedListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": -// Opt-in for partial success behavior which provides partial results in -// case -// of failure. The default value is false. -// -// For example, when partial success behavior is enabled, aggregatedList for -// a -// single zone scope either returns all resources in the zone or no -// resources, -// with an error code. -func (c *DiskTypesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DiskTypesAggregatedListCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) - return c -} - -// ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The -// Shared VPC service project id or service project number for which -// aggregated list request is invoked for subnetworks list-usable api. -func (c *DiskTypesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *DiskTypesAggregatedListCall { - c.urlParams_.Set("serviceProjectNumber", fmt.Sprint(serviceProjectNumber)) + c.region = region + c.dhcpOptionsConfig = dhcpOptionsConfig return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DiskTypesAggregatedListCall) Fields(s ...googleapi.Field) *DiskTypesAggregatedListCall { +func (c *DhcpOptionsConfigsGetCall) Fields(s ...googleapi.Field) *DhcpOptionsConfigsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9584,34 +10043,34 @@ func (c *DiskTypesAggregatedListCall) Fields(s ...googleapi.Field) *DiskTypesAgg // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *DiskTypesAggregatedListCall) IfNoneMatch(entityTag string) *DiskTypesAggregatedListCall { +func (c *DhcpOptionsConfigsGetCall) IfNoneMatch(entityTag string) *DhcpOptionsConfigsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *DiskTypesAggregatedListCall) Context(ctx context.Context) *DiskTypesAggregatedListCall { +func (c *DhcpOptionsConfigsGetCall) Context(ctx context.Context) *DhcpOptionsConfigsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DiskTypesAggregatedListCall) Header() http.Header { +func (c *DhcpOptionsConfigsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DiskTypesAggregatedListCall) doRequest(alt string) (*http.Response, error) { +func (c *DhcpOptionsConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/diskTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -9619,19 +10078,21 @@ func (c *DiskTypesAggregatedListCall) doRequest(alt string) (*http.Response, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, + "project": c.project, + "region": c.region, + "dhcpOptionsConfig": c.dhcpOptionsConfig, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.diskTypes.aggregatedList", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.dhcpOptionsConfigs.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.diskTypes.aggregatedList" call. +// Do executes the "compute.dhcpOptionsConfigs.get" call. // Any non-2xx status code is an error. Response headers are in either -// *DiskTypeAggregatedList.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// *DhcpOptionsConfig.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 *DiskTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*DiskTypeAggregatedList, error) { +func (c *DhcpOptionsConfigsGetCall) Do(opts ...googleapi.CallOption) (*DhcpOptionsConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9650,7 +10111,7 @@ func (c *DiskTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*DiskTyp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &DiskTypeAggregatedList{ + ret := &DhcpOptionsConfig{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9661,115 +10122,109 @@ func (c *DiskTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*DiskTyp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.diskTypes.aggregatedList", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.dhcpOptionsConfigs.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *DiskTypesAggregatedListCall) Pages(ctx context.Context, f func(*DiskTypeAggregatedList) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type DiskTypesGetCall struct { - s *Service - project string - zone string - diskType string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type DhcpOptionsConfigsInsertCall struct { + s *Service + project string + region string + dhcpoptionsconfig *DhcpOptionsConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Returns the specified disk type. +// Insert: Creates a DhcpOptionsConfig in the specified project in the given +// location +// using the parameters that are included in the request. // -// - diskType: Name of the disk type to return. // - project: Project ID for this request. -// - zone: The name of the zone for this request. -func (r *DiskTypesService) Get(project string, zone string, diskType string) *DiskTypesGetCall { - c := &DiskTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - region: Name of the region of this request. +func (r *DhcpOptionsConfigsService) Insert(project string, region string, dhcpoptionsconfig *DhcpOptionsConfig) *DhcpOptionsConfigsInsertCall { + c := &DhcpOptionsConfigsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.zone = zone - c.diskType = diskType + c.region = region + c.dhcpoptionsconfig = dhcpoptionsconfig + return c +} + +// RequestId sets the optional parameter "requestId": 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). +// end_interface: MixerMutationRequestBuilder +func (c *DhcpOptionsConfigsInsertCall) RequestId(requestId string) *DhcpOptionsConfigsInsertCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DiskTypesGetCall) Fields(s ...googleapi.Field) *DiskTypesGetCall { +func (c *DhcpOptionsConfigsInsertCall) Fields(s ...googleapi.Field) *DhcpOptionsConfigsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *DiskTypesGetCall) IfNoneMatch(entityTag string) *DiskTypesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *DiskTypesGetCall) Context(ctx context.Context) *DiskTypesGetCall { +func (c *DhcpOptionsConfigsInsertCall) Context(ctx context.Context) *DhcpOptionsConfigsInsertCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DiskTypesGetCall) Header() http.Header { +func (c *DhcpOptionsConfigsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DiskTypesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *DhcpOptionsConfigsInsertCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.dhcpoptionsconfig) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/diskTypes/{diskType}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/dhcpOptionsConfigs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "zone": c.zone, - "diskType": c.diskType, + "project": c.project, + "region": c.region, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.diskTypes.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.dhcpOptionsConfigs.insert", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.diskTypes.get" call. +// Do executes the "compute.dhcpOptionsConfigs.insert" call. // Any non-2xx status code is an error. Response headers are in either -// *DiskType.ServerResponse.Header or (if a response was returned at all) in +// *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 *DiskTypesGetCall) Do(opts ...googleapi.CallOption) (*DiskType, error) { +func (c *DhcpOptionsConfigsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9788,7 +10243,7 @@ func (c *DiskTypesGetCall) Do(opts ...googleapi.CallOption) (*DiskType, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &DiskType{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9799,29 +10254,28 @@ func (c *DiskTypesGetCall) Do(opts ...googleapi.CallOption) (*DiskType, error) { if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.diskTypes.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.dhcpOptionsConfigs.insert", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DiskTypesListCall struct { +type DhcpOptionsConfigsListCall struct { s *Service project string - zone string + region string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Retrieves a list of disk types available to the specified -// project. +// List: Lists the DhcpOptionsConfigs for a project in the given location. // // - project: Project ID for this request. -// - zone: The name of the zone for this request. -func (r *DiskTypesService) List(project string, zone string) *DiskTypesListCall { - c := &DiskTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - region: Name of the region of this request. +func (r *DhcpOptionsConfigsService) List(project string, region string) *DhcpOptionsConfigsListCall { + c := &DhcpOptionsConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.zone = zone + c.region = region return c } @@ -9892,7 +10346,7 @@ func (r *DiskTypesService) List(project string, zone string) *DiskTypesListCall // // You cannot combine constraints on multiple fields using regular // expressions. -func (c *DiskTypesListCall) Filter(filter string) *DiskTypesListCall { +func (c *DhcpOptionsConfigsListCall) Filter(filter string) *DhcpOptionsConfigsListCall { c.urlParams_.Set("filter", filter) return c } @@ -9904,7 +10358,7 @@ func (c *DiskTypesListCall) Filter(filter string) *DiskTypesListCall { // the next page of results in subsequent list requests. Acceptable values // are // `0` to `500`, inclusive. (Default: `500`) -func (c *DiskTypesListCall) MaxResults(maxResults int64) *DiskTypesListCall { +func (c *DhcpOptionsConfigsListCall) MaxResults(maxResults int64) *DhcpOptionsConfigsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } @@ -9924,7 +10378,7 @@ func (c *DiskTypesListCall) MaxResults(maxResults int64) *DiskTypesListCall { // // Currently, only sorting by `name` or // `creationTimestamp desc` is supported. -func (c *DiskTypesListCall) OrderBy(orderBy string) *DiskTypesListCall { +func (c *DhcpOptionsConfigsListCall) OrderBy(orderBy string) *DhcpOptionsConfigsListCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -9933,7 +10387,7 @@ func (c *DiskTypesListCall) OrderBy(orderBy string) *DiskTypesListCall { // use. Set `pageToken` to the // `nextPageToken` returned by a previous list request to get // the next page of results. -func (c *DiskTypesListCall) PageToken(pageToken string) *DiskTypesListCall { +func (c *DhcpOptionsConfigsListCall) PageToken(pageToken string) *DhcpOptionsConfigsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -9948,7 +10402,7 @@ func (c *DiskTypesListCall) PageToken(pageToken string) *DiskTypesListCall { // single zone scope either returns all resources in the zone or no // resources, // with an error code. -func (c *DiskTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DiskTypesListCall { +func (c *DhcpOptionsConfigsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DhcpOptionsConfigsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -9956,7 +10410,7 @@ func (c *DiskTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *Dis // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DiskTypesListCall) Fields(s ...googleapi.Field) *DiskTypesListCall { +func (c *DhcpOptionsConfigsListCall) Fields(s ...googleapi.Field) *DhcpOptionsConfigsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9964,34 +10418,34 @@ func (c *DiskTypesListCall) Fields(s ...googleapi.Field) *DiskTypesListCall { // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *DiskTypesListCall) IfNoneMatch(entityTag string) *DiskTypesListCall { +func (c *DhcpOptionsConfigsListCall) IfNoneMatch(entityTag string) *DhcpOptionsConfigsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *DiskTypesListCall) Context(ctx context.Context) *DiskTypesListCall { +func (c *DhcpOptionsConfigsListCall) Context(ctx context.Context) *DhcpOptionsConfigsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DiskTypesListCall) Header() http.Header { +func (c *DhcpOptionsConfigsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DiskTypesListCall) doRequest(alt string) (*http.Response, error) { +func (c *DhcpOptionsConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/diskTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/dhcpOptionsConfigs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -10000,18 +10454,19 @@ func (c *DiskTypesListCall) doRequest(alt string) (*http.Response, error) { req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "project": c.project, - "zone": c.zone, + "region": c.region, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.diskTypes.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.dhcpOptionsConfigs.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.diskTypes.list" call. +// Do executes the "compute.dhcpOptionsConfigs.list" call. // Any non-2xx status code is an error. Response headers are in either -// *DiskTypeList.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 *DiskTypesListCall) Do(opts ...googleapi.CallOption) (*DiskTypeList, error) { +// *DhcpOptionsConfigList.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 *DhcpOptionsConfigsListCall) Do(opts ...googleapi.CallOption) (*DhcpOptionsConfigList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10030,7 +10485,7 @@ func (c *DiskTypesListCall) Do(opts ...googleapi.CallOption) (*DiskTypeList, err if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &DiskTypeList{ + ret := &DhcpOptionsConfigList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10041,14 +10496,14 @@ func (c *DiskTypesListCall) Do(opts ...googleapi.CallOption) (*DiskTypeList, err if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.diskTypes.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.dhcpOptionsConfigs.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *DiskTypesListCall) Pages(ctx context.Context, f func(*DiskTypeList) error) error { +func (c *DhcpOptionsConfigsListCall) Pages(ctx context.Context, f func(*DhcpOptionsConfigList) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -10066,31 +10521,396 @@ func (c *DiskTypesListCall) Pages(ctx context.Context, f func(*DiskTypeList) err } } -type DisksAddResourcePoliciesCall struct { - s *Service - project string - zone string - disk string - disksaddresourcepoliciesrequest *DisksAddResourcePoliciesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DhcpOptionsConfigsPatchCall struct { + s *Service + project string + region string + dhcpOptionsConfig string + dhcpoptionsconfig *DhcpOptionsConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// AddResourcePolicies: Adds existing resource policies to a disk. You can only -// add one -// policy which will be applied to this disk for scheduling snapshot -// creation. +// Patch: Patches the specified DhcpOptionsConfig resource with the data +// included in +// the request. This method supports PATCH +// semantics and usesJSON merge +// patch format and processing rules. +// +// - dhcpOptionsConfig: Name of the DhcpOptionsConfig resource to patch. +// - project: Project ID for this request. +// - region: Name of the region for this request. +func (r *DhcpOptionsConfigsService) Patch(project string, region string, dhcpOptionsConfig string, dhcpoptionsconfig *DhcpOptionsConfig) *DhcpOptionsConfigsPatchCall { + c := &DhcpOptionsConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.dhcpOptionsConfig = dhcpOptionsConfig + c.dhcpoptionsconfig = dhcpoptionsconfig + return c +} + +// RequestId sets the optional parameter "requestId": 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). +// end_interface: MixerMutationRequestBuilder +func (c *DhcpOptionsConfigsPatchCall) RequestId(requestId string) *DhcpOptionsConfigsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": update_mask indicates +// fields to be updated as part of this request. +func (c *DhcpOptionsConfigsPatchCall) UpdateMask(updateMask string) *DhcpOptionsConfigsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *DhcpOptionsConfigsPatchCall) Fields(s ...googleapi.Field) *DhcpOptionsConfigsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *DhcpOptionsConfigsPatchCall) Context(ctx context.Context) *DhcpOptionsConfigsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *DhcpOptionsConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DhcpOptionsConfigsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.dhcpoptionsconfig) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/dhcpOptionsConfigs/{dhcpOptionsConfig}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "dhcpOptionsConfig": c.dhcpOptionsConfig, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.dhcpOptionsConfigs.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.dhcpOptionsConfigs.patch" call. +// 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 *DhcpOptionsConfigsPatchCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.dhcpOptionsConfigs.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type DhcpOptionsConfigsTestIamPermissionsCall struct { + s *Service + project string + region string + resource string + testpermissionsrequest *TestPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. +// +// - project: Project ID for this request. +// - region: The name of the region for this request. +// - resource: Name or id of the resource for this request. +func (r *DhcpOptionsConfigsService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *DhcpOptionsConfigsTestIamPermissionsCall { + c := &DhcpOptionsConfigsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.resource = resource + c.testpermissionsrequest = testpermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *DhcpOptionsConfigsTestIamPermissionsCall) Fields(s ...googleapi.Field) *DhcpOptionsConfigsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *DhcpOptionsConfigsTestIamPermissionsCall) Context(ctx context.Context) *DhcpOptionsConfigsTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *DhcpOptionsConfigsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DhcpOptionsConfigsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testpermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/dhcpOptionsConfigs/{resource}/testIamPermissions") + 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{ + "project": c.project, + "region": c.region, + "resource": c.resource, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.dhcpOptionsConfigs.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.dhcpOptionsConfigs.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *TestPermissionsResponse.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 *DhcpOptionsConfigsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, 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 := &TestPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.dhcpOptionsConfigs.testIamPermissions", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type DiskSettingsGetCall struct { + s *Service + project string + zone string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get Zonal Disk Settings. +// +// - project: Project ID for this request. +// - zone: Name of the zone for this request. +func (r *DiskSettingsService) Get(project string, zone string) *DiskSettingsGetCall { + c := &DiskSettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *DiskSettingsGetCall) Fields(s ...googleapi.Field) *DiskSettingsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *DiskSettingsGetCall) IfNoneMatch(entityTag string) *DiskSettingsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *DiskSettingsGetCall) Context(ctx context.Context) *DiskSettingsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *DiskSettingsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *DiskSettingsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/diskSettings") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.diskSettings.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.diskSettings.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *DiskSettings.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 *DiskSettingsGetCall) Do(opts ...googleapi.CallOption) (*DiskSettings, 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 := &DiskSettings{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.diskSettings.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type DiskSettingsPatchCall struct { + s *Service + project string + zone string + disksettings *DiskSettings + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Patch Zonal Disk Settings // -// - disk: The disk name for this request. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *DisksService) AddResourcePolicies(project string, zone string, disk string, disksaddresourcepoliciesrequest *DisksAddResourcePoliciesRequest) *DisksAddResourcePoliciesCall { - c := &DisksAddResourcePoliciesCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DiskSettingsService) Patch(project string, zone string, disksettings *DiskSettings) *DiskSettingsPatchCall { + c := &DiskSettingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone - c.disk = disk - c.disksaddresourcepoliciesrequest = disksaddresourcepoliciesrequest + c.disksettings = disksettings return c } @@ -10111,45 +10931,52 @@ func (r *DisksService) AddResourcePolicies(project string, zone string, disk str // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *DisksAddResourcePoliciesCall) RequestId(requestId string) *DisksAddResourcePoliciesCall { +func (c *DiskSettingsPatchCall) RequestId(requestId string) *DiskSettingsPatchCall { c.urlParams_.Set("requestId", requestId) return c } +// UpdateMask sets the optional parameter "updateMask": update_mask indicates +// fields to be updated as part of this request. +func (c *DiskSettingsPatchCall) UpdateMask(updateMask string) *DiskSettingsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksAddResourcePoliciesCall) Fields(s ...googleapi.Field) *DisksAddResourcePoliciesCall { +func (c *DiskSettingsPatchCall) Fields(s ...googleapi.Field) *DiskSettingsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *DisksAddResourcePoliciesCall) Context(ctx context.Context) *DisksAddResourcePoliciesCall { +func (c *DiskSettingsPatchCall) Context(ctx context.Context) *DiskSettingsPatchCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksAddResourcePoliciesCall) Header() http.Header { +func (c *DiskSettingsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksAddResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { +func (c *DiskSettingsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disksaddresourcepoliciesrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disksettings) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/diskSettings") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -10157,18 +10984,17 @@ func (c *DisksAddResourcePoliciesCall) doRequest(alt string) (*http.Response, er googleapi.Expand(req.URL, map[string]string{ "project": c.project, "zone": c.zone, - "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.addResourcePolicies", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.diskSettings.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.addResourcePolicies" call. +// Do executes the "compute.diskSettings.patch" call. // 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 *DisksAddResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DiskSettingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10198,11 +11024,11 @@ func (c *DisksAddResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operat if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.addResourcePolicies", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.diskSettings.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksAggregatedListCall struct { +type DiskTypesAggregatedListCall struct { s *Service project string urlParams_ gensupport.URLParams @@ -10211,15 +11037,15 @@ type DisksAggregatedListCall struct { header_ http.Header } -// AggregatedList: Retrieves an aggregated list of persistent disks. +// AggregatedList: Retrieves an aggregated list of disk types. // // To prevent failure, it is recommended that you set // the // `returnPartialSuccess` parameter to `true`. // // - project: Project ID for this request. -func (r *DisksService) AggregatedList(project string) *DisksAggregatedListCall { - c := &DisksAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DiskTypesService) AggregatedList(project string) *DiskTypesAggregatedListCall { + c := &DiskTypesAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project return c } @@ -10291,7 +11117,7 @@ func (r *DisksService) AggregatedList(project string) *DisksAggregatedListCall { // // You cannot combine constraints on multiple fields using regular // expressions. -func (c *DisksAggregatedListCall) Filter(filter string) *DisksAggregatedListCall { +func (c *DiskTypesAggregatedListCall) Filter(filter string) *DiskTypesAggregatedListCall { c.urlParams_.Set("filter", filter) return c } @@ -10309,7 +11135,7 @@ func (c *DisksAggregatedListCall) Filter(filter string) *DisksAggregatedListCall // scopes of the scope types where the resource type is expected to be // found // will be included. -func (c *DisksAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *DisksAggregatedListCall { +func (c *DiskTypesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *DiskTypesAggregatedListCall { c.urlParams_.Set("includeAllScopes", fmt.Sprint(includeAllScopes)) return c } @@ -10321,7 +11147,7 @@ func (c *DisksAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *Disks // the next page of results in subsequent list requests. Acceptable values // are // `0` to `500`, inclusive. (Default: `500`) -func (c *DisksAggregatedListCall) MaxResults(maxResults int64) *DisksAggregatedListCall { +func (c *DiskTypesAggregatedListCall) MaxResults(maxResults int64) *DiskTypesAggregatedListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } @@ -10341,7 +11167,7 @@ func (c *DisksAggregatedListCall) MaxResults(maxResults int64) *DisksAggregatedL // // Currently, only sorting by `name` or // `creationTimestamp desc` is supported. -func (c *DisksAggregatedListCall) OrderBy(orderBy string) *DisksAggregatedListCall { +func (c *DiskTypesAggregatedListCall) OrderBy(orderBy string) *DiskTypesAggregatedListCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -10350,7 +11176,7 @@ func (c *DisksAggregatedListCall) OrderBy(orderBy string) *DisksAggregatedListCa // use. Set `pageToken` to the // `nextPageToken` returned by a previous list request to get // the next page of results. -func (c *DisksAggregatedListCall) PageToken(pageToken string) *DisksAggregatedListCall { +func (c *DiskTypesAggregatedListCall) PageToken(pageToken string) *DiskTypesAggregatedListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -10365,7 +11191,7 @@ func (c *DisksAggregatedListCall) PageToken(pageToken string) *DisksAggregatedLi // single zone scope either returns all resources in the zone or no // resources, // with an error code. -func (c *DisksAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DisksAggregatedListCall { +func (c *DiskTypesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DiskTypesAggregatedListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -10373,7 +11199,7 @@ func (c *DisksAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool // ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The // Shared VPC service project id or service project number for which // aggregated list request is invoked for subnetworks list-usable api. -func (c *DisksAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *DisksAggregatedListCall { +func (c *DiskTypesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *DiskTypesAggregatedListCall { c.urlParams_.Set("serviceProjectNumber", fmt.Sprint(serviceProjectNumber)) return c } @@ -10381,7 +11207,7 @@ func (c *DisksAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int6 // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksAggregatedListCall) Fields(s ...googleapi.Field) *DisksAggregatedListCall { +func (c *DiskTypesAggregatedListCall) Fields(s ...googleapi.Field) *DiskTypesAggregatedListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -10389,34 +11215,34 @@ func (c *DisksAggregatedListCall) Fields(s ...googleapi.Field) *DisksAggregatedL // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *DisksAggregatedListCall) IfNoneMatch(entityTag string) *DisksAggregatedListCall { +func (c *DiskTypesAggregatedListCall) IfNoneMatch(entityTag string) *DiskTypesAggregatedListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *DisksAggregatedListCall) Context(ctx context.Context) *DisksAggregatedListCall { +func (c *DiskTypesAggregatedListCall) Context(ctx context.Context) *DiskTypesAggregatedListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksAggregatedListCall) Header() http.Header { +func (c *DiskTypesAggregatedListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksAggregatedListCall) doRequest(alt string) (*http.Response, error) { +func (c *DiskTypesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/disks") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/diskTypes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -10426,17 +11252,17 @@ func (c *DisksAggregatedListCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.aggregatedList", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.diskTypes.aggregatedList", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.aggregatedList" call. +// Do executes the "compute.diskTypes.aggregatedList" call. // Any non-2xx status code is an error. Response headers are in either -// *DiskAggregatedList.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// *DiskTypeAggregatedList.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 *DisksAggregatedListCall) Do(opts ...googleapi.CallOption) (*DiskAggregatedList, error) { +func (c *DiskTypesAggregatedListCall) Do(opts ...googleapi.CallOption) (*DiskTypeAggregatedList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10455,7 +11281,7 @@ func (c *DisksAggregatedListCall) Do(opts ...googleapi.CallOption) (*DiskAggrega if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &DiskAggregatedList{ + ret := &DiskTypeAggregatedList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10466,14 +11292,14 @@ func (c *DisksAggregatedListCall) Do(opts ...googleapi.CallOption) (*DiskAggrega if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.aggregatedList", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.diskTypes.aggregatedList", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *DisksAggregatedListCall) Pages(ctx context.Context, f func(*DiskAggregatedList) error) error { +func (c *DiskTypesAggregatedListCall) Pages(ctx context.Context, f func(*DiskTypeAggregatedList) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -10491,102 +11317,90 @@ func (c *DisksAggregatedListCall) Pages(ctx context.Context, f func(*DiskAggrega } } -type DisksBulkInsertCall struct { - s *Service - project string - zone string - bulkinsertdiskresource *BulkInsertDiskResource - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DiskTypesGetCall struct { + s *Service + project string + zone string + diskType string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// BulkInsert: Bulk create a set of disks. +// Get: Returns the specified disk type. // +// - diskType: Name of the disk type to return. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *DisksService) BulkInsert(project string, zone string, bulkinsertdiskresource *BulkInsertDiskResource) *DisksBulkInsertCall { - c := &DisksBulkInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DiskTypesService) Get(project string, zone string, diskType string) *DiskTypesGetCall { + c := &DiskTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone - c.bulkinsertdiskresource = bulkinsertdiskresource - return c -} - -// RequestId sets the optional parameter "requestId": 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). -func (c *DisksBulkInsertCall) RequestId(requestId string) *DisksBulkInsertCall { - c.urlParams_.Set("requestId", requestId) + c.diskType = diskType return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksBulkInsertCall) Fields(s ...googleapi.Field) *DisksBulkInsertCall { +func (c *DiskTypesGetCall) Fields(s ...googleapi.Field) *DiskTypesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *DiskTypesGetCall) IfNoneMatch(entityTag string) *DiskTypesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *DisksBulkInsertCall) Context(ctx context.Context) *DisksBulkInsertCall { +func (c *DiskTypesGetCall) Context(ctx context.Context) *DiskTypesGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksBulkInsertCall) Header() http.Header { +func (c *DiskTypesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksBulkInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.bulkinsertdiskresource) - if err != nil { - return nil, err +func (c *DiskTypesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/bulkInsert") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/diskTypes/{diskType}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "zone": c.zone, + "project": c.project, + "zone": c.zone, + "diskType": c.diskType, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.bulkInsert", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.diskTypes.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.bulkInsert" call. +// Do executes the "compute.diskTypes.get" call. // 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 +// *DiskType.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 *DisksBulkInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DiskTypesGetCall) Do(opts ...googleapi.CallOption) (*DiskType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10605,7 +11419,7 @@ func (c *DisksBulkInsertCall) Do(opts ...googleapi.CallOption) (*Operation, erro if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &DiskType{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10616,229 +11430,201 @@ func (c *DisksBulkInsertCall) Do(opts ...googleapi.CallOption) (*Operation, erro if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.bulkInsert", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.diskTypes.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksBulkSetLabelsCall struct { - s *Service - project string - zone string - bulkzonesetlabelsrequest *BulkZoneSetLabelsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DiskTypesListCall struct { + s *Service + project string + zone string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// BulkSetLabels: Sets the labels on many disks at once. To learn more about -// labels, read theLabeling -// Resources documentation. +// List: Retrieves a list of disk types available to the specified +// project. // // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *DisksService) BulkSetLabels(project string, zone string, bulkzonesetlabelsrequest *BulkZoneSetLabelsRequest) *DisksBulkSetLabelsCall { - c := &DisksBulkSetLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DiskTypesService) List(project string, zone string) *DiskTypesListCall { + c := &DiskTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone - c.bulkzonesetlabelsrequest = bulkzonesetlabelsrequest return c } -// RequestId sets the optional parameter "requestId": 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. +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most +// Compute resources support two types of filter expressions: +// expressions that support regular expressions and expressions that follow +// API improvement proposal AIP-160. +// These two types of filter expressions cannot be mixed in one request. // -// 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. +// If you want to use AIP-160, your 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 `:`. // -// The request ID must be -// a valid UUID with the exception that zero UUID is not -// supported -// (00000000-0000-0000-0000-000000000000). -func (c *DisksBulkSetLabelsCall) RequestId(requestId string) *DisksBulkSetLabelsCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// Resource sets the optional parameter "resource": Name or id of the resource -// for this request. -func (c *DisksBulkSetLabelsCall) Resource(resource string) *DisksBulkSetLabelsCall { - c.urlParams_.Set("resource", resource) +// For example, if you are filtering Compute Engine instances, you can +// exclude instances named `example-instance` by specifying +// `name != example-instance`. +// +// 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 onresource 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) +// ``` +// +// If you want to use a regular expression, use the `eq` (equal) or `ne` +// (not equal) operator against a single un-parenthesized expression with +// or +// without quotes or against multiple parenthesized expressions. +// Examples: +// +// `fieldname eq unquoted literal` +// `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" +// `(fieldname1 eq literal) (fieldname2 ne "literal")` +// +// The literal value is interpreted as a regular expression using GoogleRE2 +// library syntax. +// The literal value must match the entire field. +// +// For example, to filter for instances that do not end with name +// "instance", +// you would use `name ne .*instance`. +// +// You cannot combine constraints on multiple fields using regular +// expressions. +func (c *DiskTypesListCall) Filter(filter string) *DiskTypesListCall { + c.urlParams_.Set("filter", filter) return c } -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *DisksBulkSetLabelsCall) Fields(s ...googleapi.Field) *DisksBulkSetLabelsCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) +// MaxResults sets the optional parameter "maxResults": 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`) +func (c *DiskTypesListCall) MaxResults(maxResults int64) *DiskTypesListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } -// Context sets the context to be used in this call's Do method. -func (c *DisksBulkSetLabelsCall) Context(ctx context.Context) *DisksBulkSetLabelsCall { - c.ctx_ = ctx +// OrderBy sets the optional parameter "orderBy": 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. +func (c *DiskTypesListCall) OrderBy(orderBy string) *DiskTypesListCall { + c.urlParams_.Set("orderBy", orderBy) return c } -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *DisksBulkSetLabelsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *DisksBulkSetLabelsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.bulkzonesetlabelsrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/bulkSetLabels") - 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{ - "project": c.project, - "zone": c.zone, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.bulkSetLabels", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.disks.bulkSetLabels" call. -// 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 *DisksBulkSetLabelsCall) 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 - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.bulkSetLabels", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type DisksConvertCall struct { - s *Service - project string - zone string - disk string - disksconvertrequest *DisksConvertRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Convert: Converts a persistent disk to support Gen4+ VMs. -// -// - disk: Name of the Disk resource, should conform to RFC1035. -// - project: Project ID for this request. -// - zone: The name of the zone for this request. -func (r *DisksService) Convert(project string, zone string, disk string, disksconvertrequest *DisksConvertRequest) *DisksConvertCall { - c := &DisksConvertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.zone = zone - c.disk = disk - c.disksconvertrequest = disksconvertrequest +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the +// `nextPageToken` returned by a previous list request to get +// the next page of results. +func (c *DiskTypesListCall) PageToken(pageToken string) *DiskTypesListCall { + c.urlParams_.Set("pageToken", pageToken) return c } -// RequestId sets the optional parameter "requestId": 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. +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in +// case +// of failure. The default value is false. // -// The request ID must be -// a valid UUID with the exception that zero UUID is not -// supported -// (00000000-0000-0000-0000-000000000000). -func (c *DisksConvertCall) RequestId(requestId string) *DisksConvertCall { - c.urlParams_.Set("requestId", requestId) +// For example, when partial success behavior is enabled, aggregatedList for +// a +// single zone scope either returns all resources in the zone or no +// resources, +// with an error code. +func (c *DiskTypesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DiskTypesListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksConvertCall) Fields(s ...googleapi.Field) *DisksConvertCall { +func (c *DiskTypesListCall) Fields(s ...googleapi.Field) *DiskTypesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *DiskTypesListCall) IfNoneMatch(entityTag string) *DiskTypesListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *DisksConvertCall) Context(ctx context.Context) *DisksConvertCall { +func (c *DiskTypesListCall) Context(ctx context.Context) *DiskTypesListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksConvertCall) Header() http.Header { +func (c *DiskTypesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksConvertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disksconvertrequest) - if err != nil { - return nil, err +func (c *DiskTypesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/convert") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/diskTypes") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -10846,18 +11632,17 @@ func (c *DisksConvertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, "zone": c.zone, - "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.convert", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.diskTypes.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.convert" call. +// Do executes the "compute.diskTypes.list" call. // 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 +// *DiskTypeList.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 *DisksConvertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DiskTypesListCall) Do(opts ...googleapi.CallOption) (*DiskTypeList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10876,7 +11661,7 @@ func (c *DisksConvertCall) Do(opts ...googleapi.CallOption) (*Operation, error) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &DiskTypeList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10887,45 +11672,56 @@ func (c *DisksConvertCall) Do(opts ...googleapi.CallOption) (*Operation, error) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.convert", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.diskTypes.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksCreateSnapshotCall struct { - s *Service - project string - zone string - disk string - snapshot *Snapshot - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *DiskTypesListCall) Pages(ctx context.Context, f func(*DiskTypeList) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// CreateSnapshot: Creates a snapshot of a specified persistent disk. For -// regular snapshot -// creation, consider using snapshots.insert -// instead, as that method supports more features, such as creating -// snapshots -// in a project different from the source disk project. +type DisksAddResourcePoliciesCall struct { + s *Service + project string + zone string + disk string + disksaddresourcepoliciesrequest *DisksAddResourcePoliciesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// AddResourcePolicies: Adds existing resource policies to a disk. You can only +// add one +// policy which will be applied to this disk for scheduling snapshot +// creation. // -// - disk: Name of the persistent disk to snapshot. +// - disk: The disk name for this request. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *DisksService) CreateSnapshot(project string, zone string, disk string, snapshot *Snapshot) *DisksCreateSnapshotCall { - c := &DisksCreateSnapshotCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DisksService) AddResourcePolicies(project string, zone string, disk string, disksaddresourcepoliciesrequest *DisksAddResourcePoliciesRequest) *DisksAddResourcePoliciesCall { + c := &DisksAddResourcePoliciesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.disk = disk - c.snapshot = snapshot - return c -} - -// GuestFlush sets the optional parameter "guestFlush": [Input Only] Whether to -// attempt an application consistent snapshot by -// informing the OS to prepare for the snapshot process. -func (c *DisksCreateSnapshotCall) GuestFlush(guestFlush bool) *DisksCreateSnapshotCall { - c.urlParams_.Set("guestFlush", fmt.Sprint(guestFlush)) + c.disksaddresourcepoliciesrequest = disksaddresourcepoliciesrequest return c } @@ -10946,7 +11742,7 @@ func (c *DisksCreateSnapshotCall) GuestFlush(guestFlush bool) *DisksCreateSnapsh // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *DisksCreateSnapshotCall) RequestId(requestId string) *DisksCreateSnapshotCall { +func (c *DisksAddResourcePoliciesCall) RequestId(requestId string) *DisksAddResourcePoliciesCall { c.urlParams_.Set("requestId", requestId) return c } @@ -10954,35 +11750,35 @@ func (c *DisksCreateSnapshotCall) RequestId(requestId string) *DisksCreateSnapsh // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksCreateSnapshotCall) Fields(s ...googleapi.Field) *DisksCreateSnapshotCall { +func (c *DisksAddResourcePoliciesCall) Fields(s ...googleapi.Field) *DisksAddResourcePoliciesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *DisksCreateSnapshotCall) Context(ctx context.Context) *DisksCreateSnapshotCall { +func (c *DisksAddResourcePoliciesCall) Context(ctx context.Context) *DisksAddResourcePoliciesCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksCreateSnapshotCall) Header() http.Header { +func (c *DisksAddResourcePoliciesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksCreateSnapshotCall) doRequest(alt string) (*http.Response, error) { +func (c *DisksAddResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.snapshot) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disksaddresourcepoliciesrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/createSnapshot") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -10994,16 +11790,16 @@ func (c *DisksCreateSnapshotCall) doRequest(alt string) (*http.Response, error) "zone": c.zone, "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.createSnapshot", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.addResourcePolicies", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.createSnapshot" call. +// Do executes the "compute.disks.addResourcePolicies" call. // 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 *DisksCreateSnapshotCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DisksAddResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11033,109 +11829,245 @@ func (c *DisksCreateSnapshotCall) Do(opts ...googleapi.CallOption) (*Operation, if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.createSnapshot", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.addResourcePolicies", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksDeleteCall struct { - s *Service - project string - zone string - disk string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DisksAggregatedListCall struct { + s *Service + project string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes the specified persistent disk. Deleting a disk removes its -// data -// permanently and is irreversible. However, deleting a disk does not -// delete any snapshots -// previously made from the disk. You must separatelydelete -// snapshots. +// AggregatedList: Retrieves an aggregated list of persistent disks. +// +// To prevent failure, it is recommended that you set +// the +// `returnPartialSuccess` parameter to `true`. // -// - disk: Name of the persistent disk to delete. // - project: Project ID for this request. -// - zone: The name of the zone for this request. -func (r *DisksService) Delete(project string, zone string, disk string) *DisksDeleteCall { - c := &DisksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DisksService) AggregatedList(project string) *DisksAggregatedListCall { + c := &DisksAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.zone = zone - c.disk = disk return c } -// RequestId sets the optional parameter "requestId": 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. +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most +// Compute resources support two types of filter expressions: +// expressions that support regular expressions and expressions that follow +// API improvement proposal AIP-160. +// These two types of filter expressions cannot be mixed in one request. // -// 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. +// If you want to use AIP-160, your 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 `:`. // -// The request ID must be -// a valid UUID with the exception that zero UUID is not -// supported -// (00000000-0000-0000-0000-000000000000). -func (c *DisksDeleteCall) RequestId(requestId string) *DisksDeleteCall { - c.urlParams_.Set("requestId", requestId) +// For example, if you are filtering Compute Engine instances, you can +// exclude instances named `example-instance` by specifying +// `name != example-instance`. +// +// 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 onresource 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) +// ``` +// +// If you want to use a regular expression, use the `eq` (equal) or `ne` +// (not equal) operator against a single un-parenthesized expression with +// or +// without quotes or against multiple parenthesized expressions. +// Examples: +// +// `fieldname eq unquoted literal` +// `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" +// `(fieldname1 eq literal) (fieldname2 ne "literal")` +// +// The literal value is interpreted as a regular expression using GoogleRE2 +// library syntax. +// The literal value must match the entire field. +// +// For example, to filter for instances that do not end with name +// "instance", +// you would use `name ne .*instance`. +// +// You cannot combine constraints on multiple fields using regular +// expressions. +func (c *DisksAggregatedListCall) Filter(filter string) *DisksAggregatedListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// IncludeAllScopes sets the optional parameter "includeAllScopes": 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. +func (c *DisksAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *DisksAggregatedListCall { + c.urlParams_.Set("includeAllScopes", fmt.Sprint(includeAllScopes)) + return c +} + +// MaxResults sets the optional parameter "maxResults": 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`) +func (c *DisksAggregatedListCall) MaxResults(maxResults int64) *DisksAggregatedListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": 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. +func (c *DisksAggregatedListCall) OrderBy(orderBy string) *DisksAggregatedListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the +// `nextPageToken` returned by a previous list request to get +// the next page of results. +func (c *DisksAggregatedListCall) PageToken(pageToken string) *DisksAggregatedListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in +// case +// of failure. The default value is false. +// +// For example, when partial success behavior is enabled, aggregatedList for +// a +// single zone scope either returns all resources in the zone or no +// resources, +// with an error code. +func (c *DisksAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DisksAggregatedListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The +// Shared VPC service project id or service project number for which +// aggregated list request is invoked for subnetworks list-usable api. +func (c *DisksAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *DisksAggregatedListCall { + c.urlParams_.Set("serviceProjectNumber", fmt.Sprint(serviceProjectNumber)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksDeleteCall) Fields(s ...googleapi.Field) *DisksDeleteCall { +func (c *DisksAggregatedListCall) Fields(s ...googleapi.Field) *DisksAggregatedListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *DisksAggregatedListCall) IfNoneMatch(entityTag string) *DisksAggregatedListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *DisksDeleteCall) Context(ctx context.Context) *DisksDeleteCall { +func (c *DisksAggregatedListCall) Context(ctx context.Context) *DisksAggregatedListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksDeleteCall) Header() http.Header { +func (c *DisksAggregatedListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *DisksAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/disks") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "project": c.project, - "zone": c.zone, - "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.aggregatedList", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.delete" call. +// Do executes the "compute.disks.aggregatedList" call. // 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 *DisksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *DiskAggregatedList.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 *DisksAggregatedListCall) Do(opts ...googleapi.CallOption) (*DiskAggregatedList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11154,7 +12086,7 @@ func (c *DisksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &DiskAggregatedList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11165,75 +12097,109 @@ func (c *DisksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.aggregatedList", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksGetCall struct { - s *Service - project string - zone string - disk string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *DisksAggregatedListCall) Pages(ctx context.Context, f func(*DiskAggregatedList) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// Get: Returns the specified persistent disk. +type DisksBulkInsertCall struct { + s *Service + project string + zone string + bulkinsertdiskresource *BulkInsertDiskResource + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BulkInsert: Bulk create a set of disks. // -// - disk: Name of the persistent disk to return. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *DisksService) Get(project string, zone string, disk string) *DisksGetCall { - c := &DisksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DisksService) BulkInsert(project string, zone string, bulkinsertdiskresource *BulkInsertDiskResource) *DisksBulkInsertCall { + c := &DisksBulkInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone - c.disk = disk + c.bulkinsertdiskresource = bulkinsertdiskresource + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *DisksBulkInsertCall) RequestId(requestId string) *DisksBulkInsertCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksGetCall) Fields(s ...googleapi.Field) *DisksGetCall { +func (c *DisksBulkInsertCall) Fields(s ...googleapi.Field) *DisksBulkInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *DisksGetCall) IfNoneMatch(entityTag string) *DisksGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *DisksGetCall) Context(ctx context.Context) *DisksGetCall { +func (c *DisksBulkInsertCall) Context(ctx context.Context) *DisksBulkInsertCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksGetCall) Header() http.Header { +func (c *DisksBulkInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *DisksBulkInsertCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.bulkinsertdiskresource) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/bulkInsert") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -11241,18 +12207,17 @@ func (c *DisksGetCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, "zone": c.zone, - "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.bulkInsert", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.get" call. +// Do executes the "compute.disks.bulkInsert" call. // Any non-2xx status code is an error. Response headers are in either -// *Disk.ServerResponse.Header or (if a response was returned at all) in +// *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 *DisksGetCall) Do(opts ...googleapi.CallOption) (*Disk, error) { +func (c *DisksBulkInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11271,7 +12236,7 @@ func (c *DisksGetCall) Do(opts ...googleapi.CallOption) (*Disk, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Disk{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11282,79 +12247,97 @@ func (c *DisksGetCall) Do(opts ...googleapi.CallOption) (*Disk, error) { if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.bulkInsert", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksGetAsyncReplicationStatusCall struct { - s *Service - project string - zone string - disk string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type DisksBulkSetLabelsCall struct { + s *Service + project string + zone string + bulkzonesetlabelsrequest *BulkZoneSetLabelsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetAsyncReplicationStatus: Gets the status of current async replication for -// a given device. -// -// - disk: Name of the Disk resource whose Async replication details are -// requested. +// BulkSetLabels: Sets the labels on many disks at once. To learn more about +// labels, read theLabeling +// Resources documentation. // -// Name should conform to RFC1035 or be an unsigned long integer. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *DisksService) GetAsyncReplicationStatus(project string, zone string, disk string) *DisksGetAsyncReplicationStatusCall { - c := &DisksGetAsyncReplicationStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DisksService) BulkSetLabels(project string, zone string, bulkzonesetlabelsrequest *BulkZoneSetLabelsRequest) *DisksBulkSetLabelsCall { + c := &DisksBulkSetLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone - c.disk = disk + c.bulkzonesetlabelsrequest = bulkzonesetlabelsrequest + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *DisksBulkSetLabelsCall) RequestId(requestId string) *DisksBulkSetLabelsCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Resource sets the optional parameter "resource": Name or id of the resource +// for this request. +func (c *DisksBulkSetLabelsCall) Resource(resource string) *DisksBulkSetLabelsCall { + c.urlParams_.Set("resource", resource) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksGetAsyncReplicationStatusCall) Fields(s ...googleapi.Field) *DisksGetAsyncReplicationStatusCall { +func (c *DisksBulkSetLabelsCall) Fields(s ...googleapi.Field) *DisksBulkSetLabelsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *DisksGetAsyncReplicationStatusCall) IfNoneMatch(entityTag string) *DisksGetAsyncReplicationStatusCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *DisksGetAsyncReplicationStatusCall) Context(ctx context.Context) *DisksGetAsyncReplicationStatusCall { +func (c *DisksBulkSetLabelsCall) Context(ctx context.Context) *DisksBulkSetLabelsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksGetAsyncReplicationStatusCall) Header() http.Header { +func (c *DisksBulkSetLabelsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksGetAsyncReplicationStatusCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *DisksBulkSetLabelsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.bulkzonesetlabelsrequest) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/getAsyncReplicationStatus") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/bulkSetLabels") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -11362,19 +12345,17 @@ func (c *DisksGetAsyncReplicationStatusCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, "zone": c.zone, - "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.getAsyncReplicationStatus", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.bulkSetLabels", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.getAsyncReplicationStatus" call. +// Do executes the "compute.disks.bulkSetLabels" call. // Any non-2xx status code is an error. Response headers are in either -// *GetAsyncReplicationStatusResponse.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 *DisksGetAsyncReplicationStatusCall) Do(opts ...googleapi.CallOption) (*GetAsyncReplicationStatusResponse, error) { +// *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 *DisksBulkSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11393,7 +12374,7 @@ func (c *DisksGetAsyncReplicationStatusCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GetAsyncReplicationStatusResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11404,103 +12385,110 @@ func (c *DisksGetAsyncReplicationStatusCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.getAsyncReplicationStatus", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.bulkSetLabels", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksGetIamPolicyCall struct { - s *Service - project string - zone string - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type DisksConvertCall struct { + s *Service + project string + zone string + disk string + disksconvertrequest *DisksConvertRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. May be empty if -// no such -// policy or resource exists. +// Convert: Converts a persistent disk to support Gen4+ VMs. // +// - disk: Name of the Disk resource, should conform to RFC1035. // - project: Project ID for this request. -// - resource: Name or id of the resource for this request. // - zone: The name of the zone for this request. -func (r *DisksService) GetIamPolicy(project string, zone string, resource string) *DisksGetIamPolicyCall { - c := &DisksGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DisksService) Convert(project string, zone string, disk string, disksconvertrequest *DisksConvertRequest) *DisksConvertCall { + c := &DisksConvertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone - c.resource = resource + c.disk = disk + c.disksconvertrequest = disksconvertrequest return c } -// OptionsRequestedPolicyVersion sets the optional parameter -// "optionsRequestedPolicyVersion": Requested IAM Policy version. -func (c *DisksGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *DisksGetIamPolicyCall { - c.urlParams_.Set("optionsRequestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// RequestId sets the optional parameter "requestId": 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). +func (c *DisksConvertCall) RequestId(requestId string) *DisksConvertCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksGetIamPolicyCall) Fields(s ...googleapi.Field) *DisksGetIamPolicyCall { +func (c *DisksConvertCall) Fields(s ...googleapi.Field) *DisksConvertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *DisksGetIamPolicyCall) IfNoneMatch(entityTag string) *DisksGetIamPolicyCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *DisksGetIamPolicyCall) Context(ctx context.Context) *DisksGetIamPolicyCall { +func (c *DisksConvertCall) Context(ctx context.Context) *DisksConvertCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksGetIamPolicyCall) Header() http.Header { +func (c *DisksConvertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *DisksConvertCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disksconvertrequest) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/convert") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "zone": c.zone, - "resource": c.resource, + "project": c.project, + "zone": c.zone, + "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.convert", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.getIamPolicy" call. +// Do executes the "compute.disks.convert" call. // Any non-2xx status code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) in +// *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 *DisksGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +func (c *DisksConvertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11519,7 +12507,7 @@ func (c *DisksGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11530,34 +12518,45 @@ func (c *DisksGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.getIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.convert", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksInsertCall struct { +type DisksCreateSnapshotCall struct { s *Service project string zone string - disk *Disk + disk string + snapshot *Snapshot urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Insert: Creates a persistent disk in the specified project using the data -// in the request. You can create a disk from a source -// (sourceImage, sourceSnapshot, orsourceDisk) or create an empty 500 GB data -// disk by -// omitting all properties. You can also create a disk that is larger than -// the default size by specifying the sizeGb property. +// CreateSnapshot: Creates a snapshot of a specified persistent disk. For +// regular snapshot +// creation, consider using snapshots.insert +// instead, as that method supports more features, such as creating +// snapshots +// in a project different from the source disk project. // +// - disk: Name of the persistent disk to snapshot. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *DisksService) Insert(project string, zone string, disk *Disk) *DisksInsertCall { - c := &DisksInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DisksService) CreateSnapshot(project string, zone string, disk string, snapshot *Snapshot) *DisksCreateSnapshotCall { + c := &DisksCreateSnapshotCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.disk = disk + c.snapshot = snapshot + return c +} + +// GuestFlush sets the optional parameter "guestFlush": [Input Only] Whether to +// attempt an application consistent snapshot by +// informing the OS to prepare for the snapshot process. +func (c *DisksCreateSnapshotCall) GuestFlush(guestFlush bool) *DisksCreateSnapshotCall { + c.urlParams_.Set("guestFlush", fmt.Sprint(guestFlush)) return c } @@ -11578,50 +12577,43 @@ func (r *DisksService) Insert(project string, zone string, disk *Disk) *DisksIns // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *DisksInsertCall) RequestId(requestId string) *DisksInsertCall { +func (c *DisksCreateSnapshotCall) RequestId(requestId string) *DisksCreateSnapshotCall { c.urlParams_.Set("requestId", requestId) return c } -// SourceImage sets the optional parameter "sourceImage": Source image to -// restore onto a disk. This field is optional. -func (c *DisksInsertCall) SourceImage(sourceImage string) *DisksInsertCall { - c.urlParams_.Set("sourceImage", sourceImage) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksInsertCall) Fields(s ...googleapi.Field) *DisksInsertCall { +func (c *DisksCreateSnapshotCall) Fields(s ...googleapi.Field) *DisksCreateSnapshotCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *DisksInsertCall) Context(ctx context.Context) *DisksInsertCall { +func (c *DisksCreateSnapshotCall) Context(ctx context.Context) *DisksCreateSnapshotCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksInsertCall) Header() http.Header { +func (c *DisksCreateSnapshotCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksInsertCall) doRequest(alt string) (*http.Response, error) { +func (c *DisksCreateSnapshotCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disk) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.snapshot) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/createSnapshot") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -11631,17 +12623,18 @@ func (c *DisksInsertCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, "zone": c.zone, + "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.insert", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.createSnapshot", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.insert" call. +// Do executes the "compute.disks.createSnapshot" call. // 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 *DisksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DisksCreateSnapshotCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11671,201 +12664,90 @@ func (c *DisksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.insert", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.createSnapshot", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksListCall struct { - s *Service - project string - zone string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type DisksDeleteCall struct { + s *Service + project string + zone string + disk string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Retrieves a list of persistent disks contained within -// the specified zone. +// Delete: Deletes the specified persistent disk. Deleting a disk removes its +// data +// permanently and is irreversible. However, deleting a disk does not +// delete any snapshots +// previously made from the disk. You must separatelydelete +// snapshots. // +// - disk: Name of the persistent disk to delete. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *DisksService) List(project string, zone string) *DisksListCall { - c := &DisksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DisksService) Delete(project string, zone string, disk string) *DisksDeleteCall { + c := &DisksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone + c.disk = disk return c } -// Filter sets the optional parameter "filter": A filter expression that -// filters resources listed in the response. Most -// Compute resources support two types of filter expressions: -// expressions that support regular expressions and expressions that follow -// API improvement proposal AIP-160. -// These two types of filter expressions cannot be mixed in one request. -// -// If you want to use AIP-160, your 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 `:*` 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 onresource 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) -// ``` -// -// If you want to use a regular expression, use the `eq` (equal) or `ne` -// (not equal) operator against a single un-parenthesized expression with -// or -// without quotes or against multiple parenthesized expressions. -// Examples: -// -// `fieldname eq unquoted literal` -// `fieldname eq 'single quoted literal'` -// `fieldname eq "double quoted literal" -// `(fieldname1 eq literal) (fieldname2 ne "literal")` -// -// The literal value is interpreted as a regular expression using GoogleRE2 -// library syntax. -// The literal value must match the entire field. -// -// For example, to filter for instances that do not end with name -// "instance", -// you would use `name ne .*instance`. -// -// You cannot combine constraints on multiple fields using regular -// expressions. -func (c *DisksListCall) Filter(filter string) *DisksListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// MaxResults sets the optional parameter "maxResults": 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`) -func (c *DisksListCall) MaxResults(maxResults int64) *DisksListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// OrderBy sets the optional parameter "orderBy": 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. +// RequestId sets the optional parameter "requestId": 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. // -// Currently, only sorting by `name` or -// `creationTimestamp desc` is supported. -func (c *DisksListCall) OrderBy(orderBy string) *DisksListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageToken sets the optional parameter "pageToken": Specifies a page token to -// use. Set `pageToken` to the -// `nextPageToken` returned by a previous list request to get -// the next page of results. -func (c *DisksListCall) PageToken(pageToken string) *DisksListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": -// Opt-in for partial success behavior which provides partial results in -// case -// of failure. The default value is false. +// 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. // -// For example, when partial success behavior is enabled, aggregatedList for -// a -// single zone scope either returns all resources in the zone or no -// resources, -// with an error code. -func (c *DisksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DisksListCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) +// The request ID must be +// a valid UUID with the exception that zero UUID is not +// supported +// (00000000-0000-0000-0000-000000000000). +func (c *DisksDeleteCall) RequestId(requestId string) *DisksDeleteCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksListCall) Fields(s ...googleapi.Field) *DisksListCall { +func (c *DisksDeleteCall) Fields(s ...googleapi.Field) *DisksDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *DisksListCall) IfNoneMatch(entityTag string) *DisksListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *DisksListCall) Context(ctx context.Context) *DisksListCall { +func (c *DisksDeleteCall) Context(ctx context.Context) *DisksDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksListCall) Header() http.Header { +func (c *DisksDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksListCall) doRequest(alt string) (*http.Response, error) { +func (c *DisksDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } @@ -11873,17 +12755,18 @@ func (c *DisksListCall) doRequest(alt string) (*http.Response, error) { googleapi.Expand(req.URL, map[string]string{ "project": c.project, "zone": c.zone, + "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.list" call. +// Do executes the "compute.disks.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *DiskList.ServerResponse.Header or (if a response was returned at all) in +// *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 *DisksListCall) Do(opts ...googleapi.CallOption) (*DiskList, error) { +func (c *DisksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -11902,7 +12785,7 @@ func (c *DisksListCall) Do(opts ...googleapi.CallOption) (*DiskList, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &DiskList{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -11913,112 +12796,75 @@ func (c *DisksListCall) Do(opts ...googleapi.CallOption) (*DiskList, error) { if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *DisksListCall) Pages(ctx context.Context, f func(*DiskList) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type DisksRemoveResourcePoliciesCall struct { - s *Service - project string - zone string - disk string - disksremoveresourcepoliciesrequest *DisksRemoveResourcePoliciesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DisksGetCall struct { + s *Service + project string + zone string + disk string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// RemoveResourcePolicies: Removes resource policies from a disk. +// Get: Returns the specified persistent disk. // -// - disk: The disk name for this request. +// - disk: Name of the persistent disk to return. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *DisksService) RemoveResourcePolicies(project string, zone string, disk string, disksremoveresourcepoliciesrequest *DisksRemoveResourcePoliciesRequest) *DisksRemoveResourcePoliciesCall { - c := &DisksRemoveResourcePoliciesCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DisksService) Get(project string, zone string, disk string) *DisksGetCall { + c := &DisksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.disk = disk - c.disksremoveresourcepoliciesrequest = disksremoveresourcepoliciesrequest - return c -} - -// RequestId sets the optional parameter "requestId": 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). -func (c *DisksRemoveResourcePoliciesCall) RequestId(requestId string) *DisksRemoveResourcePoliciesCall { - c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksRemoveResourcePoliciesCall) Fields(s ...googleapi.Field) *DisksRemoveResourcePoliciesCall { +func (c *DisksGetCall) Fields(s ...googleapi.Field) *DisksGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *DisksGetCall) IfNoneMatch(entityTag string) *DisksGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *DisksRemoveResourcePoliciesCall) Context(ctx context.Context) *DisksRemoveResourcePoliciesCall { +func (c *DisksGetCall) Context(ctx context.Context) *DisksGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksRemoveResourcePoliciesCall) Header() http.Header { +func (c *DisksGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksRemoveResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disksremoveresourcepoliciesrequest) - if err != nil { - return nil, err +func (c *DisksGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -12028,16 +12874,16 @@ func (c *DisksRemoveResourcePoliciesCall) doRequest(alt string) (*http.Response, "zone": c.zone, "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.removeResourcePolicies", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.removeResourcePolicies" call. +// Do executes the "compute.disks.get" call. // 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 +// *Disk.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 *DisksRemoveResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DisksGetCall) Do(opts ...googleapi.CallOption) (*Disk, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12056,7 +12902,7 @@ func (c *DisksRemoveResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Ope if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &Disk{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12067,92 +12913,79 @@ func (c *DisksRemoveResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Ope if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.removeResourcePolicies", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksResizeCall struct { - s *Service - project string - zone string - disk string - disksresizerequest *DisksResizeRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DisksGetAsyncReplicationStatusCall struct { + s *Service + project string + zone string + disk string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Resize: Resizes the specified persistent disk. -// You can only increase the size of the disk. +// GetAsyncReplicationStatus: Gets the status of current async replication for +// a given device. // -// - disk: The name of the persistent disk. +// - disk: Name of the Disk resource whose Async replication details are +// requested. +// +// Name should conform to RFC1035 or be an unsigned long integer. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *DisksService) Resize(project string, zone string, disk string, disksresizerequest *DisksResizeRequest) *DisksResizeCall { - c := &DisksResizeCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DisksService) GetAsyncReplicationStatus(project string, zone string, disk string) *DisksGetAsyncReplicationStatusCall { + c := &DisksGetAsyncReplicationStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.disk = disk - c.disksresizerequest = disksresizerequest - return c -} - -// RequestId sets the optional parameter "requestId": 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). -func (c *DisksResizeCall) RequestId(requestId string) *DisksResizeCall { - c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksResizeCall) Fields(s ...googleapi.Field) *DisksResizeCall { +func (c *DisksGetAsyncReplicationStatusCall) Fields(s ...googleapi.Field) *DisksGetAsyncReplicationStatusCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *DisksGetAsyncReplicationStatusCall) IfNoneMatch(entityTag string) *DisksGetAsyncReplicationStatusCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *DisksResizeCall) Context(ctx context.Context) *DisksResizeCall { +func (c *DisksGetAsyncReplicationStatusCall) Context(ctx context.Context) *DisksGetAsyncReplicationStatusCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksResizeCall) Header() http.Header { +func (c *DisksGetAsyncReplicationStatusCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksResizeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disksresizerequest) - if err != nil { - return nil, err +func (c *DisksGetAsyncReplicationStatusCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/resize") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/getAsyncReplicationStatus") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -12162,16 +12995,17 @@ func (c *DisksResizeCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.resize", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.getAsyncReplicationStatus", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.resize" call. +// Do executes the "compute.disks.getAsyncReplicationStatus" call. // 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 *DisksResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *GetAsyncReplicationStatusResponse.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 *DisksGetAsyncReplicationStatusCall) Do(opts ...googleapi.CallOption) (*GetAsyncReplicationStatusResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12190,7 +13024,7 @@ func (c *DisksResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &GetAsyncReplicationStatusResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12201,71 +13035,84 @@ func (c *DisksResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error) { if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.resize", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.getAsyncReplicationStatus", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksSetIamPolicyCall struct { - s *Service - project string - zone string - resource string - zonesetpolicyrequest *ZoneSetPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DisksGetIamPolicyCall struct { + s *Service + project string + zone string + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. -// Replaces any existing policy. +// GetIamPolicy: Gets the access control policy for a resource. May be empty if +// no such +// policy or resource exists. // // - project: Project ID for this request. // - resource: Name or id of the resource for this request. // - zone: The name of the zone for this request. -func (r *DisksService) SetIamPolicy(project string, zone string, resource string, zonesetpolicyrequest *ZoneSetPolicyRequest) *DisksSetIamPolicyCall { - c := &DisksSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DisksService) GetIamPolicy(project string, zone string, resource string) *DisksGetIamPolicyCall { + c := &DisksGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.resource = resource - c.zonesetpolicyrequest = zonesetpolicyrequest + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "optionsRequestedPolicyVersion": Requested IAM Policy version. +func (c *DisksGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *DisksGetIamPolicyCall { + c.urlParams_.Set("optionsRequestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksSetIamPolicyCall) Fields(s ...googleapi.Field) *DisksSetIamPolicyCall { +func (c *DisksGetIamPolicyCall) Fields(s ...googleapi.Field) *DisksGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Context sets the context to be used in this call's Do method. -func (c *DisksSetIamPolicyCall) Context(ctx context.Context) *DisksSetIamPolicyCall { - c.ctx_ = ctx - return c -} - +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *DisksGetIamPolicyCall) IfNoneMatch(entityTag string) *DisksGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *DisksGetIamPolicyCall) Context(ctx context.Context) *DisksGetIamPolicyCall { + c.ctx_ = ctx + return c +} + // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksSetIamPolicyCall) Header() http.Header { +func (c *DisksGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.zonesetpolicyrequest) - if err != nil { - return nil, err +func (c *DisksGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -12275,16 +13122,16 @@ func (c *DisksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.setIamPolicy" call. +// Do executes the "compute.disks.getIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either // *Policy.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 *DisksSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +func (c *DisksGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12314,34 +13161,34 @@ func (c *DisksSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.setIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.getIamPolicy", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksSetLabelsCall struct { - s *Service - project string - zone string - resource string - zonesetlabelsrequest *ZoneSetLabelsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DisksInsertCall struct { + s *Service + project string + zone string + disk *Disk + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetLabels: Sets the labels on a disk. To learn more about labels, read -// theLabeling -// Resources documentation. +// Insert: Creates a persistent disk in the specified project using the data +// in the request. You can create a disk from a source +// (sourceImage, sourceSnapshot, orsourceDisk) or create an empty 500 GB data +// disk by +// omitting all properties. You can also create a disk that is larger than +// the default size by specifying the sizeGb property. // // - project: Project ID for this request. -// - resource: Name or id of the resource for this request. // - zone: The name of the zone for this request. -func (r *DisksService) SetLabels(project string, zone string, resource string, zonesetlabelsrequest *ZoneSetLabelsRequest) *DisksSetLabelsCall { - c := &DisksSetLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DisksService) Insert(project string, zone string, disk *Disk) *DisksInsertCall { + c := &DisksInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone - c.resource = resource - c.zonesetlabelsrequest = zonesetlabelsrequest + c.disk = disk return c } @@ -12362,43 +13209,50 @@ func (r *DisksService) SetLabels(project string, zone string, resource string, z // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *DisksSetLabelsCall) RequestId(requestId string) *DisksSetLabelsCall { +func (c *DisksInsertCall) RequestId(requestId string) *DisksInsertCall { c.urlParams_.Set("requestId", requestId) return c } +// SourceImage sets the optional parameter "sourceImage": Source image to +// restore onto a disk. This field is optional. +func (c *DisksInsertCall) SourceImage(sourceImage string) *DisksInsertCall { + c.urlParams_.Set("sourceImage", sourceImage) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksSetLabelsCall) Fields(s ...googleapi.Field) *DisksSetLabelsCall { +func (c *DisksInsertCall) Fields(s ...googleapi.Field) *DisksInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *DisksSetLabelsCall) Context(ctx context.Context) *DisksSetLabelsCall { +func (c *DisksInsertCall) Context(ctx context.Context) *DisksInsertCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksSetLabelsCall) Header() http.Header { +func (c *DisksInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksSetLabelsCall) doRequest(alt string) (*http.Response, error) { +func (c *DisksInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.zonesetlabelsrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disk) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{resource}/setLabels") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -12406,20 +13260,19 @@ func (c *DisksSetLabelsCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "zone": c.zone, - "resource": c.resource, + "project": c.project, + "zone": c.zone, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.setLabels", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.insert", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.setLabels" call. +// Do executes the "compute.disks.insert" call. // 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 *DisksSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DisksInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12449,92 +13302,201 @@ func (c *DisksSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.setLabels", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.insert", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksStartAsyncReplicationCall struct { - s *Service - project string - zone string - disk string - disksstartasyncreplicationrequest *DisksStartAsyncReplicationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DisksListCall struct { + s *Service + project string + zone string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// StartAsyncReplication: Starts asynchronous replication. -// Must be invoked on the primary disk. +// List: Retrieves a list of persistent disks contained within +// the specified zone. // -// - disk: The name of the persistent disk. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *DisksService) StartAsyncReplication(project string, zone string, disk string, disksstartasyncreplicationrequest *DisksStartAsyncReplicationRequest) *DisksStartAsyncReplicationCall { - c := &DisksStartAsyncReplicationCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DisksService) List(project string, zone string) *DisksListCall { + c := &DisksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone - c.disk = disk - c.disksstartasyncreplicationrequest = disksstartasyncreplicationrequest return c } -// RequestId sets the optional parameter "requestId": 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. +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most +// Compute resources support two types of filter expressions: +// expressions that support regular expressions and expressions that follow +// API improvement proposal AIP-160. +// These two types of filter expressions cannot be mixed in one request. // -// 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. +// If you want to use AIP-160, your 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 `:`. // -// The request ID must be -// a valid UUID with the exception that zero UUID is not -// supported -// (00000000-0000-0000-0000-000000000000). -func (c *DisksStartAsyncReplicationCall) RequestId(requestId string) *DisksStartAsyncReplicationCall { - c.urlParams_.Set("requestId", requestId) +// For example, if you are filtering Compute Engine instances, you can +// exclude instances named `example-instance` by specifying +// `name != example-instance`. +// +// 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 onresource 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) +// ``` +// +// If you want to use a regular expression, use the `eq` (equal) or `ne` +// (not equal) operator against a single un-parenthesized expression with +// or +// without quotes or against multiple parenthesized expressions. +// Examples: +// +// `fieldname eq unquoted literal` +// `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" +// `(fieldname1 eq literal) (fieldname2 ne "literal")` +// +// The literal value is interpreted as a regular expression using GoogleRE2 +// library syntax. +// The literal value must match the entire field. +// +// For example, to filter for instances that do not end with name +// "instance", +// you would use `name ne .*instance`. +// +// You cannot combine constraints on multiple fields using regular +// expressions. +func (c *DisksListCall) Filter(filter string) *DisksListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": 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`) +func (c *DisksListCall) MaxResults(maxResults int64) *DisksListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": 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. +func (c *DisksListCall) OrderBy(orderBy string) *DisksListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the +// `nextPageToken` returned by a previous list request to get +// the next page of results. +func (c *DisksListCall) PageToken(pageToken string) *DisksListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in +// case +// of failure. The default value is false. +// +// For example, when partial success behavior is enabled, aggregatedList for +// a +// single zone scope either returns all resources in the zone or no +// resources, +// with an error code. +func (c *DisksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *DisksListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksStartAsyncReplicationCall) Fields(s ...googleapi.Field) *DisksStartAsyncReplicationCall { +func (c *DisksListCall) Fields(s ...googleapi.Field) *DisksListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *DisksListCall) IfNoneMatch(entityTag string) *DisksListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *DisksStartAsyncReplicationCall) Context(ctx context.Context) *DisksStartAsyncReplicationCall { +func (c *DisksListCall) Context(ctx context.Context) *DisksListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksStartAsyncReplicationCall) Header() http.Header { +func (c *DisksListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksStartAsyncReplicationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disksstartasyncreplicationrequest) - if err != nil { - return nil, err +func (c *DisksListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/startAsyncReplication") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -12542,18 +13504,17 @@ func (c *DisksStartAsyncReplicationCall) doRequest(alt string) (*http.Response, googleapi.Expand(req.URL, map[string]string{ "project": c.project, "zone": c.zone, - "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.startAsyncReplication", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.startAsyncReplication" call. +// Do executes the "compute.disks.list" call. // 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 +// *DiskList.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 *DisksStartAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DisksListCall) Do(opts ...googleapi.CallOption) (*DiskList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12572,7 +13533,7 @@ func (c *DisksStartAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Oper if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &DiskList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12583,31 +13544,53 @@ func (c *DisksStartAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Oper if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.startAsyncReplication", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksStopAsyncReplicationCall struct { - s *Service - project string - zone string - disk string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *DisksListCall) Pages(ctx context.Context, f func(*DiskList) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// StopAsyncReplication: Stops asynchronous replication. -// Can be invoked either on the primary or on the secondary disk. +type DisksRemoveResourcePoliciesCall struct { + s *Service + project string + zone string + disk string + disksremoveresourcepoliciesrequest *DisksRemoveResourcePoliciesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RemoveResourcePolicies: Removes resource policies from a disk. // -// - disk: The name of the persistent disk. +// - disk: The disk name for this request. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *DisksService) StopAsyncReplication(project string, zone string, disk string) *DisksStopAsyncReplicationCall { - c := &DisksStopAsyncReplicationCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DisksService) RemoveResourcePolicies(project string, zone string, disk string, disksremoveresourcepoliciesrequest *DisksRemoveResourcePoliciesRequest) *DisksRemoveResourcePoliciesCall { + c := &DisksRemoveResourcePoliciesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.disk = disk + c.disksremoveresourcepoliciesrequest = disksremoveresourcepoliciesrequest return c } @@ -12628,7 +13611,7 @@ func (r *DisksService) StopAsyncReplication(project string, zone string, disk st // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *DisksStopAsyncReplicationCall) RequestId(requestId string) *DisksStopAsyncReplicationCall { +func (c *DisksRemoveResourcePoliciesCall) RequestId(requestId string) *DisksRemoveResourcePoliciesCall { c.urlParams_.Set("requestId", requestId) return c } @@ -12636,33 +13619,37 @@ func (c *DisksStopAsyncReplicationCall) RequestId(requestId string) *DisksStopAs // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksStopAsyncReplicationCall) Fields(s ...googleapi.Field) *DisksStopAsyncReplicationCall { +func (c *DisksRemoveResourcePoliciesCall) Fields(s ...googleapi.Field) *DisksRemoveResourcePoliciesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *DisksStopAsyncReplicationCall) Context(ctx context.Context) *DisksStopAsyncReplicationCall { +func (c *DisksRemoveResourcePoliciesCall) Context(ctx context.Context) *DisksRemoveResourcePoliciesCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksStopAsyncReplicationCall) Header() http.Header { +func (c *DisksRemoveResourcePoliciesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksStopAsyncReplicationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *DisksRemoveResourcePoliciesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disksremoveresourcepoliciesrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -12672,16 +13659,16 @@ func (c *DisksStopAsyncReplicationCall) doRequest(alt string) (*http.Response, e "zone": c.zone, "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.stopAsyncReplication", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.removeResourcePolicies", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.stopAsyncReplication" call. +// Do executes the "compute.disks.removeResourcePolicies" call. // 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 *DisksStopAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DisksRemoveResourcePoliciesCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12711,34 +13698,33 @@ func (c *DisksStopAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Opera if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.stopAsyncReplication", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.removeResourcePolicies", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksStopGroupAsyncReplicationCall struct { - s *Service - project string - zone string - disksstopgroupasyncreplicationresource *DisksStopGroupAsyncReplicationResource - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DisksResizeCall struct { + s *Service + project string + zone string + disk string + disksresizerequest *DisksResizeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// StopGroupAsyncReplication: Stops asynchronous replication for a consistency -// group of disks. -// Can be invoked either in the primary or secondary scope. -// -// - project: Project ID for this request. -// - zone: The name of the zone for this request. This must be the zone of the -// primary +// Resize: Resizes the specified persistent disk. +// You can only increase the size of the disk. // -// or secondary disks in the consistency group. -func (r *DisksService) StopGroupAsyncReplication(project string, zone string, disksstopgroupasyncreplicationresource *DisksStopGroupAsyncReplicationResource) *DisksStopGroupAsyncReplicationCall { - c := &DisksStopGroupAsyncReplicationCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - disk: The name of the persistent disk. +// - project: Project ID for this request. +// - zone: The name of the zone for this request. +func (r *DisksService) Resize(project string, zone string, disk string, disksresizerequest *DisksResizeRequest) *DisksResizeCall { + c := &DisksResizeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone - c.disksstopgroupasyncreplicationresource = disksstopgroupasyncreplicationresource + c.disk = disk + c.disksresizerequest = disksresizerequest return c } @@ -12759,7 +13745,7 @@ func (r *DisksService) StopGroupAsyncReplication(project string, zone string, di // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *DisksStopGroupAsyncReplicationCall) RequestId(requestId string) *DisksStopGroupAsyncReplicationCall { +func (c *DisksResizeCall) RequestId(requestId string) *DisksResizeCall { c.urlParams_.Set("requestId", requestId) return c } @@ -12767,35 +13753,35 @@ func (c *DisksStopGroupAsyncReplicationCall) RequestId(requestId string) *DisksS // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksStopGroupAsyncReplicationCall) Fields(s ...googleapi.Field) *DisksStopGroupAsyncReplicationCall { +func (c *DisksResizeCall) Fields(s ...googleapi.Field) *DisksResizeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *DisksStopGroupAsyncReplicationCall) Context(ctx context.Context) *DisksStopGroupAsyncReplicationCall { +func (c *DisksResizeCall) Context(ctx context.Context) *DisksResizeCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksStopGroupAsyncReplicationCall) Header() http.Header { +func (c *DisksResizeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksStopGroupAsyncReplicationCall) doRequest(alt string) (*http.Response, error) { +func (c *DisksResizeCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disksstopgroupasyncreplicationresource) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disksresizerequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/resize") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -12805,17 +13791,18 @@ func (c *DisksStopGroupAsyncReplicationCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, "zone": c.zone, + "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.stopGroupAsyncReplication", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.resize", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.stopGroupAsyncReplication" call. +// Do executes the "compute.disks.resize" call. // 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 *DisksStopGroupAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DisksResizeCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12845,68 +13832,69 @@ func (c *DisksStopGroupAsyncReplicationCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.stopGroupAsyncReplication", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.resize", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksTestIamPermissionsCall struct { - s *Service - project string - zone string - resource string - testpermissionsrequest *TestPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DisksSetIamPolicyCall struct { + s *Service + project string + zone string + resource string + zonesetpolicyrequest *ZoneSetPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the specified +// SetIamPolicy: Sets the access control policy on the specified // resource. +// Replaces any existing policy. // // - project: Project ID for this request. // - resource: Name or id of the resource for this request. // - zone: The name of the zone for this request. -func (r *DisksService) TestIamPermissions(project string, zone string, resource string, testpermissionsrequest *TestPermissionsRequest) *DisksTestIamPermissionsCall { - c := &DisksTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DisksService) SetIamPolicy(project string, zone string, resource string, zonesetpolicyrequest *ZoneSetPolicyRequest) *DisksSetIamPolicyCall { + c := &DisksSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.resource = resource - c.testpermissionsrequest = testpermissionsrequest + c.zonesetpolicyrequest = zonesetpolicyrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksTestIamPermissionsCall) Fields(s ...googleapi.Field) *DisksTestIamPermissionsCall { +func (c *DisksSetIamPolicyCall) Fields(s ...googleapi.Field) *DisksSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *DisksTestIamPermissionsCall) Context(ctx context.Context) *DisksTestIamPermissionsCall { +func (c *DisksSetIamPolicyCall) Context(ctx context.Context) *DisksSetIamPolicyCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksTestIamPermissionsCall) Header() http.Header { +func (c *DisksSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *DisksSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testpermissionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.zonesetpolicyrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -12918,17 +13906,16 @@ func (c *DisksTestIamPermissionsCall) doRequest(alt string) (*http.Response, err "zone": c.zone, "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.testIamPermissions" call. +// Do executes the "compute.disks.setIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *TestPermissionsResponse.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 *DisksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error) { +// *Policy.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 *DisksSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -12947,7 +13934,7 @@ func (c *DisksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPer if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &TestPermissionsResponse{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -12958,41 +13945,34 @@ func (c *DisksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPer if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.testIamPermissions", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.setIamPolicy", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksUpdateCall struct { - s *Service - project string - zone string - disk string - disk2 *Disk - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DisksSetLabelsCall struct { + s *Service + project string + zone string + resource string + zonesetlabelsrequest *ZoneSetLabelsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Update: Updates the specified disk with the data included in the -// request. -// The update is performed only on selected fields included as part -// of update-mask. +// SetLabels: Sets the labels on a disk. To learn more about labels, read +// theLabeling +// Resources documentation. // -// - disk: The disk name for this request. // - project: Project ID for this request. +// - resource: Name or id of the resource for this request. // - zone: The name of the zone for this request. -func (r *DisksService) Update(project string, zone string, disk string, disk2 *Disk) *DisksUpdateCall { - c := &DisksUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DisksService) SetLabels(project string, zone string, resource string, zonesetlabelsrequest *ZoneSetLabelsRequest) *DisksSetLabelsCall { + c := &DisksSetLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone - c.disk = disk - c.disk2 = disk2 - return c -} - -// Paths sets the optional parameter "paths": -func (c *DisksUpdateCall) Paths(paths ...string) *DisksUpdateCall { - c.urlParams_.SetMulti("paths", append([]string{}, paths...)) + c.resource = resource + c.zonesetlabelsrequest = zonesetlabelsrequest return c } @@ -13013,71 +13993,64 @@ func (c *DisksUpdateCall) Paths(paths ...string) *DisksUpdateCall { // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *DisksUpdateCall) RequestId(requestId string) *DisksUpdateCall { +func (c *DisksSetLabelsCall) RequestId(requestId string) *DisksSetLabelsCall { c.urlParams_.Set("requestId", requestId) return c } -// UpdateMask sets the optional parameter "updateMask": update_mask indicates -// fields to be updated as part of this request. -func (c *DisksUpdateCall) UpdateMask(updateMask string) *DisksUpdateCall { - c.urlParams_.Set("updateMask", updateMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksUpdateCall) Fields(s ...googleapi.Field) *DisksUpdateCall { +func (c *DisksSetLabelsCall) Fields(s ...googleapi.Field) *DisksSetLabelsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *DisksUpdateCall) Context(ctx context.Context) *DisksUpdateCall { +func (c *DisksSetLabelsCall) Context(ctx context.Context) *DisksSetLabelsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksUpdateCall) Header() http.Header { +func (c *DisksSetLabelsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksUpdateCall) doRequest(alt string) (*http.Response, error) { +func (c *DisksSetLabelsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disk2) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.zonesetlabelsrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{resource}/setLabels") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "zone": c.zone, - "disk": c.disk, + "project": c.project, + "zone": c.zone, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.update", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.setLabels", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.update" call. +// Do executes the "compute.disks.setLabels" call. // 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 *DisksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DisksSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13107,33 +14080,33 @@ func (c *DisksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.update", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.setLabels", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksUpdateKmsKeyCall struct { - s *Service - project string - zone string - disk string - diskupdatekmskeyrequest *DiskUpdateKmsKeyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DisksStartAsyncReplicationCall struct { + s *Service + project string + zone string + disk string + disksstartasyncreplicationrequest *DisksStartAsyncReplicationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// UpdateKmsKey: Rotates the customer-managed -// encryption key to the latest version for the specified persistent disk. +// StartAsyncReplication: Starts asynchronous replication. +// Must be invoked on the primary disk. // -// - disk: Name of the Disk resource, should conform to RFC1035. +// - disk: The name of the persistent disk. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *DisksService) UpdateKmsKey(project string, zone string, disk string, diskupdatekmskeyrequest *DiskUpdateKmsKeyRequest) *DisksUpdateKmsKeyCall { - c := &DisksUpdateKmsKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *DisksService) StartAsyncReplication(project string, zone string, disk string, disksstartasyncreplicationrequest *DisksStartAsyncReplicationRequest) *DisksStartAsyncReplicationCall { + c := &DisksStartAsyncReplicationCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.disk = disk - c.diskupdatekmskeyrequest = diskupdatekmskeyrequest + c.disksstartasyncreplicationrequest = disksstartasyncreplicationrequest return c } @@ -13154,7 +14127,7 @@ func (r *DisksService) UpdateKmsKey(project string, zone string, disk string, di // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *DisksUpdateKmsKeyCall) RequestId(requestId string) *DisksUpdateKmsKeyCall { +func (c *DisksStartAsyncReplicationCall) RequestId(requestId string) *DisksStartAsyncReplicationCall { c.urlParams_.Set("requestId", requestId) return c } @@ -13162,35 +14135,35 @@ func (c *DisksUpdateKmsKeyCall) RequestId(requestId string) *DisksUpdateKmsKeyCa // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksUpdateKmsKeyCall) Fields(s ...googleapi.Field) *DisksUpdateKmsKeyCall { +func (c *DisksStartAsyncReplicationCall) Fields(s ...googleapi.Field) *DisksStartAsyncReplicationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *DisksUpdateKmsKeyCall) Context(ctx context.Context) *DisksUpdateKmsKeyCall { +func (c *DisksStartAsyncReplicationCall) Context(ctx context.Context) *DisksStartAsyncReplicationCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksUpdateKmsKeyCall) Header() http.Header { +func (c *DisksStartAsyncReplicationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksUpdateKmsKeyCall) doRequest(alt string) (*http.Response, error) { +func (c *DisksStartAsyncReplicationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.diskupdatekmskeyrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disksstartasyncreplicationrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/updateKmsKey") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/startAsyncReplication") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -13202,16 +14175,16 @@ func (c *DisksUpdateKmsKeyCall) doRequest(alt string) (*http.Response, error) { "zone": c.zone, "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.updateKmsKey", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.startAsyncReplication", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.updateKmsKey" call. +// Do executes the "compute.disks.startAsyncReplication" call. // 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 *DisksUpdateKmsKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DisksStartAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13241,34 +14214,31 @@ func (c *DisksUpdateKmsKeyCall) Do(opts ...googleapi.CallOption) (*Operation, er if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.updateKmsKey", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.startAsyncReplication", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type DisksWaitForReplicationCatchUpCall struct { - s *Service - project string - zone string - disk string - waitforreplicationcatchuprequest *WaitForReplicationCatchUpRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DisksStopAsyncReplicationCall struct { + s *Service + project string + zone string + disk string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// WaitForReplicationCatchUp: Wait for replication to catch up on the secondary -// disk. +// StopAsyncReplication: Stops asynchronous replication. +// Can be invoked either on the primary or on the secondary disk. // -// - disk: The name of the persistent disk. -// Name should conform to RFC1035 or be an unsigned long integer. -// - project: Project ID for this request. -// - zone: The name of the zone for this request. -func (r *DisksService) WaitForReplicationCatchUp(project string, zone string, disk string, waitforreplicationcatchuprequest *WaitForReplicationCatchUpRequest) *DisksWaitForReplicationCatchUpCall { - c := &DisksWaitForReplicationCatchUpCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - disk: The name of the persistent disk. +// - project: Project ID for this request. +// - zone: The name of the zone for this request. +func (r *DisksService) StopAsyncReplication(project string, zone string, disk string) *DisksStopAsyncReplicationCall { + c := &DisksStopAsyncReplicationCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.disk = disk - c.waitforreplicationcatchuprequest = waitforreplicationcatchuprequest return c } @@ -13289,7 +14259,7 @@ func (r *DisksService) WaitForReplicationCatchUp(project string, zone string, di // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *DisksWaitForReplicationCatchUpCall) RequestId(requestId string) *DisksWaitForReplicationCatchUpCall { +func (c *DisksStopAsyncReplicationCall) RequestId(requestId string) *DisksStopAsyncReplicationCall { c.urlParams_.Set("requestId", requestId) return c } @@ -13297,37 +14267,33 @@ func (c *DisksWaitForReplicationCatchUpCall) RequestId(requestId string) *DisksW // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *DisksWaitForReplicationCatchUpCall) Fields(s ...googleapi.Field) *DisksWaitForReplicationCatchUpCall { +func (c *DisksStopAsyncReplicationCall) Fields(s ...googleapi.Field) *DisksStopAsyncReplicationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *DisksWaitForReplicationCatchUpCall) Context(ctx context.Context) *DisksWaitForReplicationCatchUpCall { +func (c *DisksStopAsyncReplicationCall) Context(ctx context.Context) *DisksStopAsyncReplicationCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *DisksWaitForReplicationCatchUpCall) Header() http.Header { +func (c *DisksStopAsyncReplicationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *DisksWaitForReplicationCatchUpCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.waitforreplicationcatchuprequest) - if err != nil { - return nil, err - } +func (c *DisksStopAsyncReplicationCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/waitForReplicationCatchUp") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/stopAsyncReplication") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("POST", urls, nil) if err != nil { return nil, err } @@ -13337,16 +14303,16 @@ func (c *DisksWaitForReplicationCatchUpCall) doRequest(alt string) (*http.Respon "zone": c.zone, "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.waitForReplicationCatchUp", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.stopAsyncReplication", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.disks.waitForReplicationCatchUp" call. +// Do executes the "compute.disks.stopAsyncReplication" call. // 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 *DisksWaitForReplicationCatchUpCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DisksStopAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13376,27 +14342,34 @@ func (c *DisksWaitForReplicationCatchUpCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.waitForReplicationCatchUp", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.stopAsyncReplication", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ExternalVpnGatewaysDeleteCall struct { - s *Service - project string - externalVpnGateway string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DisksStopGroupAsyncReplicationCall struct { + s *Service + project string + zone string + disksstopgroupasyncreplicationresource *DisksStopGroupAsyncReplicationResource + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes the specified externalVpnGateway. +// StopGroupAsyncReplication: Stops asynchronous replication for a consistency +// group of disks. +// Can be invoked either in the primary or secondary scope. // -// - externalVpnGateway: Name of the externalVpnGateways to delete. -// - project: Project ID for this request. -func (r *ExternalVpnGatewaysService) Delete(project string, externalVpnGateway string) *ExternalVpnGatewaysDeleteCall { - c := &ExternalVpnGatewaysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - project: Project ID for this request. +// - zone: The name of the zone for this request. This must be the zone of the +// primary +// +// or secondary disks in the consistency group. +func (r *DisksService) StopGroupAsyncReplication(project string, zone string, disksstopgroupasyncreplicationresource *DisksStopGroupAsyncReplicationResource) *DisksStopGroupAsyncReplicationCall { + c := &DisksStopGroupAsyncReplicationCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.externalVpnGateway = externalVpnGateway + c.zone = zone + c.disksstopgroupasyncreplicationresource = disksstopgroupasyncreplicationresource return c } @@ -13417,7 +14390,7 @@ func (r *ExternalVpnGatewaysService) Delete(project string, externalVpnGateway s // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *ExternalVpnGatewaysDeleteCall) RequestId(requestId string) *ExternalVpnGatewaysDeleteCall { +func (c *DisksStopGroupAsyncReplicationCall) RequestId(requestId string) *DisksStopGroupAsyncReplicationCall { c.urlParams_.Set("requestId", requestId) return c } @@ -13425,51 +14398,55 @@ func (c *ExternalVpnGatewaysDeleteCall) RequestId(requestId string) *ExternalVpn // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ExternalVpnGatewaysDeleteCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysDeleteCall { +func (c *DisksStopGroupAsyncReplicationCall) Fields(s ...googleapi.Field) *DisksStopGroupAsyncReplicationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ExternalVpnGatewaysDeleteCall) Context(ctx context.Context) *ExternalVpnGatewaysDeleteCall { +func (c *DisksStopGroupAsyncReplicationCall) Context(ctx context.Context) *DisksStopGroupAsyncReplicationCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ExternalVpnGatewaysDeleteCall) Header() http.Header { +func (c *DisksStopGroupAsyncReplicationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ExternalVpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *DisksStopGroupAsyncReplicationCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disksstopgroupasyncreplicationresource) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/externalVpnGateways/{externalVpnGateway}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "externalVpnGateway": c.externalVpnGateway, + "project": c.project, + "zone": c.zone, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.stopGroupAsyncReplication", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.externalVpnGateways.delete" call. +// Do executes the "compute.disks.stopGroupAsyncReplication" call. // 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 *ExternalVpnGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DisksStopGroupAsyncReplicationCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13499,93 +14476,90 @@ func (c *ExternalVpnGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*Opera if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.stopGroupAsyncReplication", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ExternalVpnGatewaysGetCall struct { - s *Service - project string - externalVpnGateway string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type DisksTestIamPermissionsCall struct { + s *Service + project string + zone string + resource string + testpermissionsrequest *TestPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Returns the specified externalVpnGateway. Get a list of -// available -// externalVpnGateways by making a list() request. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. // -// - externalVpnGateway: Name of the externalVpnGateway to return. // - project: Project ID for this request. -func (r *ExternalVpnGatewaysService) Get(project string, externalVpnGateway string) *ExternalVpnGatewaysGetCall { - c := &ExternalVpnGatewaysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - resource: Name or id of the resource for this request. +// - zone: The name of the zone for this request. +func (r *DisksService) TestIamPermissions(project string, zone string, resource string, testpermissionsrequest *TestPermissionsRequest) *DisksTestIamPermissionsCall { + c := &DisksTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.externalVpnGateway = externalVpnGateway + c.zone = zone + c.resource = resource + c.testpermissionsrequest = testpermissionsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ExternalVpnGatewaysGetCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysGetCall { +func (c *DisksTestIamPermissionsCall) Fields(s ...googleapi.Field) *DisksTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ExternalVpnGatewaysGetCall) IfNoneMatch(entityTag string) *ExternalVpnGatewaysGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ExternalVpnGatewaysGetCall) Context(ctx context.Context) *ExternalVpnGatewaysGetCall { +func (c *DisksTestIamPermissionsCall) Context(ctx context.Context) *DisksTestIamPermissionsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ExternalVpnGatewaysGetCall) Header() http.Header { +func (c *DisksTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ExternalVpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *DisksTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testpermissionsrequest) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/externalVpnGateways/{externalVpnGateway}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "externalVpnGateway": c.externalVpnGateway, + "project": c.project, + "zone": c.zone, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.externalVpnGateways.get" call. +// Do executes the "compute.disks.testIamPermissions" call. // Any non-2xx status code is an error. Response headers are in either -// *ExternalVpnGateway.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 *ExternalVpnGatewaysGetCall) Do(opts ...googleapi.CallOption) (*ExternalVpnGateway, error) { +// *TestPermissionsResponse.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 *DisksTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13604,7 +14578,7 @@ func (c *ExternalVpnGatewaysGetCall) Do(opts ...googleapi.CallOption) (*External if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ExternalVpnGateway{ + ret := &TestPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -13615,27 +14589,41 @@ func (c *ExternalVpnGatewaysGetCall) Do(opts ...googleapi.CallOption) (*External if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.testIamPermissions", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ExternalVpnGatewaysInsertCall struct { - s *Service - project string - externalvpngateway *ExternalVpnGateway - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type DisksUpdateCall struct { + s *Service + project string + zone string + disk string + disk2 *Disk + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Insert: Creates a ExternalVpnGateway in the specified project using -// the data included in the request. +// Update: Updates the specified disk with the data included in the +// request. +// The update is performed only on selected fields included as part +// of update-mask. // +// - disk: The disk name for this request. // - project: Project ID for this request. -func (r *ExternalVpnGatewaysService) Insert(project string, externalvpngateway *ExternalVpnGateway) *ExternalVpnGatewaysInsertCall { - c := &ExternalVpnGatewaysInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - zone: The name of the zone for this request. +func (r *DisksService) Update(project string, zone string, disk string, disk2 *Disk) *DisksUpdateCall { + c := &DisksUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.externalvpngateway = externalvpngateway + c.zone = zone + c.disk = disk + c.disk2 = disk2 + return c +} + +// Paths sets the optional parameter "paths": +func (c *DisksUpdateCall) Paths(paths ...string) *DisksUpdateCall { + c.urlParams_.SetMulti("paths", append([]string{}, paths...)) return c } @@ -13656,62 +14644,71 @@ func (r *ExternalVpnGatewaysService) Insert(project string, externalvpngateway * // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *ExternalVpnGatewaysInsertCall) RequestId(requestId string) *ExternalVpnGatewaysInsertCall { +func (c *DisksUpdateCall) RequestId(requestId string) *DisksUpdateCall { c.urlParams_.Set("requestId", requestId) return c } +// UpdateMask sets the optional parameter "updateMask": update_mask indicates +// fields to be updated as part of this request. +func (c *DisksUpdateCall) UpdateMask(updateMask string) *DisksUpdateCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ExternalVpnGatewaysInsertCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysInsertCall { +func (c *DisksUpdateCall) Fields(s ...googleapi.Field) *DisksUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ExternalVpnGatewaysInsertCall) Context(ctx context.Context) *ExternalVpnGatewaysInsertCall { +func (c *DisksUpdateCall) Context(ctx context.Context) *DisksUpdateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ExternalVpnGatewaysInsertCall) Header() http.Header { +func (c *DisksUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ExternalVpnGatewaysInsertCall) doRequest(alt string) (*http.Response, error) { +func (c *DisksUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.externalvpngateway) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.disk2) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/externalVpnGateways") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "project": c.project, + "zone": c.zone, + "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.insert", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.update", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.externalVpnGateways.insert" call. +// Do executes the "compute.disks.update" call. // 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 *ExternalVpnGatewaysInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DisksUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13741,217 +14738,111 @@ func (c *ExternalVpnGatewaysInsertCall) Do(opts ...googleapi.CallOption) (*Opera if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.insert", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.update", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ExternalVpnGatewaysListCall struct { - s *Service - project string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type DisksUpdateKmsKeyCall struct { + s *Service + project string + zone string + disk string + diskupdatekmskeyrequest *DiskUpdateKmsKeyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Retrieves the list of ExternalVpnGateway available to the -// specified -// project. +// UpdateKmsKey: Rotates the customer-managed +// encryption key to the latest version for the specified persistent disk. // +// - disk: Name of the Disk resource, should conform to RFC1035. // - project: Project ID for this request. -func (r *ExternalVpnGatewaysService) List(project string) *ExternalVpnGatewaysListCall { - c := &ExternalVpnGatewaysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - zone: The name of the zone for this request. +func (r *DisksService) UpdateKmsKey(project string, zone string, disk string, diskupdatekmskeyrequest *DiskUpdateKmsKeyRequest) *DisksUpdateKmsKeyCall { + c := &DisksUpdateKmsKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project + c.zone = zone + c.disk = disk + c.diskupdatekmskeyrequest = diskupdatekmskeyrequest return c } -// Filter sets the optional parameter "filter": A filter expression that -// filters resources listed in the response. Most -// Compute resources support two types of filter expressions: -// expressions that support regular expressions and expressions that follow -// API improvement proposal AIP-160. -// These two types of filter expressions cannot be mixed in one request. -// -// If you want to use AIP-160, your 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 `:*` 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 onresource 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) -// ``` -// -// If you want to use a regular expression, use the `eq` (equal) or `ne` -// (not equal) operator against a single un-parenthesized expression with -// or -// without quotes or against multiple parenthesized expressions. -// Examples: -// -// `fieldname eq unquoted literal` -// `fieldname eq 'single quoted literal'` -// `fieldname eq "double quoted literal" -// `(fieldname1 eq literal) (fieldname2 ne "literal")` -// -// The literal value is interpreted as a regular expression using GoogleRE2 -// library syntax. -// The literal value must match the entire field. +// RequestId sets the optional parameter "requestId": 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, to filter for instances that do not end with name -// "instance", -// you would use `name ne .*instance`. +// 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. // -// You cannot combine constraints on multiple fields using regular -// expressions. -func (c *ExternalVpnGatewaysListCall) Filter(filter string) *ExternalVpnGatewaysListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// MaxResults sets the optional parameter "maxResults": 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`) -func (c *ExternalVpnGatewaysListCall) MaxResults(maxResults int64) *ExternalVpnGatewaysListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// OrderBy sets the optional parameter "orderBy": 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. -func (c *ExternalVpnGatewaysListCall) OrderBy(orderBy string) *ExternalVpnGatewaysListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageToken sets the optional parameter "pageToken": Specifies a page token to -// use. Set `pageToken` to the -// `nextPageToken` returned by a previous list request to get -// the next page of results. -func (c *ExternalVpnGatewaysListCall) PageToken(pageToken string) *ExternalVpnGatewaysListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": -// Opt-in for partial success behavior which provides partial results in -// case -// of failure. The default value is false. -// -// For example, when partial success behavior is enabled, aggregatedList for -// a -// single zone scope either returns all resources in the zone or no -// resources, -// with an error code. -func (c *ExternalVpnGatewaysListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ExternalVpnGatewaysListCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) +// The request ID must be +// a valid UUID with the exception that zero UUID is not +// supported +// (00000000-0000-0000-0000-000000000000). +func (c *DisksUpdateKmsKeyCall) RequestId(requestId string) *DisksUpdateKmsKeyCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ExternalVpnGatewaysListCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysListCall { +func (c *DisksUpdateKmsKeyCall) Fields(s ...googleapi.Field) *DisksUpdateKmsKeyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ExternalVpnGatewaysListCall) IfNoneMatch(entityTag string) *ExternalVpnGatewaysListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ExternalVpnGatewaysListCall) Context(ctx context.Context) *ExternalVpnGatewaysListCall { +func (c *DisksUpdateKmsKeyCall) Context(ctx context.Context) *DisksUpdateKmsKeyCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ExternalVpnGatewaysListCall) Header() http.Header { +func (c *DisksUpdateKmsKeyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ExternalVpnGatewaysListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *DisksUpdateKmsKeyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.diskupdatekmskeyrequest) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/externalVpnGateways") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/updateKmsKey") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "project": c.project, + "zone": c.zone, + "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.updateKmsKey", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.externalVpnGateways.list" call. +// Do executes the "compute.disks.updateKmsKey" call. // Any non-2xx status code is an error. Response headers are in either -// *ExternalVpnGatewayList.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 *ExternalVpnGatewaysListCall) Do(opts ...googleapi.CallOption) (*ExternalVpnGatewayList, error) { +// *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 *DisksUpdateKmsKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -13970,7 +14861,7 @@ func (c *ExternalVpnGatewaysListCall) Do(opts ...googleapi.CallOption) (*Externa if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ExternalVpnGatewayList{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -13981,88 +14872,91 @@ func (c *ExternalVpnGatewaysListCall) Do(opts ...googleapi.CallOption) (*Externa if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.updateKmsKey", "response", internallog.HTTPResponse(res, b)) return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ExternalVpnGatewaysListCall) Pages(ctx context.Context, f func(*ExternalVpnGatewayList) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } +type DisksWaitForReplicationCatchUpCall struct { + s *Service + project string + zone string + disk string + waitforreplicationcatchuprequest *WaitForReplicationCatchUpRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -type ExternalVpnGatewaysSetLabelsCall struct { - s *Service - project string - resource string - globalsetlabelsrequest *GlobalSetLabelsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// WaitForReplicationCatchUp: Wait for replication to catch up on the secondary +// disk. +// +// - disk: The name of the persistent disk. +// Name should conform to RFC1035 or be an unsigned long integer. +// - project: Project ID for this request. +// - zone: The name of the zone for this request. +func (r *DisksService) WaitForReplicationCatchUp(project string, zone string, disk string, waitforreplicationcatchuprequest *WaitForReplicationCatchUpRequest) *DisksWaitForReplicationCatchUpCall { + c := &DisksWaitForReplicationCatchUpCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.disk = disk + c.waitforreplicationcatchuprequest = waitforreplicationcatchuprequest + return c } -// SetLabels: Sets the labels on an ExternalVpnGateway. To learn more about -// labels, -// read the Labeling -// Resources documentation. +// RequestId sets the optional parameter "requestId": 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. // -// - project: Project ID for this request. -// - resource: Name or id of the resource for this request. -func (r *ExternalVpnGatewaysService) SetLabels(project string, resource string, globalsetlabelsrequest *GlobalSetLabelsRequest) *ExternalVpnGatewaysSetLabelsCall { - c := &ExternalVpnGatewaysSetLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.resource = resource - c.globalsetlabelsrequest = globalsetlabelsrequest +// 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). +func (c *DisksWaitForReplicationCatchUpCall) RequestId(requestId string) *DisksWaitForReplicationCatchUpCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ExternalVpnGatewaysSetLabelsCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysSetLabelsCall { +func (c *DisksWaitForReplicationCatchUpCall) Fields(s ...googleapi.Field) *DisksWaitForReplicationCatchUpCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ExternalVpnGatewaysSetLabelsCall) Context(ctx context.Context) *ExternalVpnGatewaysSetLabelsCall { +func (c *DisksWaitForReplicationCatchUpCall) Context(ctx context.Context) *DisksWaitForReplicationCatchUpCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ExternalVpnGatewaysSetLabelsCall) Header() http.Header { +func (c *DisksWaitForReplicationCatchUpCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ExternalVpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response, error) { +func (c *DisksWaitForReplicationCatchUpCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.globalsetlabelsrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.waitforreplicationcatchuprequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/externalVpnGateways/{resource}/setLabels") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/disks/{disk}/waitForReplicationCatchUp") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -14070,19 +14964,20 @@ func (c *ExternalVpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "resource": c.resource, + "project": c.project, + "zone": c.zone, + "disk": c.disk, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.setLabels", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.disks.waitForReplicationCatchUp", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.externalVpnGateways.setLabels" call. +// Do executes the "compute.disks.waitForReplicationCatchUp" call. // 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 *ExternalVpnGatewaysSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *DisksWaitForReplicationCatchUpCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14112,86 +15007,100 @@ func (c *ExternalVpnGatewaysSetLabelsCall) Do(opts ...googleapi.CallOption) (*Op if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.setLabels", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.disks.waitForReplicationCatchUp", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ExternalVpnGatewaysTestIamPermissionsCall struct { - s *Service - project string - resource string - testpermissionsrequest *TestPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ExternalVpnGatewaysDeleteCall struct { + s *Service + project string + externalVpnGateway string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the specified -// resource. +// Delete: Deletes the specified externalVpnGateway. // +// - externalVpnGateway: Name of the externalVpnGateways to delete. // - project: Project ID for this request. -// - resource: Name or id of the resource for this request. -func (r *ExternalVpnGatewaysService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *ExternalVpnGatewaysTestIamPermissionsCall { - c := &ExternalVpnGatewaysTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ExternalVpnGatewaysService) Delete(project string, externalVpnGateway string) *ExternalVpnGatewaysDeleteCall { + c := &ExternalVpnGatewaysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.resource = resource - c.testpermissionsrequest = testpermissionsrequest + c.externalVpnGateway = externalVpnGateway + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *ExternalVpnGatewaysDeleteCall) RequestId(requestId string) *ExternalVpnGatewaysDeleteCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ExternalVpnGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysTestIamPermissionsCall { +func (c *ExternalVpnGatewaysDeleteCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ExternalVpnGatewaysTestIamPermissionsCall) Context(ctx context.Context) *ExternalVpnGatewaysTestIamPermissionsCall { +func (c *ExternalVpnGatewaysDeleteCall) Context(ctx context.Context) *ExternalVpnGatewaysDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ExternalVpnGatewaysTestIamPermissionsCall) Header() http.Header { +func (c *ExternalVpnGatewaysDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ExternalVpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testpermissionsrequest) - if err != nil { - return nil, err - } +func (c *ExternalVpnGatewaysDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/externalVpnGateways/{externalVpnGateway}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "resource": c.resource, + "project": c.project, + "externalVpnGateway": c.externalVpnGateway, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.externalVpnGateways.testIamPermissions" call. +// Do executes the "compute.externalVpnGateways.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *TestPermissionsResponse.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 *ExternalVpnGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error) { +// *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 *ExternalVpnGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14210,7 +15119,7 @@ func (c *ExternalVpnGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &TestPermissionsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14221,113 +15130,93 @@ func (c *ExternalVpnGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.testIamPermissions", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type FirewallPoliciesAddAssociationCall struct { - s *Service - firewallPolicy string - firewallpolicyassociation *FirewallPolicyAssociation - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// AddAssociation: Inserts an association for the specified firewall policy. -// -// - firewallPolicy: Name of the firewall policy to update. -func (r *FirewallPoliciesService) AddAssociation(firewallPolicy string, firewallpolicyassociation *FirewallPolicyAssociation) *FirewallPoliciesAddAssociationCall { - c := &FirewallPoliciesAddAssociationCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.firewallPolicy = firewallPolicy - c.firewallpolicyassociation = firewallpolicyassociation - return c -} - -// ReplaceExistingAssociation sets the optional parameter -// "replaceExistingAssociation": Indicates whether or not to replace it if an -// association of the attachment -// already exists. This is false by default, in which case an error will -// be -// returned if an association already exists. -func (c *FirewallPoliciesAddAssociationCall) ReplaceExistingAssociation(replaceExistingAssociation bool) *FirewallPoliciesAddAssociationCall { - c.urlParams_.Set("replaceExistingAssociation", fmt.Sprint(replaceExistingAssociation)) - return c +type ExternalVpnGatewaysGetCall struct { + s *Service + project string + externalVpnGateway string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// RequestId sets the optional parameter "requestId": 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. +// Get: Returns the specified externalVpnGateway. Get a list of +// available +// externalVpnGateways by making a list() request. // -// The request ID must be -// a valid UUID with the exception that zero UUID is not -// supported -// (00000000-0000-0000-0000-000000000000). -func (c *FirewallPoliciesAddAssociationCall) RequestId(requestId string) *FirewallPoliciesAddAssociationCall { - c.urlParams_.Set("requestId", requestId) +// - externalVpnGateway: Name of the externalVpnGateway to return. +// - project: Project ID for this request. +func (r *ExternalVpnGatewaysService) Get(project string, externalVpnGateway string) *ExternalVpnGatewaysGetCall { + c := &ExternalVpnGatewaysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.externalVpnGateway = externalVpnGateway return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *FirewallPoliciesAddAssociationCall) Fields(s ...googleapi.Field) *FirewallPoliciesAddAssociationCall { +func (c *ExternalVpnGatewaysGetCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ExternalVpnGatewaysGetCall) IfNoneMatch(entityTag string) *ExternalVpnGatewaysGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *FirewallPoliciesAddAssociationCall) Context(ctx context.Context) *FirewallPoliciesAddAssociationCall { +func (c *ExternalVpnGatewaysGetCall) Context(ctx context.Context) *ExternalVpnGatewaysGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *FirewallPoliciesAddAssociationCall) Header() http.Header { +func (c *ExternalVpnGatewaysGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FirewallPoliciesAddAssociationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firewallpolicyassociation) - if err != nil { - return nil, err +func (c *ExternalVpnGatewaysGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}/addAssociation") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/externalVpnGateways/{externalVpnGateway}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "firewallPolicy": c.firewallPolicy, + "project": c.project, + "externalVpnGateway": c.externalVpnGateway, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.addAssociation", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.firewallPolicies.addAssociation" call. +// Do executes the "compute.externalVpnGateways.get" call. // 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 *FirewallPoliciesAddAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *ExternalVpnGateway.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 *ExternalVpnGatewaysGetCall) Do(opts ...googleapi.CallOption) (*ExternalVpnGateway, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14346,7 +15235,7 @@ func (c *FirewallPoliciesAddAssociationCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ExternalVpnGateway{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14357,27 +15246,27 @@ func (c *FirewallPoliciesAddAssociationCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.addAssociation", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type FirewallPoliciesAddPacketMirroringRuleCall struct { +type ExternalVpnGatewaysInsertCall struct { s *Service - firewallPolicy string - firewallpolicyrule *FirewallPolicyRule + project string + externalvpngateway *ExternalVpnGateway urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// AddPacketMirroringRule: Inserts a packet mirroring rule into a firewall -// policy. +// Insert: Creates a ExternalVpnGateway in the specified project using +// the data included in the request. // -// - firewallPolicy: Name of the firewall policy to update. -func (r *FirewallPoliciesService) AddPacketMirroringRule(firewallPolicy string, firewallpolicyrule *FirewallPolicyRule) *FirewallPoliciesAddPacketMirroringRuleCall { - c := &FirewallPoliciesAddPacketMirroringRuleCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.firewallPolicy = firewallPolicy - c.firewallpolicyrule = firewallpolicyrule +// - project: Project ID for this request. +func (r *ExternalVpnGatewaysService) Insert(project string, externalvpngateway *ExternalVpnGateway) *ExternalVpnGatewaysInsertCall { + c := &ExternalVpnGatewaysInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.externalvpngateway = externalvpngateway return c } @@ -14398,7 +15287,7 @@ func (r *FirewallPoliciesService) AddPacketMirroringRule(firewallPolicy string, // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *FirewallPoliciesAddPacketMirroringRuleCall) RequestId(requestId string) *FirewallPoliciesAddPacketMirroringRuleCall { +func (c *ExternalVpnGatewaysInsertCall) RequestId(requestId string) *ExternalVpnGatewaysInsertCall { c.urlParams_.Set("requestId", requestId) return c } @@ -14406,35 +15295,35 @@ func (c *FirewallPoliciesAddPacketMirroringRuleCall) RequestId(requestId string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *FirewallPoliciesAddPacketMirroringRuleCall) Fields(s ...googleapi.Field) *FirewallPoliciesAddPacketMirroringRuleCall { +func (c *ExternalVpnGatewaysInsertCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *FirewallPoliciesAddPacketMirroringRuleCall) Context(ctx context.Context) *FirewallPoliciesAddPacketMirroringRuleCall { +func (c *ExternalVpnGatewaysInsertCall) Context(ctx context.Context) *ExternalVpnGatewaysInsertCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *FirewallPoliciesAddPacketMirroringRuleCall) Header() http.Header { +func (c *ExternalVpnGatewaysInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FirewallPoliciesAddPacketMirroringRuleCall) doRequest(alt string) (*http.Response, error) { +func (c *ExternalVpnGatewaysInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firewallpolicyrule) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.externalvpngateway) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/externalVpnGateways") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -14442,18 +15331,18 @@ func (c *FirewallPoliciesAddPacketMirroringRuleCall) doRequest(alt string) (*htt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "firewallPolicy": c.firewallPolicy, + "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.addPacketMirroringRule", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.insert", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.firewallPolicies.addPacketMirroringRule" call. +// Do executes the "compute.externalVpnGateways.insert" call. // 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 *FirewallPoliciesAddPacketMirroringRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ExternalVpnGatewaysInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14483,102 +15372,217 @@ func (c *FirewallPoliciesAddPacketMirroringRuleCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.addPacketMirroringRule", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.insert", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type FirewallPoliciesAddRuleCall struct { - s *Service - firewallPolicy string - firewallpolicyrule *FirewallPolicyRule - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ExternalVpnGatewaysListCall struct { + s *Service + project string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// AddRule: Inserts a rule into a firewall policy. +// List: Retrieves the list of ExternalVpnGateway available to the +// specified +// project. // -// - firewallPolicy: Name of the firewall policy to update. -func (r *FirewallPoliciesService) AddRule(firewallPolicy string, firewallpolicyrule *FirewallPolicyRule) *FirewallPoliciesAddRuleCall { - c := &FirewallPoliciesAddRuleCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.firewallPolicy = firewallPolicy - c.firewallpolicyrule = firewallpolicyrule +// - project: Project ID for this request. +func (r *ExternalVpnGatewaysService) List(project string) *ExternalVpnGatewaysListCall { + c := &ExternalVpnGatewaysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project return c } -// RequestId sets the optional parameter "requestId": 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. +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most +// Compute resources support two types of filter expressions: +// expressions that support regular expressions and expressions that follow +// API improvement proposal AIP-160. +// These two types of filter expressions cannot be mixed in one request. // -// 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. +// If you want to use AIP-160, your 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 `:`. // -// The request ID must be -// a valid UUID with the exception that zero UUID is not -// supported -// (00000000-0000-0000-0000-000000000000). -func (c *FirewallPoliciesAddRuleCall) RequestId(requestId string) *FirewallPoliciesAddRuleCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// Fields allows partial responses to be retrieved. See +// For example, if you are filtering Compute Engine instances, you can +// exclude instances named `example-instance` by specifying +// `name != example-instance`. +// +// 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 onresource 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) +// ``` +// +// If you want to use a regular expression, use the `eq` (equal) or `ne` +// (not equal) operator against a single un-parenthesized expression with +// or +// without quotes or against multiple parenthesized expressions. +// Examples: +// +// `fieldname eq unquoted literal` +// `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" +// `(fieldname1 eq literal) (fieldname2 ne "literal")` +// +// The literal value is interpreted as a regular expression using GoogleRE2 +// library syntax. +// The literal value must match the entire field. +// +// For example, to filter for instances that do not end with name +// "instance", +// you would use `name ne .*instance`. +// +// You cannot combine constraints on multiple fields using regular +// expressions. +func (c *ExternalVpnGatewaysListCall) Filter(filter string) *ExternalVpnGatewaysListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": 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`) +func (c *ExternalVpnGatewaysListCall) MaxResults(maxResults int64) *ExternalVpnGatewaysListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": 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. +func (c *ExternalVpnGatewaysListCall) OrderBy(orderBy string) *ExternalVpnGatewaysListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the +// `nextPageToken` returned by a previous list request to get +// the next page of results. +func (c *ExternalVpnGatewaysListCall) PageToken(pageToken string) *ExternalVpnGatewaysListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in +// case +// of failure. The default value is false. +// +// For example, when partial success behavior is enabled, aggregatedList for +// a +// single zone scope either returns all resources in the zone or no +// resources, +// with an error code. +func (c *ExternalVpnGatewaysListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ExternalVpnGatewaysListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *FirewallPoliciesAddRuleCall) Fields(s ...googleapi.Field) *FirewallPoliciesAddRuleCall { +func (c *ExternalVpnGatewaysListCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ExternalVpnGatewaysListCall) IfNoneMatch(entityTag string) *ExternalVpnGatewaysListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *FirewallPoliciesAddRuleCall) Context(ctx context.Context) *FirewallPoliciesAddRuleCall { +func (c *ExternalVpnGatewaysListCall) Context(ctx context.Context) *ExternalVpnGatewaysListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *FirewallPoliciesAddRuleCall) Header() http.Header { +func (c *ExternalVpnGatewaysListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FirewallPoliciesAddRuleCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firewallpolicyrule) - if err != nil { - return nil, err +func (c *ExternalVpnGatewaysListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}/addRule") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/externalVpnGateways") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "firewallPolicy": c.firewallPolicy, + "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.addRule", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.firewallPolicies.addRule" call. +// Do executes the "compute.externalVpnGateways.list" call. // 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 *FirewallPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *ExternalVpnGatewayList.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 *ExternalVpnGatewaysListCall) Do(opts ...googleapi.CallOption) (*ExternalVpnGatewayList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14597,7 +15601,7 @@ func (c *FirewallPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operati if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ExternalVpnGatewayList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14608,103 +15612,108 @@ func (c *FirewallPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operati if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.addRule", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type FirewallPoliciesCloneRulesCall struct { - s *Service - firewallPolicy string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ExternalVpnGatewaysListCall) Pages(ctx context.Context, f func(*ExternalVpnGatewayList) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// CloneRules: Copies rules to the specified firewall policy. -// -// - firewallPolicy: Name of the firewall policy to update. -func (r *FirewallPoliciesService) CloneRules(firewallPolicy string) *FirewallPoliciesCloneRulesCall { - c := &FirewallPoliciesCloneRulesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.firewallPolicy = firewallPolicy - return c +type ExternalVpnGatewaysSetLabelsCall struct { + s *Service + project string + resource string + globalsetlabelsrequest *GlobalSetLabelsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// RequestId sets the optional parameter "requestId": 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. +// SetLabels: Sets the labels on an ExternalVpnGateway. To learn more about +// labels, +// read the Labeling +// Resources documentation. // -// The request ID must be -// a valid UUID with the exception that zero UUID is not -// supported -// (00000000-0000-0000-0000-000000000000). -func (c *FirewallPoliciesCloneRulesCall) RequestId(requestId string) *FirewallPoliciesCloneRulesCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// SourceFirewallPolicy sets the optional parameter "sourceFirewallPolicy": The -// firewall policy from which to copy rules. -func (c *FirewallPoliciesCloneRulesCall) SourceFirewallPolicy(sourceFirewallPolicy string) *FirewallPoliciesCloneRulesCall { - c.urlParams_.Set("sourceFirewallPolicy", sourceFirewallPolicy) +// - project: Project ID for this request. +// - resource: Name or id of the resource for this request. +func (r *ExternalVpnGatewaysService) SetLabels(project string, resource string, globalsetlabelsrequest *GlobalSetLabelsRequest) *ExternalVpnGatewaysSetLabelsCall { + c := &ExternalVpnGatewaysSetLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.resource = resource + c.globalsetlabelsrequest = globalsetlabelsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *FirewallPoliciesCloneRulesCall) Fields(s ...googleapi.Field) *FirewallPoliciesCloneRulesCall { +func (c *ExternalVpnGatewaysSetLabelsCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysSetLabelsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *FirewallPoliciesCloneRulesCall) Context(ctx context.Context) *FirewallPoliciesCloneRulesCall { +func (c *ExternalVpnGatewaysSetLabelsCall) Context(ctx context.Context) *ExternalVpnGatewaysSetLabelsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *FirewallPoliciesCloneRulesCall) Header() http.Header { +func (c *ExternalVpnGatewaysSetLabelsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FirewallPoliciesCloneRulesCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ExternalVpnGatewaysSetLabelsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.globalsetlabelsrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}/cloneRules") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/externalVpnGateways/{resource}/setLabels") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "firewallPolicy": c.firewallPolicy, + "project": c.project, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.cloneRules", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.setLabels", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.firewallPolicies.cloneRules" call. +// Do executes the "compute.externalVpnGateways.setLabels" call. // 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 *FirewallPoliciesCloneRulesCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ExternalVpnGatewaysSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14734,96 +15743,86 @@ func (c *FirewallPoliciesCloneRulesCall) Do(opts ...googleapi.CallOption) (*Oper if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.cloneRules", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.setLabels", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type FirewallPoliciesDeleteCall struct { - s *Service - firewallPolicy string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes the specified policy. -// -// - firewallPolicy: Name of the firewall policy to delete. -func (r *FirewallPoliciesService) Delete(firewallPolicy string) *FirewallPoliciesDeleteCall { - c := &FirewallPoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.firewallPolicy = firewallPolicy - return c +type ExternalVpnGatewaysTestIamPermissionsCall struct { + s *Service + project string + resource string + testpermissionsrequest *TestPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// RequestId sets the optional parameter "requestId": 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. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. // -// The request ID must be -// a valid UUID with the exception that zero UUID is not -// supported -// (00000000-0000-0000-0000-000000000000). -func (c *FirewallPoliciesDeleteCall) RequestId(requestId string) *FirewallPoliciesDeleteCall { - c.urlParams_.Set("requestId", requestId) +// - project: Project ID for this request. +// - resource: Name or id of the resource for this request. +func (r *ExternalVpnGatewaysService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *ExternalVpnGatewaysTestIamPermissionsCall { + c := &ExternalVpnGatewaysTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.resource = resource + c.testpermissionsrequest = testpermissionsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *FirewallPoliciesDeleteCall) Fields(s ...googleapi.Field) *FirewallPoliciesDeleteCall { +func (c *ExternalVpnGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *ExternalVpnGatewaysTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *FirewallPoliciesDeleteCall) Context(ctx context.Context) *FirewallPoliciesDeleteCall { +func (c *ExternalVpnGatewaysTestIamPermissionsCall) Context(ctx context.Context) *ExternalVpnGatewaysTestIamPermissionsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *FirewallPoliciesDeleteCall) Header() http.Header { +func (c *ExternalVpnGatewaysTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FirewallPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ExternalVpnGatewaysTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testpermissionsrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "firewallPolicy": c.firewallPolicy, + "project": c.project, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.firewallPolicies.delete" call. +// Do executes the "compute.externalVpnGateways.testIamPermissions" call. // 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 *FirewallPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *TestPermissionsResponse.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 *ExternalVpnGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14842,7 +15841,7 @@ func (c *FirewallPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operatio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &TestPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -14853,59 +15852,96 @@ func (c *FirewallPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operatio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.externalVpnGateways.testIamPermissions", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type FirewallPoliciesForceStartProgressiveRolloutCall struct { - s *Service - firewallPolicy string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type FirewallPoliciesAddAssociationCall struct { + s *Service + firewallPolicy string + firewallpolicyassociation *FirewallPolicyAssociation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ForceStartProgressiveRollout: Starts a brand new progressive rollout of -// hierarchical firewall policy. -// This API will return an error when there is an ongoing progressive rollout. +// AddAssociation: Inserts an association for the specified firewall policy. // -// - firewallPolicy: Name of the target firewall policy. -func (r *FirewallPoliciesService) ForceStartProgressiveRollout(firewallPolicy string) *FirewallPoliciesForceStartProgressiveRolloutCall { - c := &FirewallPoliciesForceStartProgressiveRolloutCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - firewallPolicy: Name of the firewall policy to update. +func (r *FirewallPoliciesService) AddAssociation(firewallPolicy string, firewallpolicyassociation *FirewallPolicyAssociation) *FirewallPoliciesAddAssociationCall { + c := &FirewallPoliciesAddAssociationCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.firewallPolicy = firewallPolicy + c.firewallpolicyassociation = firewallpolicyassociation + return c +} + +// ReplaceExistingAssociation sets the optional parameter +// "replaceExistingAssociation": Indicates whether or not to replace it if an +// association of the attachment +// already exists. This is false by default, in which case an error will +// be +// returned if an association already exists. +func (c *FirewallPoliciesAddAssociationCall) ReplaceExistingAssociation(replaceExistingAssociation bool) *FirewallPoliciesAddAssociationCall { + c.urlParams_.Set("replaceExistingAssociation", fmt.Sprint(replaceExistingAssociation)) + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *FirewallPoliciesAddAssociationCall) RequestId(requestId string) *FirewallPoliciesAddAssociationCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *FirewallPoliciesForceStartProgressiveRolloutCall) Fields(s ...googleapi.Field) *FirewallPoliciesForceStartProgressiveRolloutCall { +func (c *FirewallPoliciesAddAssociationCall) Fields(s ...googleapi.Field) *FirewallPoliciesAddAssociationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *FirewallPoliciesForceStartProgressiveRolloutCall) Context(ctx context.Context) *FirewallPoliciesForceStartProgressiveRolloutCall { +func (c *FirewallPoliciesAddAssociationCall) Context(ctx context.Context) *FirewallPoliciesAddAssociationCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *FirewallPoliciesForceStartProgressiveRolloutCall) Header() http.Header { +func (c *FirewallPoliciesAddAssociationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FirewallPoliciesForceStartProgressiveRolloutCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *FirewallPoliciesAddAssociationCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firewallpolicyassociation) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}/forceStartProgressiveRollout") + urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}/addAssociation") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -14913,16 +15949,16 @@ func (c *FirewallPoliciesForceStartProgressiveRolloutCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.forceStartProgressiveRollout", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.addAssociation", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.firewallPolicies.forceStartProgressiveRollout" call. +// Do executes the "compute.firewallPolicies.addAssociation" call. // 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 *FirewallPoliciesForceStartProgressiveRolloutCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *FirewallPoliciesAddAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -14952,69 +15988,86 @@ func (c *FirewallPoliciesForceStartProgressiveRolloutCall) Do(opts ...googleapi. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.forceStartProgressiveRollout", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.addAssociation", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type FirewallPoliciesGetCall struct { - s *Service - firewallPolicy string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type FirewallPoliciesAddPacketMirroringRuleCall struct { + s *Service + firewallPolicy string + firewallpolicyrule *FirewallPolicyRule + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Returns the specified firewall policy. +// AddPacketMirroringRule: Inserts a packet mirroring rule into a firewall +// policy. // -// - firewallPolicy: Name of the firewall policy to get. -func (r *FirewallPoliciesService) Get(firewallPolicy string) *FirewallPoliciesGetCall { - c := &FirewallPoliciesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - firewallPolicy: Name of the firewall policy to update. +func (r *FirewallPoliciesService) AddPacketMirroringRule(firewallPolicy string, firewallpolicyrule *FirewallPolicyRule) *FirewallPoliciesAddPacketMirroringRuleCall { + c := &FirewallPoliciesAddPacketMirroringRuleCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.firewallPolicy = firewallPolicy + c.firewallpolicyrule = firewallpolicyrule + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *FirewallPoliciesAddPacketMirroringRuleCall) RequestId(requestId string) *FirewallPoliciesAddPacketMirroringRuleCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *FirewallPoliciesGetCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetCall { +func (c *FirewallPoliciesAddPacketMirroringRuleCall) Fields(s ...googleapi.Field) *FirewallPoliciesAddPacketMirroringRuleCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *FirewallPoliciesGetCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *FirewallPoliciesGetCall) Context(ctx context.Context) *FirewallPoliciesGetCall { +func (c *FirewallPoliciesAddPacketMirroringRuleCall) Context(ctx context.Context) *FirewallPoliciesAddPacketMirroringRuleCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *FirewallPoliciesGetCall) Header() http.Header { +func (c *FirewallPoliciesAddPacketMirroringRuleCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FirewallPoliciesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *FirewallPoliciesAddPacketMirroringRuleCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firewallpolicyrule) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}") + urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -15022,16 +16075,16 @@ func (c *FirewallPoliciesGetCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.addPacketMirroringRule", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.firewallPolicies.get" call. +// Do executes the "compute.firewallPolicies.addPacketMirroringRule" call. // Any non-2xx status code is an error. Response headers are in either -// *FirewallPolicy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// *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 *FirewallPoliciesGetCall) Do(opts ...googleapi.CallOption) (*FirewallPolicy, error) { +func (c *FirewallPoliciesAddPacketMirroringRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15050,7 +16103,7 @@ func (c *FirewallPoliciesGetCall) Do(opts ...googleapi.CallOption) (*FirewallPol if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &FirewallPolicy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15061,77 +16114,85 @@ func (c *FirewallPoliciesGetCall) Do(opts ...googleapi.CallOption) (*FirewallPol if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.addPacketMirroringRule", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type FirewallPoliciesGetAssociationCall struct { - s *Service - firewallPolicy string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type FirewallPoliciesAddRuleCall struct { + s *Service + firewallPolicy string + firewallpolicyrule *FirewallPolicyRule + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetAssociation: Gets an association with the specified name. +// AddRule: Inserts a rule into a firewall policy. // -// - firewallPolicy: Name of the firewall policy to which the queried rule -// belongs. -func (r *FirewallPoliciesService) GetAssociation(firewallPolicy string) *FirewallPoliciesGetAssociationCall { - c := &FirewallPoliciesGetAssociationCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - firewallPolicy: Name of the firewall policy to update. +func (r *FirewallPoliciesService) AddRule(firewallPolicy string, firewallpolicyrule *FirewallPolicyRule) *FirewallPoliciesAddRuleCall { + c := &FirewallPoliciesAddRuleCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.firewallPolicy = firewallPolicy + c.firewallpolicyrule = firewallpolicyrule return c } -// Name sets the optional parameter "name": The name of the association to get -// from the firewall policy. -func (c *FirewallPoliciesGetAssociationCall) Name(name string) *FirewallPoliciesGetAssociationCall { - c.urlParams_.Set("name", name) +// RequestId sets the optional parameter "requestId": 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). +func (c *FirewallPoliciesAddRuleCall) RequestId(requestId string) *FirewallPoliciesAddRuleCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *FirewallPoliciesGetAssociationCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetAssociationCall { +func (c *FirewallPoliciesAddRuleCall) Fields(s ...googleapi.Field) *FirewallPoliciesAddRuleCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *FirewallPoliciesGetAssociationCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetAssociationCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *FirewallPoliciesGetAssociationCall) Context(ctx context.Context) *FirewallPoliciesGetAssociationCall { +func (c *FirewallPoliciesAddRuleCall) Context(ctx context.Context) *FirewallPoliciesAddRuleCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *FirewallPoliciesGetAssociationCall) Header() http.Header { +func (c *FirewallPoliciesAddRuleCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FirewallPoliciesGetAssociationCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *FirewallPoliciesAddRuleCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firewallpolicyrule) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}/getAssociation") + urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}/addRule") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -15139,17 +16200,16 @@ func (c *FirewallPoliciesGetAssociationCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.getAssociation", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.addRule", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.firewallPolicies.getAssociation" call. +// Do executes the "compute.firewallPolicies.addRule" call. // Any non-2xx status code is an error. Response headers are in either -// *FirewallPolicyAssociation.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 *FirewallPoliciesGetAssociationCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyAssociation, error) { +// *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 *FirewallPoliciesAddRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15168,7 +16228,7 @@ func (c *FirewallPoliciesGetAssociationCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &FirewallPolicyAssociation{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15179,95 +16239,103 @@ func (c *FirewallPoliciesGetAssociationCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.getAssociation", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.addRule", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type FirewallPoliciesGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type FirewallPoliciesCloneRulesCall struct { + s *Service + firewallPolicy string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. May be empty if -// no such -// policy or resource exists. +// CloneRules: Copies rules to the specified firewall policy. // -// - resource: Name or id of the resource for this request. -func (r *FirewallPoliciesService) GetIamPolicy(resource string) *FirewallPoliciesGetIamPolicyCall { - c := &FirewallPoliciesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource +// - firewallPolicy: Name of the firewall policy to update. +func (r *FirewallPoliciesService) CloneRules(firewallPolicy string) *FirewallPoliciesCloneRulesCall { + c := &FirewallPoliciesCloneRulesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.firewallPolicy = firewallPolicy return c } -// OptionsRequestedPolicyVersion sets the optional parameter -// "optionsRequestedPolicyVersion": Requested IAM Policy version. -func (c *FirewallPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *FirewallPoliciesGetIamPolicyCall { - c.urlParams_.Set("optionsRequestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// RequestId sets the optional parameter "requestId": 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). +func (c *FirewallPoliciesCloneRulesCall) RequestId(requestId string) *FirewallPoliciesCloneRulesCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// SourceFirewallPolicy sets the optional parameter "sourceFirewallPolicy": The +// firewall policy from which to copy rules. +func (c *FirewallPoliciesCloneRulesCall) SourceFirewallPolicy(sourceFirewallPolicy string) *FirewallPoliciesCloneRulesCall { + c.urlParams_.Set("sourceFirewallPolicy", sourceFirewallPolicy) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *FirewallPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetIamPolicyCall { +func (c *FirewallPoliciesCloneRulesCall) Fields(s ...googleapi.Field) *FirewallPoliciesCloneRulesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *FirewallPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetIamPolicyCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *FirewallPoliciesGetIamPolicyCall) Context(ctx context.Context) *FirewallPoliciesGetIamPolicyCall { +func (c *FirewallPoliciesCloneRulesCall) Context(ctx context.Context) *FirewallPoliciesCloneRulesCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *FirewallPoliciesGetIamPolicyCall) Header() http.Header { +func (c *FirewallPoliciesCloneRulesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FirewallPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *FirewallPoliciesCloneRulesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{resource}/getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}/cloneRules") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "firewallPolicy": c.firewallPolicy, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.cloneRules", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.firewallPolicies.getIamPolicy" call. +// Do executes the "compute.firewallPolicies.cloneRules" call. // Any non-2xx status code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) in +// *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 *FirewallPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +func (c *FirewallPoliciesCloneRulesCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15286,7 +16354,7 @@ func (c *FirewallPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Po if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15297,78 +16365,178 @@ func (c *FirewallPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Po if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.getIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.cloneRules", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type FirewallPoliciesGetPacketMirroringRuleCall struct { +type FirewallPoliciesDeleteCall struct { s *Service firewallPolicy string urlParams_ gensupport.URLParams - ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// GetPacketMirroringRule: Gets a packet mirroring rule of the specified -// priority. +// Delete: Deletes the specified policy. // -// - firewallPolicy: Name of the firewall policy to which the queried rule -// belongs. -func (r *FirewallPoliciesService) GetPacketMirroringRule(firewallPolicy string) *FirewallPoliciesGetPacketMirroringRuleCall { - c := &FirewallPoliciesGetPacketMirroringRuleCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - firewallPolicy: Name of the firewall policy to delete. +func (r *FirewallPoliciesService) Delete(firewallPolicy string) *FirewallPoliciesDeleteCall { + c := &FirewallPoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.firewallPolicy = firewallPolicy return c } -// Priority sets the optional parameter "priority": The priority of the rule to -// get from the firewall policy. -func (c *FirewallPoliciesGetPacketMirroringRuleCall) Priority(priority int64) *FirewallPoliciesGetPacketMirroringRuleCall { - c.urlParams_.Set("priority", fmt.Sprint(priority)) +// RequestId sets the optional parameter "requestId": 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). +func (c *FirewallPoliciesDeleteCall) RequestId(requestId string) *FirewallPoliciesDeleteCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *FirewallPoliciesGetPacketMirroringRuleCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetPacketMirroringRuleCall { +func (c *FirewallPoliciesDeleteCall) Fields(s ...googleapi.Field) *FirewallPoliciesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *FirewallPoliciesGetPacketMirroringRuleCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetPacketMirroringRuleCall { - c.ifNoneMatch_ = entityTag +// Context sets the context to be used in this call's Do method. +func (c *FirewallPoliciesDeleteCall) Context(ctx context.Context) *FirewallPoliciesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *FirewallPoliciesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FirewallPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "firewallPolicy": c.firewallPolicy, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.firewallPolicies.delete" call. +// 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 *FirewallPoliciesDeleteCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type FirewallPoliciesForceStartProgressiveRolloutCall struct { + s *Service + firewallPolicy string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ForceStartProgressiveRollout: Starts a brand new progressive rollout of +// hierarchical firewall policy. +// This API will return an error when there is an ongoing progressive rollout. +// +// - firewallPolicy: Name of the target firewall policy. +func (r *FirewallPoliciesService) ForceStartProgressiveRollout(firewallPolicy string) *FirewallPoliciesForceStartProgressiveRolloutCall { + c := &FirewallPoliciesForceStartProgressiveRolloutCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.firewallPolicy = firewallPolicy + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *FirewallPoliciesForceStartProgressiveRolloutCall) Fields(s ...googleapi.Field) *FirewallPoliciesForceStartProgressiveRolloutCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *FirewallPoliciesGetPacketMirroringRuleCall) Context(ctx context.Context) *FirewallPoliciesGetPacketMirroringRuleCall { +func (c *FirewallPoliciesForceStartProgressiveRolloutCall) Context(ctx context.Context) *FirewallPoliciesForceStartProgressiveRolloutCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *FirewallPoliciesGetPacketMirroringRuleCall) Header() http.Header { +func (c *FirewallPoliciesForceStartProgressiveRolloutCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FirewallPoliciesGetPacketMirroringRuleCall) doRequest(alt string) (*http.Response, error) { +func (c *FirewallPoliciesForceStartProgressiveRolloutCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}/getPacketMirroringRule") + urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}/forceStartProgressiveRollout") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, nil) if err != nil { return nil, err } @@ -15376,17 +16544,16 @@ func (c *FirewallPoliciesGetPacketMirroringRuleCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.getPacketMirroringRule", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.forceStartProgressiveRollout", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.firewallPolicies.getPacketMirroringRule" call. +// Do executes the "compute.firewallPolicies.forceStartProgressiveRollout" call. // Any non-2xx status code is an error. Response headers are in either -// *FirewallPolicyRule.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 *FirewallPoliciesGetPacketMirroringRuleCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyRule, error) { +// *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 *FirewallPoliciesForceStartProgressiveRolloutCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15405,7 +16572,7 @@ func (c *FirewallPoliciesGetPacketMirroringRuleCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &FirewallPolicyRule{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15416,11 +16583,11 @@ func (c *FirewallPoliciesGetPacketMirroringRuleCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.getPacketMirroringRule", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.forceStartProgressiveRollout", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type FirewallPoliciesGetRuleCall struct { +type FirewallPoliciesGetCall struct { s *Service firewallPolicy string urlParams_ gensupport.URLParams @@ -15429,27 +16596,19 @@ type FirewallPoliciesGetRuleCall struct { header_ http.Header } -// GetRule: Gets a rule of the specified priority. +// Get: Returns the specified firewall policy. // -// - firewallPolicy: Name of the firewall policy to which the queried rule -// belongs. -func (r *FirewallPoliciesService) GetRule(firewallPolicy string) *FirewallPoliciesGetRuleCall { - c := &FirewallPoliciesGetRuleCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - firewallPolicy: Name of the firewall policy to get. +func (r *FirewallPoliciesService) Get(firewallPolicy string) *FirewallPoliciesGetCall { + c := &FirewallPoliciesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.firewallPolicy = firewallPolicy return c } -// Priority sets the optional parameter "priority": The priority of the rule to -// get from the firewall policy. -func (c *FirewallPoliciesGetRuleCall) Priority(priority int64) *FirewallPoliciesGetRuleCall { - c.urlParams_.Set("priority", fmt.Sprint(priority)) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *FirewallPoliciesGetRuleCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetRuleCall { +func (c *FirewallPoliciesGetCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -15457,34 +16616,34 @@ func (c *FirewallPoliciesGetRuleCall) Fields(s ...googleapi.Field) *FirewallPoli // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *FirewallPoliciesGetRuleCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetRuleCall { +func (c *FirewallPoliciesGetCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *FirewallPoliciesGetRuleCall) Context(ctx context.Context) *FirewallPoliciesGetRuleCall { +func (c *FirewallPoliciesGetCall) Context(ctx context.Context) *FirewallPoliciesGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *FirewallPoliciesGetRuleCall) Header() http.Header { +func (c *FirewallPoliciesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FirewallPoliciesGetRuleCall) doRequest(alt string) (*http.Response, error) { +func (c *FirewallPoliciesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}/getRule") + urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -15494,17 +16653,16 @@ func (c *FirewallPoliciesGetRuleCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "firewallPolicy": c.firewallPolicy, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.getRule", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.firewallPolicies.getRule" call. +// Do executes the "compute.firewallPolicies.get" call. // Any non-2xx status code is an error. Response headers are in either -// *FirewallPolicyRule.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 *FirewallPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyRule, error) { +// *FirewallPolicy.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 *FirewallPoliciesGetCall) Do(opts ...googleapi.CallOption) (*FirewallPolicy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15523,7 +16681,7 @@ func (c *FirewallPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*Firewal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &FirewallPolicyRule{ + ret := &FirewallPolicy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15534,106 +16692,95 @@ func (c *FirewallPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*Firewal if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.getRule", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type FirewallPoliciesInsertCall struct { +type FirewallPoliciesGetAssociationCall struct { s *Service - firewallpolicy *FirewallPolicy + firewallPolicy string urlParams_ gensupport.URLParams + ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Insert: Creates a new policy in the specified project using the data -// included in -// the request. -func (r *FirewallPoliciesService) Insert(firewallpolicy *FirewallPolicy) *FirewallPoliciesInsertCall { - c := &FirewallPoliciesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.firewallpolicy = firewallpolicy - return c -} - -// ParentId sets the optional parameter "parentId": Parent ID for this request. -// The ID can be either be "folders/[FOLDER_ID]" -// if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the -// parent is an organization. -func (c *FirewallPoliciesInsertCall) ParentId(parentId string) *FirewallPoliciesInsertCall { - c.urlParams_.Set("parentId", parentId) +// GetAssociation: Gets an association with the specified name. +// +// - firewallPolicy: Name of the firewall policy to which the queried rule +// belongs. +func (r *FirewallPoliciesService) GetAssociation(firewallPolicy string) *FirewallPoliciesGetAssociationCall { + c := &FirewallPoliciesGetAssociationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.firewallPolicy = firewallPolicy return c } -// RequestId sets the optional parameter "requestId": 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). -func (c *FirewallPoliciesInsertCall) RequestId(requestId string) *FirewallPoliciesInsertCall { - c.urlParams_.Set("requestId", requestId) +// Name sets the optional parameter "name": The name of the association to get +// from the firewall policy. +func (c *FirewallPoliciesGetAssociationCall) Name(name string) *FirewallPoliciesGetAssociationCall { + c.urlParams_.Set("name", name) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *FirewallPoliciesInsertCall) Fields(s ...googleapi.Field) *FirewallPoliciesInsertCall { +func (c *FirewallPoliciesGetAssociationCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetAssociationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *FirewallPoliciesGetAssociationCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetAssociationCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *FirewallPoliciesInsertCall) Context(ctx context.Context) *FirewallPoliciesInsertCall { +func (c *FirewallPoliciesGetAssociationCall) Context(ctx context.Context) *FirewallPoliciesGetAssociationCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *FirewallPoliciesInsertCall) Header() http.Header { +func (c *FirewallPoliciesGetAssociationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FirewallPoliciesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firewallpolicy) - if err != nil { - return nil, err +func (c *FirewallPoliciesGetAssociationCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies") + urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}/getAssociation") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.insert", "request", internallog.HTTPRequest(req, body.Bytes())) + googleapi.Expand(req.URL, map[string]string{ + "firewallPolicy": c.firewallPolicy, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.getAssociation", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.firewallPolicies.insert" call. +// Do executes the "compute.firewallPolicies.getAssociation" call. // 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 *FirewallPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *FirewallPolicyAssociation.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 *FirewallPoliciesGetAssociationCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyAssociation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15652,7 +16799,7 @@ func (c *FirewallPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operatio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &FirewallPolicyAssociation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15663,11 +16810,495 @@ func (c *FirewallPoliciesInsertCall) Do(opts ...googleapi.CallOption) (*Operatio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.insert", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.getAssociation", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type FirewallPoliciesListCall struct { +type FirewallPoliciesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. May be empty if +// no such +// policy or resource exists. +// +// - resource: Name or id of the resource for this request. +func (r *FirewallPoliciesService) GetIamPolicy(resource string) *FirewallPoliciesGetIamPolicyCall { + c := &FirewallPoliciesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "optionsRequestedPolicyVersion": Requested IAM Policy version. +func (c *FirewallPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *FirewallPoliciesGetIamPolicyCall { + c.urlParams_.Set("optionsRequestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *FirewallPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *FirewallPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *FirewallPoliciesGetIamPolicyCall) Context(ctx context.Context) *FirewallPoliciesGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *FirewallPoliciesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FirewallPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{resource}/getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.firewallPolicies.getIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.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 *FirewallPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.getIamPolicy", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type FirewallPoliciesGetPacketMirroringRuleCall struct { + s *Service + firewallPolicy string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetPacketMirroringRule: Gets a packet mirroring rule of the specified +// priority. +// +// - firewallPolicy: Name of the firewall policy to which the queried rule +// belongs. +func (r *FirewallPoliciesService) GetPacketMirroringRule(firewallPolicy string) *FirewallPoliciesGetPacketMirroringRuleCall { + c := &FirewallPoliciesGetPacketMirroringRuleCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.firewallPolicy = firewallPolicy + return c +} + +// Priority sets the optional parameter "priority": The priority of the rule to +// get from the firewall policy. +func (c *FirewallPoliciesGetPacketMirroringRuleCall) Priority(priority int64) *FirewallPoliciesGetPacketMirroringRuleCall { + c.urlParams_.Set("priority", fmt.Sprint(priority)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *FirewallPoliciesGetPacketMirroringRuleCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetPacketMirroringRuleCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *FirewallPoliciesGetPacketMirroringRuleCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetPacketMirroringRuleCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *FirewallPoliciesGetPacketMirroringRuleCall) Context(ctx context.Context) *FirewallPoliciesGetPacketMirroringRuleCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *FirewallPoliciesGetPacketMirroringRuleCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FirewallPoliciesGetPacketMirroringRuleCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}/getPacketMirroringRule") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "firewallPolicy": c.firewallPolicy, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.getPacketMirroringRule", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.firewallPolicies.getPacketMirroringRule" call. +// Any non-2xx status code is an error. Response headers are in either +// *FirewallPolicyRule.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 *FirewallPoliciesGetPacketMirroringRuleCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyRule, 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 := &FirewallPolicyRule{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.getPacketMirroringRule", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type FirewallPoliciesGetRuleCall struct { + s *Service + firewallPolicy string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetRule: Gets a rule of the specified priority. +// +// - firewallPolicy: Name of the firewall policy to which the queried rule +// belongs. +func (r *FirewallPoliciesService) GetRule(firewallPolicy string) *FirewallPoliciesGetRuleCall { + c := &FirewallPoliciesGetRuleCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.firewallPolicy = firewallPolicy + return c +} + +// Priority sets the optional parameter "priority": The priority of the rule to +// get from the firewall policy. +func (c *FirewallPoliciesGetRuleCall) Priority(priority int64) *FirewallPoliciesGetRuleCall { + c.urlParams_.Set("priority", fmt.Sprint(priority)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *FirewallPoliciesGetRuleCall) Fields(s ...googleapi.Field) *FirewallPoliciesGetRuleCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *FirewallPoliciesGetRuleCall) IfNoneMatch(entityTag string) *FirewallPoliciesGetRuleCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *FirewallPoliciesGetRuleCall) Context(ctx context.Context) *FirewallPoliciesGetRuleCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *FirewallPoliciesGetRuleCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FirewallPoliciesGetRuleCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies/{firewallPolicy}/getRule") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "firewallPolicy": c.firewallPolicy, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.getRule", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.firewallPolicies.getRule" call. +// Any non-2xx status code is an error. Response headers are in either +// *FirewallPolicyRule.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 *FirewallPoliciesGetRuleCall) Do(opts ...googleapi.CallOption) (*FirewallPolicyRule, 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 := &FirewallPolicyRule{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.getRule", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type FirewallPoliciesInsertCall struct { + s *Service + firewallpolicy *FirewallPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Insert: Creates a new policy in the specified project using the data +// included in +// the request. +func (r *FirewallPoliciesService) Insert(firewallpolicy *FirewallPolicy) *FirewallPoliciesInsertCall { + c := &FirewallPoliciesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.firewallpolicy = firewallpolicy + return c +} + +// ParentId sets the optional parameter "parentId": Parent ID for this request. +// The ID can be either be "folders/[FOLDER_ID]" +// if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the +// parent is an organization. +func (c *FirewallPoliciesInsertCall) ParentId(parentId string) *FirewallPoliciesInsertCall { + c.urlParams_.Set("parentId", parentId) + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *FirewallPoliciesInsertCall) RequestId(requestId string) *FirewallPoliciesInsertCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *FirewallPoliciesInsertCall) Fields(s ...googleapi.Field) *FirewallPoliciesInsertCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *FirewallPoliciesInsertCall) Context(ctx context.Context) *FirewallPoliciesInsertCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *FirewallPoliciesInsertCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FirewallPoliciesInsertCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firewallpolicy) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "locations/global/firewallPolicies") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.firewallPolicies.insert", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.firewallPolicies.insert" call. +// 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 *FirewallPoliciesInsertCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.firewallPolicies.insert", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type FirewallPoliciesListCall struct { s *Service urlParams_ gensupport.URLParams ifNoneMatch_ string @@ -87894,1739 +89525,25 @@ func (c *OrganizationZoneVmExtensionPoliciesListCall) PageToken(pageToken string return c } -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": -// Opt-in for partial success behavior which provides partial results in -// case -// of failure. The default value is false. -// -// For example, when partial success behavior is enabled, aggregatedList for -// a -// single zone scope either returns all resources in the zone or no -// resources, -// with an error code. -func (c *OrganizationZoneVmExtensionPoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OrganizationZoneVmExtensionPoliciesListCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *OrganizationZoneVmExtensionPoliciesListCall) Fields(s ...googleapi.Field) *OrganizationZoneVmExtensionPoliciesListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *OrganizationZoneVmExtensionPoliciesListCall) IfNoneMatch(entityTag string) *OrganizationZoneVmExtensionPoliciesListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *OrganizationZoneVmExtensionPoliciesListCall) Context(ctx context.Context) *OrganizationZoneVmExtensionPoliciesListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *OrganizationZoneVmExtensionPoliciesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrganizationZoneVmExtensionPoliciesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{+organization}/zones/{zone}/vmExtensionPolicies") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "organization": c.organization, - "zone": c.zone, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.organizationZoneVmExtensionPolicies.list", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.organizationZoneVmExtensionPolicies.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *VmExtensionPolicyList.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 *OrganizationZoneVmExtensionPoliciesListCall) Do(opts ...googleapi.CallOption) (*VmExtensionPolicyList, 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 := &VmExtensionPolicyList{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.organizationZoneVmExtensionPolicies.list", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *OrganizationZoneVmExtensionPoliciesListCall) Pages(ctx context.Context, f func(*VmExtensionPolicyList) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type OrganizationZoneVmExtensionPoliciesListVmExtensionsCall struct { - s *Service - organization string - zone string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// ListVmExtensions: Lists all VM extensions within a specific zone for an -// organization. -// This is a read-only API. -// -// - organization: Organization ID for this request. -// - zone: Name of the zone for this request. -func (r *OrganizationZoneVmExtensionPoliciesService) ListVmExtensions(organization string, zone string) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { - c := &OrganizationZoneVmExtensionPoliciesListVmExtensionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.organization = organization - c.zone = zone - return c -} - -// Filter sets the optional parameter "filter": A filter expression that -// filters resources listed in the response. Most -// Compute resources support two types of filter expressions: -// expressions that support regular expressions and expressions that follow -// API improvement proposal AIP-160. -// These two types of filter expressions cannot be mixed in one request. -// -// If you want to use AIP-160, your 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 `:*` 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 onresource 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) -// ``` -// -// If you want to use a regular expression, use the `eq` (equal) or `ne` -// (not equal) operator against a single un-parenthesized expression with -// or -// without quotes or against multiple parenthesized expressions. -// Examples: -// -// `fieldname eq unquoted literal` -// `fieldname eq 'single quoted literal'` -// `fieldname eq "double quoted literal" -// `(fieldname1 eq literal) (fieldname2 ne "literal")` -// -// The literal value is interpreted as a regular expression using GoogleRE2 -// library syntax. -// The literal value must match the entire field. -// -// For example, to filter for instances that do not end with name -// "instance", -// you would use `name ne .*instance`. -// -// You cannot combine constraints on multiple fields using regular -// expressions. -func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) Filter(filter string) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { - c.urlParams_.Set("filter", filter) - return c -} - -// MaxResults sets the optional parameter "maxResults": 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`) -func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) MaxResults(maxResults int64) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// OrderBy sets the optional parameter "orderBy": 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. -func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) OrderBy(orderBy string) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageToken sets the optional parameter "pageToken": Specifies a page token to -// use. Set `pageToken` to the -// `nextPageToken` returned by a previous list request to get -// the next page of results. -func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) PageToken(pageToken string) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": -// Opt-in for partial success behavior which provides partial results in -// case -// of failure. The default value is false. -// -// For example, when partial success behavior is enabled, aggregatedList for -// a -// single zone scope either returns all resources in the zone or no -// resources, -// with an error code. -func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) ReturnPartialSuccess(returnPartialSuccess bool) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) Fields(s ...googleapi.Field) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) IfNoneMatch(entityTag string) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) Context(ctx context.Context) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{+organization}/zones/{zone}/vmExtensions") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "organization": c.organization, - "zone": c.zone, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.organizationZoneVmExtensionPolicies.listVmExtensions", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.organizationZoneVmExtensionPolicies.listVmExtensions" call. -// Any non-2xx status code is an error. Response headers are in either -// *ListVmExtensionsResponse.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 *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) Do(opts ...googleapi.CallOption) (*ListVmExtensionsResponse, 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 := &ListVmExtensionsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.organizationZoneVmExtensionPolicies.listVmExtensions", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) Pages(ctx context.Context, f func(*ListVmExtensionsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type OrganizationZoneVmExtensionPoliciesUpdateCall struct { - s *Service - organization string - zone string - vmExtensionPolicy string - vmextensionpolicy *VmExtensionPolicy - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Update: Modifies an existing zone VM extension policy within an -// organization. -// -// - organization: Organization ID for this request. -// - vmExtensionPolicy: Name of the zone VM extension policy to update. -// - zone: Name of the zone for this request. -func (r *OrganizationZoneVmExtensionPoliciesService) Update(organization string, zone string, vmExtensionPolicy string, vmextensionpolicy *VmExtensionPolicy) *OrganizationZoneVmExtensionPoliciesUpdateCall { - c := &OrganizationZoneVmExtensionPoliciesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.organization = organization - c.zone = zone - c.vmExtensionPolicy = vmExtensionPolicy - c.vmextensionpolicy = vmextensionpolicy - return c -} - -// RequestId sets the optional parameter "requestId": 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). -func (c *OrganizationZoneVmExtensionPoliciesUpdateCall) RequestId(requestId string) *OrganizationZoneVmExtensionPoliciesUpdateCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *OrganizationZoneVmExtensionPoliciesUpdateCall) Fields(s ...googleapi.Field) *OrganizationZoneVmExtensionPoliciesUpdateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *OrganizationZoneVmExtensionPoliciesUpdateCall) Context(ctx context.Context) *OrganizationZoneVmExtensionPoliciesUpdateCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *OrganizationZoneVmExtensionPoliciesUpdateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *OrganizationZoneVmExtensionPoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.vmextensionpolicy) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "{+organization}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "organization": c.organization, - "zone": c.zone, - "vmExtensionPolicy": c.vmExtensionPolicy, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.organizationZoneVmExtensionPolicies.update", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.organizationZoneVmExtensionPolicies.update" call. -// 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 *OrganizationZoneVmExtensionPoliciesUpdateCall) 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 - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.organizationZoneVmExtensionPolicies.update", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type PacketMirroringsAggregatedListCall struct { - s *Service - project string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// AggregatedList: Retrieves an aggregated list of packetMirrorings. -// -// To prevent failure, Google recommends that you set -// the -// `returnPartialSuccess` parameter to `true`. -// -// - project: Project ID for this request. -func (r *PacketMirroringsService) AggregatedList(project string) *PacketMirroringsAggregatedListCall { - c := &PacketMirroringsAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - return c -} - -// Filter sets the optional parameter "filter": A filter expression that -// filters resources listed in the response. Most -// Compute resources support two types of filter expressions: -// expressions that support regular expressions and expressions that follow -// API improvement proposal AIP-160. -// These two types of filter expressions cannot be mixed in one request. -// -// If you want to use AIP-160, your 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 `:*` 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 onresource 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) -// ``` -// -// If you want to use a regular expression, use the `eq` (equal) or `ne` -// (not equal) operator against a single un-parenthesized expression with -// or -// without quotes or against multiple parenthesized expressions. -// Examples: -// -// `fieldname eq unquoted literal` -// `fieldname eq 'single quoted literal'` -// `fieldname eq "double quoted literal" -// `(fieldname1 eq literal) (fieldname2 ne "literal")` -// -// The literal value is interpreted as a regular expression using GoogleRE2 -// library syntax. -// The literal value must match the entire field. -// -// For example, to filter for instances that do not end with name -// "instance", -// you would use `name ne .*instance`. -// -// You cannot combine constraints on multiple fields using regular -// expressions. -func (c *PacketMirroringsAggregatedListCall) Filter(filter string) *PacketMirroringsAggregatedListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// IncludeAllScopes sets the optional parameter "includeAllScopes": 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. -func (c *PacketMirroringsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *PacketMirroringsAggregatedListCall { - c.urlParams_.Set("includeAllScopes", fmt.Sprint(includeAllScopes)) - return c -} - -// MaxResults sets the optional parameter "maxResults": 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`) -func (c *PacketMirroringsAggregatedListCall) MaxResults(maxResults int64) *PacketMirroringsAggregatedListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// OrderBy sets the optional parameter "orderBy": 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. -func (c *PacketMirroringsAggregatedListCall) OrderBy(orderBy string) *PacketMirroringsAggregatedListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageToken sets the optional parameter "pageToken": Specifies a page token to -// use. Set `pageToken` to the -// `nextPageToken` returned by a previous list request to get -// the next page of results. -func (c *PacketMirroringsAggregatedListCall) PageToken(pageToken string) *PacketMirroringsAggregatedListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": -// Opt-in for partial success behavior which provides partial results in -// case -// of failure. The default value is false. -// -// For example, when partial success behavior is enabled, aggregatedList for -// a -// single zone scope either returns all resources in the zone or no -// resources, -// with an error code. -func (c *PacketMirroringsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PacketMirroringsAggregatedListCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) - return c -} - -// ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The -// Shared VPC service project id or service project number for which -// aggregated list request is invoked for subnetworks list-usable api. -func (c *PacketMirroringsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *PacketMirroringsAggregatedListCall { - c.urlParams_.Set("serviceProjectNumber", fmt.Sprint(serviceProjectNumber)) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *PacketMirroringsAggregatedListCall) Fields(s ...googleapi.Field) *PacketMirroringsAggregatedListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *PacketMirroringsAggregatedListCall) IfNoneMatch(entityTag string) *PacketMirroringsAggregatedListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *PacketMirroringsAggregatedListCall) Context(ctx context.Context) *PacketMirroringsAggregatedListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *PacketMirroringsAggregatedListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PacketMirroringsAggregatedListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/packetMirrorings") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.packetMirrorings.aggregatedList", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.packetMirrorings.aggregatedList" call. -// Any non-2xx status code is an error. Response headers are in either -// *PacketMirroringAggregatedList.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 *PacketMirroringsAggregatedListCall) Do(opts ...googleapi.CallOption) (*PacketMirroringAggregatedList, 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 := &PacketMirroringAggregatedList{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.packetMirrorings.aggregatedList", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *PacketMirroringsAggregatedListCall) Pages(ctx context.Context, f func(*PacketMirroringAggregatedList) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type PacketMirroringsDeleteCall struct { - s *Service - project string - region string - packetMirroring string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes the specified PacketMirroring resource. -// -// - packetMirroring: Name of the PacketMirroring resource to delete. -// - project: Project ID for this request. -// - region: Name of the region for this request. -func (r *PacketMirroringsService) Delete(project string, region string, packetMirroring string) *PacketMirroringsDeleteCall { - c := &PacketMirroringsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region - c.packetMirroring = packetMirroring - return c -} - -// RequestId sets the optional parameter "requestId": 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). -func (c *PacketMirroringsDeleteCall) RequestId(requestId string) *PacketMirroringsDeleteCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *PacketMirroringsDeleteCall) Fields(s ...googleapi.Field) *PacketMirroringsDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *PacketMirroringsDeleteCall) Context(ctx context.Context) *PacketMirroringsDeleteCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *PacketMirroringsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PacketMirroringsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "packetMirroring": c.packetMirroring, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.packetMirrorings.delete", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.packetMirrorings.delete" call. -// 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 *PacketMirroringsDeleteCall) 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 - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.packetMirrorings.delete", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type PacketMirroringsGetCall struct { - s *Service - project string - region string - packetMirroring string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Returns the specified PacketMirroring resource. -// -// - packetMirroring: Name of the PacketMirroring resource to return. -// - project: Project ID for this request. -// - region: Name of the region for this request. -func (r *PacketMirroringsService) Get(project string, region string, packetMirroring string) *PacketMirroringsGetCall { - c := &PacketMirroringsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region - c.packetMirroring = packetMirroring - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *PacketMirroringsGetCall) Fields(s ...googleapi.Field) *PacketMirroringsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *PacketMirroringsGetCall) IfNoneMatch(entityTag string) *PacketMirroringsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *PacketMirroringsGetCall) Context(ctx context.Context) *PacketMirroringsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *PacketMirroringsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PacketMirroringsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "packetMirroring": c.packetMirroring, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.packetMirrorings.get", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.packetMirrorings.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *PacketMirroring.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 *PacketMirroringsGetCall) Do(opts ...googleapi.CallOption) (*PacketMirroring, 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 := &PacketMirroring{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.packetMirrorings.get", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type PacketMirroringsInsertCall struct { - s *Service - project string - region string - packetmirroring *PacketMirroring - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Creates a PacketMirroring resource in the specified project and -// region -// using the data included in the request. -// -// - project: Project ID for this request. -// - region: Name of the region for this request. -func (r *PacketMirroringsService) Insert(project string, region string, packetmirroring *PacketMirroring) *PacketMirroringsInsertCall { - c := &PacketMirroringsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region - c.packetmirroring = packetmirroring - return c -} - -// RequestId sets the optional parameter "requestId": 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). -func (c *PacketMirroringsInsertCall) RequestId(requestId string) *PacketMirroringsInsertCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *PacketMirroringsInsertCall) Fields(s ...googleapi.Field) *PacketMirroringsInsertCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *PacketMirroringsInsertCall) Context(ctx context.Context) *PacketMirroringsInsertCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *PacketMirroringsInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PacketMirroringsInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.packetmirroring) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/packetMirrorings") - 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{ - "project": c.project, - "region": c.region, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.packetMirrorings.insert", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.packetMirrorings.insert" call. -// 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 *PacketMirroringsInsertCall) 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 - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.packetMirrorings.insert", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type PacketMirroringsListCall struct { - s *Service - project string - region string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of PacketMirroring resources available to the -// specified -// project and region. -// -// - project: Project ID for this request. -// - region: Name of the region for this request. -func (r *PacketMirroringsService) List(project string, region string) *PacketMirroringsListCall { - c := &PacketMirroringsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region - return c -} - -// Filter sets the optional parameter "filter": A filter expression that -// filters resources listed in the response. Most -// Compute resources support two types of filter expressions: -// expressions that support regular expressions and expressions that follow -// API improvement proposal AIP-160. -// These two types of filter expressions cannot be mixed in one request. -// -// If you want to use AIP-160, your 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 `:*` 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 onresource 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) -// ``` -// -// If you want to use a regular expression, use the `eq` (equal) or `ne` -// (not equal) operator against a single un-parenthesized expression with -// or -// without quotes or against multiple parenthesized expressions. -// Examples: -// -// `fieldname eq unquoted literal` -// `fieldname eq 'single quoted literal'` -// `fieldname eq "double quoted literal" -// `(fieldname1 eq literal) (fieldname2 ne "literal")` -// -// The literal value is interpreted as a regular expression using GoogleRE2 -// library syntax. -// The literal value must match the entire field. -// -// For example, to filter for instances that do not end with name -// "instance", -// you would use `name ne .*instance`. -// -// You cannot combine constraints on multiple fields using regular -// expressions. -func (c *PacketMirroringsListCall) Filter(filter string) *PacketMirroringsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// MaxResults sets the optional parameter "maxResults": 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`) -func (c *PacketMirroringsListCall) MaxResults(maxResults int64) *PacketMirroringsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// OrderBy sets the optional parameter "orderBy": 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. -func (c *PacketMirroringsListCall) OrderBy(orderBy string) *PacketMirroringsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageToken sets the optional parameter "pageToken": Specifies a page token to -// use. Set `pageToken` to the -// `nextPageToken` returned by a previous list request to get -// the next page of results. -func (c *PacketMirroringsListCall) PageToken(pageToken string) *PacketMirroringsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": -// Opt-in for partial success behavior which provides partial results in -// case -// of failure. The default value is false. -// -// For example, when partial success behavior is enabled, aggregatedList for -// a -// single zone scope either returns all resources in the zone or no -// resources, -// with an error code. -func (c *PacketMirroringsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PacketMirroringsListCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *PacketMirroringsListCall) Fields(s ...googleapi.Field) *PacketMirroringsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *PacketMirroringsListCall) IfNoneMatch(entityTag string) *PacketMirroringsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *PacketMirroringsListCall) Context(ctx context.Context) *PacketMirroringsListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *PacketMirroringsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PacketMirroringsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/packetMirrorings") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.packetMirrorings.list", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.packetMirrorings.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *PacketMirroringList.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 *PacketMirroringsListCall) Do(opts ...googleapi.CallOption) (*PacketMirroringList, 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 := &PacketMirroringList{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.packetMirrorings.list", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *PacketMirroringsListCall) Pages(ctx context.Context, f func(*PacketMirroringList) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type PacketMirroringsPatchCall struct { - s *Service - project string - region string - packetMirroring string - packetmirroring *PacketMirroring - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Patches the specified PacketMirroring resource with the data included -// in -// the request. This method supportsPATCH -// semantics and usesJSON merge -// patch format and processing rules. -// -// - packetMirroring: Name of the PacketMirroring resource to patch. -// - project: Project ID for this request. -// - region: Name of the region for this request. -func (r *PacketMirroringsService) Patch(project string, region string, packetMirroring string, packetmirroring *PacketMirroring) *PacketMirroringsPatchCall { - c := &PacketMirroringsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region - c.packetMirroring = packetMirroring - c.packetmirroring = packetmirroring - return c -} - -// RequestId sets the optional parameter "requestId": 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). -func (c *PacketMirroringsPatchCall) RequestId(requestId string) *PacketMirroringsPatchCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *PacketMirroringsPatchCall) Fields(s ...googleapi.Field) *PacketMirroringsPatchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *PacketMirroringsPatchCall) Context(ctx context.Context) *PacketMirroringsPatchCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *PacketMirroringsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PacketMirroringsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.packetmirroring) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "packetMirroring": c.packetMirroring, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.packetMirrorings.patch", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.packetMirrorings.patch" call. -// 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 *PacketMirroringsPatchCall) 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 - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.packetMirrorings.patch", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type PacketMirroringsTestIamPermissionsCall struct { - s *Service - project string - region string - resource string - testpermissionsrequest *TestPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// TestIamPermissions: Returns permissions that a caller has on the specified -// resource. -// -// - project: Project ID for this request. -// - region: The name of the region for this request. -// - resource: Name or id of the resource for this request. -func (r *PacketMirroringsService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *PacketMirroringsTestIamPermissionsCall { - c := &PacketMirroringsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region - c.resource = resource - c.testpermissionsrequest = testpermissionsrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *PacketMirroringsTestIamPermissionsCall) Fields(s ...googleapi.Field) *PacketMirroringsTestIamPermissionsCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *PacketMirroringsTestIamPermissionsCall) Context(ctx context.Context) *PacketMirroringsTestIamPermissionsCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *PacketMirroringsTestIamPermissionsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *PacketMirroringsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testpermissionsrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions") - 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{ - "project": c.project, - "region": c.region, - "resource": c.resource, - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.packetMirrorings.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.packetMirrorings.testIamPermissions" call. -// Any non-2xx status code is an error. Response headers are in either -// *TestPermissionsResponse.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 *PacketMirroringsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, 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 := &TestPermissionsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.packetMirrorings.testIamPermissions", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type PreviewFeaturesGetCall struct { - s *Service - project string - previewFeature string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Returns the details of the given PreviewFeature. -// -// - previewFeature: Name of the PreviewFeature for this request. -// - project: Project ID for this request. -func (r *PreviewFeaturesService) Get(project string, previewFeature string) *PreviewFeaturesGetCall { - c := &PreviewFeaturesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.previewFeature = previewFeature +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in +// case +// of failure. The default value is false. +// +// For example, when partial success behavior is enabled, aggregatedList for +// a +// single zone scope either returns all resources in the zone or no +// resources, +// with an error code. +func (c *OrganizationZoneVmExtensionPoliciesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OrganizationZoneVmExtensionPoliciesListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PreviewFeaturesGetCall) Fields(s ...googleapi.Field) *PreviewFeaturesGetCall { +func (c *OrganizationZoneVmExtensionPoliciesListCall) Fields(s ...googleapi.Field) *OrganizationZoneVmExtensionPoliciesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -89634,34 +89551,34 @@ func (c *PreviewFeaturesGetCall) Fields(s ...googleapi.Field) *PreviewFeaturesGe // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *PreviewFeaturesGetCall) IfNoneMatch(entityTag string) *PreviewFeaturesGetCall { +func (c *OrganizationZoneVmExtensionPoliciesListCall) IfNoneMatch(entityTag string) *OrganizationZoneVmExtensionPoliciesListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *PreviewFeaturesGetCall) Context(ctx context.Context) *PreviewFeaturesGetCall { +func (c *OrganizationZoneVmExtensionPoliciesListCall) Context(ctx context.Context) *OrganizationZoneVmExtensionPoliciesListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PreviewFeaturesGetCall) Header() http.Header { +func (c *OrganizationZoneVmExtensionPoliciesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PreviewFeaturesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationZoneVmExtensionPoliciesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/previewFeatures/{previewFeature}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{+organization}/zones/{zone}/vmExtensionPolicies") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -89669,19 +89586,20 @@ func (c *PreviewFeaturesGetCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "previewFeature": c.previewFeature, + "organization": c.organization, + "zone": c.zone, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.previewFeatures.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.organizationZoneVmExtensionPolicies.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.previewFeatures.get" call. +// Do executes the "compute.organizationZoneVmExtensionPolicies.list" call. // Any non-2xx status code is an error. Response headers are in either -// *PreviewFeature.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 *PreviewFeaturesGetCall) Do(opts ...googleapi.CallOption) (*PreviewFeature, error) { +// *VmExtensionPolicyList.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 *OrganizationZoneVmExtensionPoliciesListCall) Do(opts ...googleapi.CallOption) (*VmExtensionPolicyList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -89700,7 +89618,7 @@ func (c *PreviewFeaturesGetCall) Do(opts ...googleapi.CallOption) (*PreviewFeatu if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &PreviewFeature{ + ret := &VmExtensionPolicyList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -89711,25 +89629,51 @@ func (c *PreviewFeaturesGetCall) Do(opts ...googleapi.CallOption) (*PreviewFeatu if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.previewFeatures.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.organizationZoneVmExtensionPolicies.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PreviewFeaturesListCall struct { +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationZoneVmExtensionPoliciesListCall) Pages(ctx context.Context, f func(*VmExtensionPolicyList) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type OrganizationZoneVmExtensionPoliciesListVmExtensionsCall struct { s *Service - project string + organization string + zone string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Returns the details of the given PreviewFeature. +// ListVmExtensions: Lists all VM extensions within a specific zone for an +// organization. +// This is a read-only API. // -// - project: Project ID for this request. -func (r *PreviewFeaturesService) List(project string) *PreviewFeaturesListCall { - c := &PreviewFeaturesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project +// - organization: Organization ID for this request. +// - zone: Name of the zone for this request. +func (r *OrganizationZoneVmExtensionPoliciesService) ListVmExtensions(organization string, zone string) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { + c := &OrganizationZoneVmExtensionPoliciesListVmExtensionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.organization = organization + c.zone = zone return c } @@ -89800,7 +89744,7 @@ func (r *PreviewFeaturesService) List(project string) *PreviewFeaturesListCall { // // You cannot combine constraints on multiple fields using regular // expressions. -func (c *PreviewFeaturesListCall) Filter(filter string) *PreviewFeaturesListCall { +func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) Filter(filter string) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { c.urlParams_.Set("filter", filter) return c } @@ -89812,7 +89756,7 @@ func (c *PreviewFeaturesListCall) Filter(filter string) *PreviewFeaturesListCall // the next page of results in subsequent list requests. Acceptable values // are // `0` to `500`, inclusive. (Default: `500`) -func (c *PreviewFeaturesListCall) MaxResults(maxResults int64) *PreviewFeaturesListCall { +func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) MaxResults(maxResults int64) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } @@ -89832,7 +89776,7 @@ func (c *PreviewFeaturesListCall) MaxResults(maxResults int64) *PreviewFeaturesL // // Currently, only sorting by `name` or // `creationTimestamp desc` is supported. -func (c *PreviewFeaturesListCall) OrderBy(orderBy string) *PreviewFeaturesListCall { +func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) OrderBy(orderBy string) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -89841,7 +89785,7 @@ func (c *PreviewFeaturesListCall) OrderBy(orderBy string) *PreviewFeaturesListCa // use. Set `pageToken` to the // `nextPageToken` returned by a previous list request to get // the next page of results. -func (c *PreviewFeaturesListCall) PageToken(pageToken string) *PreviewFeaturesListCall { +func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) PageToken(pageToken string) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -89856,7 +89800,7 @@ func (c *PreviewFeaturesListCall) PageToken(pageToken string) *PreviewFeaturesLi // single zone scope either returns all resources in the zone or no // resources, // with an error code. -func (c *PreviewFeaturesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PreviewFeaturesListCall { +func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) ReturnPartialSuccess(returnPartialSuccess bool) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -89864,7 +89808,7 @@ func (c *PreviewFeaturesListCall) ReturnPartialSuccess(returnPartialSuccess bool // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PreviewFeaturesListCall) Fields(s ...googleapi.Field) *PreviewFeaturesListCall { +func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) Fields(s ...googleapi.Field) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -89872,34 +89816,34 @@ func (c *PreviewFeaturesListCall) Fields(s ...googleapi.Field) *PreviewFeaturesL // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *PreviewFeaturesListCall) IfNoneMatch(entityTag string) *PreviewFeaturesListCall { +func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) IfNoneMatch(entityTag string) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *PreviewFeaturesListCall) Context(ctx context.Context) *PreviewFeaturesListCall { +func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) Context(ctx context.Context) *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PreviewFeaturesListCall) Header() http.Header { +func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PreviewFeaturesListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/previewFeatures") + urls := googleapi.ResolveRelative(c.s.BasePath, "{+organization}/zones/{zone}/vmExtensions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -89907,19 +89851,20 @@ func (c *PreviewFeaturesListCall) doRequest(alt string) (*http.Response, error) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, + "organization": c.organization, + "zone": c.zone, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.previewFeatures.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.organizationZoneVmExtensionPolicies.listVmExtensions", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.previewFeatures.list" call. +// Do executes the "compute.organizationZoneVmExtensionPolicies.listVmExtensions" call. // Any non-2xx status code is an error. Response headers are in either -// *PreviewFeatureList.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 *PreviewFeaturesListCall) Do(opts ...googleapi.CallOption) (*PreviewFeatureList, error) { +// *ListVmExtensionsResponse.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 *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) Do(opts ...googleapi.CallOption) (*ListVmExtensionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -89938,7 +89883,7 @@ func (c *PreviewFeaturesListCall) Do(opts ...googleapi.CallOption) (*PreviewFeat if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &PreviewFeatureList{ + ret := &ListVmExtensionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -89949,14 +89894,14 @@ func (c *PreviewFeaturesListCall) Do(opts ...googleapi.CallOption) (*PreviewFeat if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.previewFeatures.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.organizationZoneVmExtensionPolicies.listVmExtensions", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *PreviewFeaturesListCall) Pages(ctx context.Context, f func(*PreviewFeatureList) error) error { +func (c *OrganizationZoneVmExtensionPoliciesListVmExtensionsCall) Pages(ctx context.Context, f func(*ListVmExtensionsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -89974,27 +89919,29 @@ func (c *PreviewFeaturesListCall) Pages(ctx context.Context, f func(*PreviewFeat } } -type PreviewFeaturesUpdateCall struct { - s *Service - project string - previewFeature string - previewfeature *PreviewFeature - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationZoneVmExtensionPoliciesUpdateCall struct { + s *Service + organization string + zone string + vmExtensionPolicy string + vmextensionpolicy *VmExtensionPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Update: Patches the given PreviewFeature. This method is used to enable or -// disable -// a PreviewFeature. +// Update: Modifies an existing zone VM extension policy within an +// organization. // -// - previewFeature: Name of the PreviewFeature for this request. -// - project: Project ID for this request. -func (r *PreviewFeaturesService) Update(project string, previewFeature string, previewfeature *PreviewFeature) *PreviewFeaturesUpdateCall { - c := &PreviewFeaturesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.previewFeature = previewFeature - c.previewfeature = previewfeature +// - organization: Organization ID for this request. +// - vmExtensionPolicy: Name of the zone VM extension policy to update. +// - zone: Name of the zone for this request. +func (r *OrganizationZoneVmExtensionPoliciesService) Update(organization string, zone string, vmExtensionPolicy string, vmextensionpolicy *VmExtensionPolicy) *OrganizationZoneVmExtensionPoliciesUpdateCall { + c := &OrganizationZoneVmExtensionPoliciesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.organization = organization + c.zone = zone + c.vmExtensionPolicy = vmExtensionPolicy + c.vmextensionpolicy = vmextensionpolicy return c } @@ -90015,7 +89962,7 @@ func (r *PreviewFeaturesService) Update(project string, previewFeature string, p // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *PreviewFeaturesUpdateCall) RequestId(requestId string) *PreviewFeaturesUpdateCall { +func (c *OrganizationZoneVmExtensionPoliciesUpdateCall) RequestId(requestId string) *OrganizationZoneVmExtensionPoliciesUpdateCall { c.urlParams_.Set("requestId", requestId) return c } @@ -90023,35 +89970,35 @@ func (c *PreviewFeaturesUpdateCall) RequestId(requestId string) *PreviewFeatures // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PreviewFeaturesUpdateCall) Fields(s ...googleapi.Field) *PreviewFeaturesUpdateCall { +func (c *OrganizationZoneVmExtensionPoliciesUpdateCall) Fields(s ...googleapi.Field) *OrganizationZoneVmExtensionPoliciesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PreviewFeaturesUpdateCall) Context(ctx context.Context) *PreviewFeaturesUpdateCall { +func (c *OrganizationZoneVmExtensionPoliciesUpdateCall) Context(ctx context.Context) *OrganizationZoneVmExtensionPoliciesUpdateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PreviewFeaturesUpdateCall) Header() http.Header { +func (c *OrganizationZoneVmExtensionPoliciesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PreviewFeaturesUpdateCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationZoneVmExtensionPoliciesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.previewfeature) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.vmextensionpolicy) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/previewFeatures/{previewFeature}") + urls := googleapi.ResolveRelative(c.s.BasePath, "{+organization}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -90059,19 +90006,20 @@ func (c *PreviewFeaturesUpdateCall) doRequest(alt string) (*http.Response, error } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "previewFeature": c.previewFeature, + "organization": c.organization, + "zone": c.zone, + "vmExtensionPolicy": c.vmExtensionPolicy, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.previewFeatures.update", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.organizationZoneVmExtensionPolicies.update", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.previewFeatures.update" call. +// Do executes the "compute.organizationZoneVmExtensionPolicies.update" call. // 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 *PreviewFeaturesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *OrganizationZoneVmExtensionPoliciesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -90101,92 +90049,393 @@ func (c *PreviewFeaturesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.previewFeatures.update", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.organizationZoneVmExtensionPolicies.update", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectViewsGetCall struct { +type PacketMirroringsAggregatedListCall struct { s *Service project string - region string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Returns the specified global ProjectViews resource, with a -// regional -// context. +// AggregatedList: Retrieves an aggregated list of packetMirrorings. +// +// To prevent failure, Google recommends that you set +// the +// `returnPartialSuccess` parameter to `true`. +// +// - project: Project ID for this request. +func (r *PacketMirroringsService) AggregatedList(project string) *PacketMirroringsAggregatedListCall { + c := &PacketMirroringsAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most +// Compute resources support two types of filter expressions: +// expressions that support regular expressions and expressions that follow +// API improvement proposal AIP-160. +// These two types of filter expressions cannot be mixed in one request. +// +// If you want to use AIP-160, your 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 `:*` 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 onresource 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) +// ``` +// +// If you want to use a regular expression, use the `eq` (equal) or `ne` +// (not equal) operator against a single un-parenthesized expression with +// or +// without quotes or against multiple parenthesized expressions. +// Examples: +// +// `fieldname eq unquoted literal` +// `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" +// `(fieldname1 eq literal) (fieldname2 ne "literal")` +// +// The literal value is interpreted as a regular expression using GoogleRE2 +// library syntax. +// The literal value must match the entire field. +// +// For example, to filter for instances that do not end with name +// "instance", +// you would use `name ne .*instance`. +// +// You cannot combine constraints on multiple fields using regular +// expressions. +func (c *PacketMirroringsAggregatedListCall) Filter(filter string) *PacketMirroringsAggregatedListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// IncludeAllScopes sets the optional parameter "includeAllScopes": 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. +func (c *PacketMirroringsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *PacketMirroringsAggregatedListCall { + c.urlParams_.Set("includeAllScopes", fmt.Sprint(includeAllScopes)) + return c +} + +// MaxResults sets the optional parameter "maxResults": 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`) +func (c *PacketMirroringsAggregatedListCall) MaxResults(maxResults int64) *PacketMirroringsAggregatedListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": 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. +func (c *PacketMirroringsAggregatedListCall) OrderBy(orderBy string) *PacketMirroringsAggregatedListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the +// `nextPageToken` returned by a previous list request to get +// the next page of results. +func (c *PacketMirroringsAggregatedListCall) PageToken(pageToken string) *PacketMirroringsAggregatedListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in +// case +// of failure. The default value is false. +// +// For example, when partial success behavior is enabled, aggregatedList for +// a +// single zone scope either returns all resources in the zone or no +// resources, +// with an error code. +func (c *PacketMirroringsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PacketMirroringsAggregatedListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The +// Shared VPC service project id or service project number for which +// aggregated list request is invoked for subnetworks list-usable api. +func (c *PacketMirroringsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *PacketMirroringsAggregatedListCall { + c.urlParams_.Set("serviceProjectNumber", fmt.Sprint(serviceProjectNumber)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *PacketMirroringsAggregatedListCall) Fields(s ...googleapi.Field) *PacketMirroringsAggregatedListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *PacketMirroringsAggregatedListCall) IfNoneMatch(entityTag string) *PacketMirroringsAggregatedListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *PacketMirroringsAggregatedListCall) Context(ctx context.Context) *PacketMirroringsAggregatedListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *PacketMirroringsAggregatedListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PacketMirroringsAggregatedListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/packetMirrorings") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.packetMirrorings.aggregatedList", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.packetMirrorings.aggregatedList" call. +// Any non-2xx status code is an error. Response headers are in either +// *PacketMirroringAggregatedList.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 *PacketMirroringsAggregatedListCall) Do(opts ...googleapi.CallOption) (*PacketMirroringAggregatedList, 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 := &PacketMirroringAggregatedList{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.packetMirrorings.aggregatedList", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *PacketMirroringsAggregatedListCall) Pages(ctx context.Context, f func(*PacketMirroringAggregatedList) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type PacketMirroringsDeleteCall struct { + s *Service + project string + region string + packetMirroring string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified PacketMirroring resource. +// +// - packetMirroring: Name of the PacketMirroring resource to delete. +// - project: Project ID for this request. +// - region: Name of the region for this request. +func (r *PacketMirroringsService) Delete(project string, region string, packetMirroring string) *PacketMirroringsDeleteCall { + c := &PacketMirroringsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.packetMirroring = packetMirroring + return c +} + +// RequestId sets the optional parameter "requestId": 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. // -// - project: Project ID for this request. This is part of the URL path. -// - region: Name of the region for this request. This is part of the URL path. -func (r *ProjectViewsService) Get(project string, region string) *ProjectViewsGetCall { - c := &ProjectViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region +// The request ID must be +// a valid UUID with the exception that zero UUID is not +// supported +// (00000000-0000-0000-0000-000000000000). +func (c *PacketMirroringsDeleteCall) RequestId(requestId string) *PacketMirroringsDeleteCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectViewsGetCall) Fields(s ...googleapi.Field) *ProjectViewsGetCall { +func (c *PacketMirroringsDeleteCall) Fields(s ...googleapi.Field) *PacketMirroringsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectViewsGetCall) IfNoneMatch(entityTag string) *ProjectViewsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectViewsGetCall) Context(ctx context.Context) *ProjectViewsGetCall { +func (c *PacketMirroringsDeleteCall) Context(ctx context.Context) *PacketMirroringsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectViewsGetCall) Header() http.Header { +func (c *PacketMirroringsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectViewsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *PacketMirroringsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/projectViews") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, + "project": c.project, + "region": c.region, + "packetMirroring": c.packetMirroring, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projectViews.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.packetMirrorings.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projectViews.get" call. +// Do executes the "compute.packetMirrorings.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *ProjectView.ServerResponse.Header or (if a response was returned at all) in +// *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 *ProjectViewsGetCall) Do(opts ...googleapi.CallOption) (*ProjectView, error) { +func (c *PacketMirroringsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -90205,7 +90454,7 @@ func (c *ProjectViewsGetCall) Do(opts ...googleapi.CallOption) (*ProjectView, er if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ProjectView{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -90216,96 +90465,95 @@ func (c *ProjectViewsGetCall) Do(opts ...googleapi.CallOption) (*ProjectView, er if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projectViews.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.packetMirrorings.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsDisableXpnHostCall struct { - s *Service - project string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PacketMirroringsGetCall struct { + s *Service + project string + region string + packetMirroring string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// DisableXpnHost: Disable this project as a shared VPC host project. +// Get: Returns the specified PacketMirroring resource. // +// - packetMirroring: Name of the PacketMirroring resource to return. // - project: Project ID for this request. -func (r *ProjectsService) DisableXpnHost(project string) *ProjectsDisableXpnHostCall { - c := &ProjectsDisableXpnHostCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - region: Name of the region for this request. +func (r *PacketMirroringsService) Get(project string, region string, packetMirroring string) *PacketMirroringsGetCall { + c := &PacketMirroringsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - return c -} - -// RequestId sets the optional parameter "requestId": 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). -func (c *ProjectsDisableXpnHostCall) RequestId(requestId string) *ProjectsDisableXpnHostCall { - c.urlParams_.Set("requestId", requestId) + c.region = region + c.packetMirroring = packetMirroring return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsDisableXpnHostCall) Fields(s ...googleapi.Field) *ProjectsDisableXpnHostCall { +func (c *PacketMirroringsGetCall) Fields(s ...googleapi.Field) *PacketMirroringsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *PacketMirroringsGetCall) IfNoneMatch(entityTag string) *PacketMirroringsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsDisableXpnHostCall) Context(ctx context.Context) *ProjectsDisableXpnHostCall { +func (c *PacketMirroringsGetCall) Context(ctx context.Context) *PacketMirroringsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsDisableXpnHostCall) Header() http.Header { +func (c *PacketMirroringsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsDisableXpnHostCall) doRequest(alt string) (*http.Response, error) { +func (c *PacketMirroringsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/disableXpnHost") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, nil) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, + "project": c.project, + "region": c.region, + "packetMirroring": c.packetMirroring, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.disableXpnHost", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.packetMirrorings.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projects.disableXpnHost" call. +// Do executes the "compute.packetMirrorings.get" call. // 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 *ProjectsDisableXpnHostCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *PacketMirroring.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 *PacketMirroringsGetCall) Do(opts ...googleapi.CallOption) (*PacketMirroring, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -90324,7 +90572,7 @@ func (c *ProjectsDisableXpnHostCall) Do(opts ...googleapi.CallOption) (*Operatio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &PacketMirroring{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -90335,28 +90583,31 @@ func (c *ProjectsDisableXpnHostCall) Do(opts ...googleapi.CallOption) (*Operatio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.disableXpnHost", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.packetMirrorings.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsDisableXpnResourceCall struct { - s *Service - project string - projectsdisablexpnresourcerequest *ProjectsDisableXpnResourceRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PacketMirroringsInsertCall struct { + s *Service + project string + region string + packetmirroring *PacketMirroring + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// DisableXpnResource: Disable a service resource (also known as service -// project) associated with -// this host project. +// Insert: Creates a PacketMirroring resource in the specified project and +// region +// using the data included in the request. // // - project: Project ID for this request. -func (r *ProjectsService) DisableXpnResource(project string, projectsdisablexpnresourcerequest *ProjectsDisableXpnResourceRequest) *ProjectsDisableXpnResourceCall { - c := &ProjectsDisableXpnResourceCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - region: Name of the region for this request. +func (r *PacketMirroringsService) Insert(project string, region string, packetmirroring *PacketMirroring) *PacketMirroringsInsertCall { + c := &PacketMirroringsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.projectsdisablexpnresourcerequest = projectsdisablexpnresourcerequest + c.region = region + c.packetmirroring = packetmirroring return c } @@ -90377,7 +90628,7 @@ func (r *ProjectsService) DisableXpnResource(project string, projectsdisablexpnr // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *ProjectsDisableXpnResourceCall) RequestId(requestId string) *ProjectsDisableXpnResourceCall { +func (c *PacketMirroringsInsertCall) RequestId(requestId string) *PacketMirroringsInsertCall { c.urlParams_.Set("requestId", requestId) return c } @@ -90385,35 +90636,35 @@ func (c *ProjectsDisableXpnResourceCall) RequestId(requestId string) *ProjectsDi // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsDisableXpnResourceCall) Fields(s ...googleapi.Field) *ProjectsDisableXpnResourceCall { +func (c *PacketMirroringsInsertCall) Fields(s ...googleapi.Field) *PacketMirroringsInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsDisableXpnResourceCall) Context(ctx context.Context) *ProjectsDisableXpnResourceCall { +func (c *PacketMirroringsInsertCall) Context(ctx context.Context) *PacketMirroringsInsertCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsDisableXpnResourceCall) Header() http.Header { +func (c *PacketMirroringsInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsDisableXpnResourceCall) doRequest(alt string) (*http.Response, error) { +func (c *PacketMirroringsInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.projectsdisablexpnresourcerequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.packetmirroring) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/disableXpnResource") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/packetMirrorings") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -90422,17 +90673,18 @@ func (c *ProjectsDisableXpnResourceCall) doRequest(alt string) (*http.Response, req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "project": c.project, + "region": c.region, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.disableXpnResource", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.packetMirrorings.insert", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projects.disableXpnResource" call. +// Do executes the "compute.packetMirrorings.insert" call. // 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 *ProjectsDisableXpnResourceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *PacketMirroringsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -90462,96 +90714,221 @@ func (c *ProjectsDisableXpnResourceCall) Do(opts ...googleapi.CallOption) (*Oper if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.disableXpnResource", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.packetMirrorings.insert", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsEnableXpnHostCall struct { - s *Service - project string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PacketMirroringsListCall struct { + s *Service + project string + region string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// EnableXpnHost: Enable this project as a shared VPC host project. +// List: Retrieves a list of PacketMirroring resources available to the +// specified +// project and region. // // - project: Project ID for this request. -func (r *ProjectsService) EnableXpnHost(project string) *ProjectsEnableXpnHostCall { - c := &ProjectsEnableXpnHostCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - region: Name of the region for this request. +func (r *PacketMirroringsService) List(project string, region string) *PacketMirroringsListCall { + c := &PacketMirroringsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project + c.region = region return c } -// RequestId sets the optional parameter "requestId": 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. +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most +// Compute resources support two types of filter expressions: +// expressions that support regular expressions and expressions that follow +// API improvement proposal AIP-160. +// These two types of filter expressions cannot be mixed in one request. // -// 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. +// If you want to use AIP-160, your 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 `:`. // -// The request ID must be -// a valid UUID with the exception that zero UUID is not -// supported -// (00000000-0000-0000-0000-000000000000). -func (c *ProjectsEnableXpnHostCall) RequestId(requestId string) *ProjectsEnableXpnHostCall { - c.urlParams_.Set("requestId", requestId) +// For example, if you are filtering Compute Engine instances, you can +// exclude instances named `example-instance` by specifying +// `name != example-instance`. +// +// 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 onresource 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) +// ``` +// +// If you want to use a regular expression, use the `eq` (equal) or `ne` +// (not equal) operator against a single un-parenthesized expression with +// or +// without quotes or against multiple parenthesized expressions. +// Examples: +// +// `fieldname eq unquoted literal` +// `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" +// `(fieldname1 eq literal) (fieldname2 ne "literal")` +// +// The literal value is interpreted as a regular expression using GoogleRE2 +// library syntax. +// The literal value must match the entire field. +// +// For example, to filter for instances that do not end with name +// "instance", +// you would use `name ne .*instance`. +// +// You cannot combine constraints on multiple fields using regular +// expressions. +func (c *PacketMirroringsListCall) Filter(filter string) *PacketMirroringsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": 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`) +func (c *PacketMirroringsListCall) MaxResults(maxResults int64) *PacketMirroringsListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": 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. +func (c *PacketMirroringsListCall) OrderBy(orderBy string) *PacketMirroringsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the +// `nextPageToken` returned by a previous list request to get +// the next page of results. +func (c *PacketMirroringsListCall) PageToken(pageToken string) *PacketMirroringsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in +// case +// of failure. The default value is false. +// +// For example, when partial success behavior is enabled, aggregatedList for +// a +// single zone scope either returns all resources in the zone or no +// resources, +// with an error code. +func (c *PacketMirroringsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PacketMirroringsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsEnableXpnHostCall) Fields(s ...googleapi.Field) *ProjectsEnableXpnHostCall { +func (c *PacketMirroringsListCall) Fields(s ...googleapi.Field) *PacketMirroringsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *PacketMirroringsListCall) IfNoneMatch(entityTag string) *PacketMirroringsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsEnableXpnHostCall) Context(ctx context.Context) *ProjectsEnableXpnHostCall { +func (c *PacketMirroringsListCall) Context(ctx context.Context) *PacketMirroringsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsEnableXpnHostCall) Header() http.Header { +func (c *PacketMirroringsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsEnableXpnHostCall) doRequest(alt string) (*http.Response, error) { +func (c *PacketMirroringsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/enableXpnHost") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/packetMirrorings") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, nil) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "project": c.project, + "region": c.region, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.enableXpnHost", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.packetMirrorings.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projects.enableXpnHost" call. +// Do executes the "compute.packetMirrorings.list" call. // 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 *ProjectsEnableXpnHostCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *PacketMirroringList.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 *PacketMirroringsListCall) Do(opts ...googleapi.CallOption) (*PacketMirroringList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -90570,7 +90947,7 @@ func (c *ProjectsEnableXpnHostCall) Do(opts ...googleapi.CallOption) (*Operation if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &PacketMirroringList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -90581,29 +90958,57 @@ func (c *ProjectsEnableXpnHostCall) Do(opts ...googleapi.CallOption) (*Operation if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.enableXpnHost", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.packetMirrorings.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsEnableXpnResourceCall struct { - s *Service - project string - projectsenablexpnresourcerequest *ProjectsEnableXpnResourceRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *PacketMirroringsListCall) Pages(ctx context.Context, f func(*PacketMirroringList) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// EnableXpnResource: Enable service resource (a.k.a service project) for a -// host project, so that -// subnets in the host project can be used by instances in the service -// project. +type PacketMirroringsPatchCall struct { + s *Service + project string + region string + packetMirroring string + packetmirroring *PacketMirroring + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Patches the specified PacketMirroring resource with the data included +// in +// the request. This method supportsPATCH +// semantics and usesJSON merge +// patch format and processing rules. // +// - packetMirroring: Name of the PacketMirroring resource to patch. // - project: Project ID for this request. -func (r *ProjectsService) EnableXpnResource(project string, projectsenablexpnresourcerequest *ProjectsEnableXpnResourceRequest) *ProjectsEnableXpnResourceCall { - c := &ProjectsEnableXpnResourceCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - region: Name of the region for this request. +func (r *PacketMirroringsService) Patch(project string, region string, packetMirroring string, packetmirroring *PacketMirroring) *PacketMirroringsPatchCall { + c := &PacketMirroringsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.projectsenablexpnresourcerequest = projectsenablexpnresourcerequest + c.region = region + c.packetMirroring = packetMirroring + c.packetmirroring = packetmirroring return c } @@ -90624,7 +91029,7 @@ func (r *ProjectsService) EnableXpnResource(project string, projectsenablexpnres // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *ProjectsEnableXpnResourceCall) RequestId(requestId string) *ProjectsEnableXpnResourceCall { +func (c *PacketMirroringsPatchCall) RequestId(requestId string) *PacketMirroringsPatchCall { c.urlParams_.Set("requestId", requestId) return c } @@ -90632,54 +91037,56 @@ func (c *ProjectsEnableXpnResourceCall) RequestId(requestId string) *ProjectsEna // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsEnableXpnResourceCall) Fields(s ...googleapi.Field) *ProjectsEnableXpnResourceCall { +func (c *PacketMirroringsPatchCall) Fields(s ...googleapi.Field) *PacketMirroringsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsEnableXpnResourceCall) Context(ctx context.Context) *ProjectsEnableXpnResourceCall { +func (c *PacketMirroringsPatchCall) Context(ctx context.Context) *PacketMirroringsPatchCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsEnableXpnResourceCall) Header() http.Header { +func (c *PacketMirroringsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsEnableXpnResourceCall) doRequest(alt string) (*http.Response, error) { +func (c *PacketMirroringsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.projectsenablexpnresourcerequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.packetmirroring) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/enableXpnResource") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, + "project": c.project, + "region": c.region, + "packetMirroring": c.packetMirroring, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.enableXpnResource", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.packetMirrorings.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projects.enableXpnResource" call. +// Do executes the "compute.packetMirrorings.patch" call. // 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 *ProjectsEnableXpnResourceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *PacketMirroringsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -90709,98 +91116,90 @@ func (c *ProjectsEnableXpnResourceCall) Do(opts ...googleapi.CallOption) (*Opera if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.enableXpnResource", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.packetMirrorings.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsGetCall struct { - s *Service - project string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Returns the specified Project resource. -// -// To decrease latency for this method, you can optionally omit any -// unneeded -// information from the response by using a field mask. This practice -// is -// especially recommended for unused quota information (the `quotas` field). -// To exclude one or more fields, set your request's `fields` query -// parameter -// to only include the fields you need. For example, to only include the -// `id` -// and `selfLink` fields, add the query parameter `?fields=id,selfLink` to -// your request. +type PacketMirroringsTestIamPermissionsCall struct { + s *Service + project string + region string + resource string + testpermissionsrequest *TestPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. // // - project: Project ID for this request. -func (r *ProjectsService) Get(project string) *ProjectsGetCall { - c := &ProjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - region: The name of the region for this request. +// - resource: Name or id of the resource for this request. +func (r *PacketMirroringsService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *PacketMirroringsTestIamPermissionsCall { + c := &PacketMirroringsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project + c.region = region + c.resource = resource + c.testpermissionsrequest = testpermissionsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall { +func (c *PacketMirroringsTestIamPermissionsCall) Fields(s ...googleapi.Field) *PacketMirroringsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall { +func (c *PacketMirroringsTestIamPermissionsCall) Context(ctx context.Context) *PacketMirroringsTestIamPermissionsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsGetCall) Header() http.Header { +func (c *PacketMirroringsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *PacketMirroringsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testpermissionsrequest) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, + "project": c.project, + "region": c.region, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.packetMirrorings.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projects.get" call. +// Do executes the "compute.packetMirrorings.testIamPermissions" call. // Any non-2xx status code is an error. Response headers are in either -// *Project.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 *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { +// *TestPermissionsResponse.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 *PacketMirroringsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -90819,7 +91218,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Project{ + ret := &TestPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -90830,34 +91229,35 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.packetMirrorings.testIamPermissions", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsGetXpnHostCall struct { - s *Service - project string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type PreviewFeaturesGetCall struct { + s *Service + project string + previewFeature string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// GetXpnHost: Gets the shared VPC host project that this project links to. May -// be empty -// if no link exists. +// Get: Returns the details of the given PreviewFeature. // +// - previewFeature: Name of the PreviewFeature for this request. // - project: Project ID for this request. -func (r *ProjectsService) GetXpnHost(project string) *ProjectsGetXpnHostCall { - c := &ProjectsGetXpnHostCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *PreviewFeaturesService) Get(project string, previewFeature string) *PreviewFeaturesGetCall { + c := &PreviewFeaturesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project + c.previewFeature = previewFeature return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsGetXpnHostCall) Fields(s ...googleapi.Field) *ProjectsGetXpnHostCall { +func (c *PreviewFeaturesGetCall) Fields(s ...googleapi.Field) *PreviewFeaturesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -90865,34 +91265,34 @@ func (c *ProjectsGetXpnHostCall) Fields(s ...googleapi.Field) *ProjectsGetXpnHos // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsGetXpnHostCall) IfNoneMatch(entityTag string) *ProjectsGetXpnHostCall { +func (c *PreviewFeaturesGetCall) IfNoneMatch(entityTag string) *PreviewFeaturesGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsGetXpnHostCall) Context(ctx context.Context) *ProjectsGetXpnHostCall { +func (c *PreviewFeaturesGetCall) Context(ctx context.Context) *PreviewFeaturesGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsGetXpnHostCall) Header() http.Header { +func (c *PreviewFeaturesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsGetXpnHostCall) doRequest(alt string) (*http.Response, error) { +func (c *PreviewFeaturesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/getXpnHost") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/previewFeatures/{previewFeature}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -90900,18 +91300,19 @@ func (c *ProjectsGetXpnHostCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, + "project": c.project, + "previewFeature": c.previewFeature, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.getXpnHost", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.previewFeatures.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projects.getXpnHost" call. +// Do executes the "compute.previewFeatures.get" call. // Any non-2xx status code is an error. Response headers are in either -// *Project.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// *PreviewFeature.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 *ProjectsGetXpnHostCall) Do(opts ...googleapi.CallOption) (*Project, error) { +func (c *PreviewFeaturesGetCall) Do(opts ...googleapi.CallOption) (*PreviewFeature, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -90930,7 +91331,7 @@ func (c *ProjectsGetXpnHostCall) Do(opts ...googleapi.CallOption) (*Project, err if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Project{ + ret := &PreviewFeature{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -90941,11 +91342,11 @@ func (c *ProjectsGetXpnHostCall) Do(opts ...googleapi.CallOption) (*Project, err if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.getXpnHost", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.previewFeatures.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsGetXpnResourcesCall struct { +type PreviewFeaturesListCall struct { s *Service project string urlParams_ gensupport.URLParams @@ -90954,13 +91355,11 @@ type ProjectsGetXpnResourcesCall struct { header_ http.Header } -// GetXpnResources: Gets service resources (a.k.a service project) associated -// with this host -// project. +// List: Returns the details of the given PreviewFeature. // // - project: Project ID for this request. -func (r *ProjectsService) GetXpnResources(project string) *ProjectsGetXpnResourcesCall { - c := &ProjectsGetXpnResourcesCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *PreviewFeaturesService) List(project string) *PreviewFeaturesListCall { + c := &PreviewFeaturesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project return c } @@ -91032,7 +91431,7 @@ func (r *ProjectsService) GetXpnResources(project string) *ProjectsGetXpnResourc // // You cannot combine constraints on multiple fields using regular // expressions. -func (c *ProjectsGetXpnResourcesCall) Filter(filter string) *ProjectsGetXpnResourcesCall { +func (c *PreviewFeaturesListCall) Filter(filter string) *PreviewFeaturesListCall { c.urlParams_.Set("filter", filter) return c } @@ -91044,7 +91443,7 @@ func (c *ProjectsGetXpnResourcesCall) Filter(filter string) *ProjectsGetXpnResou // the next page of results in subsequent list requests. Acceptable values // are // `0` to `500`, inclusive. (Default: `500`) -func (c *ProjectsGetXpnResourcesCall) MaxResults(maxResults int64) *ProjectsGetXpnResourcesCall { +func (c *PreviewFeaturesListCall) MaxResults(maxResults int64) *PreviewFeaturesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } @@ -91064,7 +91463,7 @@ func (c *ProjectsGetXpnResourcesCall) MaxResults(maxResults int64) *ProjectsGetX // // Currently, only sorting by `name` or // `creationTimestamp desc` is supported. -func (c *ProjectsGetXpnResourcesCall) OrderBy(orderBy string) *ProjectsGetXpnResourcesCall { +func (c *PreviewFeaturesListCall) OrderBy(orderBy string) *PreviewFeaturesListCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -91073,7 +91472,7 @@ func (c *ProjectsGetXpnResourcesCall) OrderBy(orderBy string) *ProjectsGetXpnRes // use. Set `pageToken` to the // `nextPageToken` returned by a previous list request to get // the next page of results. -func (c *ProjectsGetXpnResourcesCall) PageToken(pageToken string) *ProjectsGetXpnResourcesCall { +func (c *PreviewFeaturesListCall) PageToken(pageToken string) *PreviewFeaturesListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -91088,7 +91487,7 @@ func (c *ProjectsGetXpnResourcesCall) PageToken(pageToken string) *ProjectsGetXp // single zone scope either returns all resources in the zone or no // resources, // with an error code. -func (c *ProjectsGetXpnResourcesCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsGetXpnResourcesCall { +func (c *PreviewFeaturesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PreviewFeaturesListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -91096,7 +91495,7 @@ func (c *ProjectsGetXpnResourcesCall) ReturnPartialSuccess(returnPartialSuccess // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsGetXpnResourcesCall) Fields(s ...googleapi.Field) *ProjectsGetXpnResourcesCall { +func (c *PreviewFeaturesListCall) Fields(s ...googleapi.Field) *PreviewFeaturesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -91104,34 +91503,34 @@ func (c *ProjectsGetXpnResourcesCall) Fields(s ...googleapi.Field) *ProjectsGetX // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsGetXpnResourcesCall) IfNoneMatch(entityTag string) *ProjectsGetXpnResourcesCall { +func (c *PreviewFeaturesListCall) IfNoneMatch(entityTag string) *PreviewFeaturesListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsGetXpnResourcesCall) Context(ctx context.Context) *ProjectsGetXpnResourcesCall { +func (c *PreviewFeaturesListCall) Context(ctx context.Context) *PreviewFeaturesListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsGetXpnResourcesCall) Header() http.Header { +func (c *PreviewFeaturesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsGetXpnResourcesCall) doRequest(alt string) (*http.Response, error) { +func (c *PreviewFeaturesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/getXpnResources") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/previewFeatures") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -91141,17 +91540,17 @@ func (c *ProjectsGetXpnResourcesCall) doRequest(alt string) (*http.Response, err googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.getXpnResources", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.previewFeatures.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projects.getXpnResources" call. +// Do executes the "compute.previewFeatures.list" call. // Any non-2xx status code is an error. Response headers are in either -// *ProjectsGetXpnResources.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 *ProjectsGetXpnResourcesCall) Do(opts ...googleapi.CallOption) (*ProjectsGetXpnResources, error) { +// *PreviewFeatureList.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 *PreviewFeaturesListCall) Do(opts ...googleapi.CallOption) (*PreviewFeatureList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -91170,7 +91569,7 @@ func (c *ProjectsGetXpnResourcesCall) Do(opts ...googleapi.CallOption) (*Project if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ProjectsGetXpnResources{ + ret := &PreviewFeatureList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -91181,14 +91580,14 @@ func (c *ProjectsGetXpnResourcesCall) Do(opts ...googleapi.CallOption) (*Project if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.getXpnResources", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.previewFeatures.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsGetXpnResourcesCall) Pages(ctx context.Context, f func(*ProjectsGetXpnResources) error) error { +func (c *PreviewFeaturesListCall) Pages(ctx context.Context, f func(*PreviewFeatureList) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -91206,205 +91605,104 @@ func (c *ProjectsGetXpnResourcesCall) Pages(ctx context.Context, f func(*Project } } -type ProjectsListXpnHostsCall struct { - s *Service - project string - projectslistxpnhostsrequest *ProjectsListXpnHostsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PreviewFeaturesUpdateCall struct { + s *Service + project string + previewFeature string + previewfeature *PreviewFeature + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ListXpnHosts: Lists all shared VPC host projects visible to the user in an -// organization. +// Update: Patches the given PreviewFeature. This method is used to enable or +// disable +// a PreviewFeature. // +// - previewFeature: Name of the PreviewFeature for this request. // - project: Project ID for this request. -func (r *ProjectsService) ListXpnHosts(project string, projectslistxpnhostsrequest *ProjectsListXpnHostsRequest) *ProjectsListXpnHostsCall { - c := &ProjectsListXpnHostsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *PreviewFeaturesService) Update(project string, previewFeature string, previewfeature *PreviewFeature) *PreviewFeaturesUpdateCall { + c := &PreviewFeaturesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.projectslistxpnhostsrequest = projectslistxpnhostsrequest - return c -} - -// Filter sets the optional parameter "filter": A filter expression that -// filters resources listed in the response. Most -// Compute resources support two types of filter expressions: -// expressions that support regular expressions and expressions that follow -// API improvement proposal AIP-160. -// These two types of filter expressions cannot be mixed in one request. -// -// If you want to use AIP-160, your 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 `:*` 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 onresource 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) -// ``` -// -// If you want to use a regular expression, use the `eq` (equal) or `ne` -// (not equal) operator against a single un-parenthesized expression with -// or -// without quotes or against multiple parenthesized expressions. -// Examples: -// -// `fieldname eq unquoted literal` -// `fieldname eq 'single quoted literal'` -// `fieldname eq "double quoted literal" -// `(fieldname1 eq literal) (fieldname2 ne "literal")` -// -// The literal value is interpreted as a regular expression using GoogleRE2 -// library syntax. -// The literal value must match the entire field. -// -// For example, to filter for instances that do not end with name -// "instance", -// you would use `name ne .*instance`. -// -// You cannot combine constraints on multiple fields using regular -// expressions. -func (c *ProjectsListXpnHostsCall) Filter(filter string) *ProjectsListXpnHostsCall { - c.urlParams_.Set("filter", filter) - return c -} - -// MaxResults sets the optional parameter "maxResults": 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`) -func (c *ProjectsListXpnHostsCall) MaxResults(maxResults int64) *ProjectsListXpnHostsCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + c.previewFeature = previewFeature + c.previewfeature = previewfeature return c } -// OrderBy sets the optional parameter "orderBy": 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. +// RequestId sets the optional parameter "requestId": 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. // -// Currently, only sorting by `name` or -// `creationTimestamp desc` is supported. -func (c *ProjectsListXpnHostsCall) OrderBy(orderBy string) *ProjectsListXpnHostsCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageToken sets the optional parameter "pageToken": Specifies a page token to -// use. Set `pageToken` to the -// `nextPageToken` returned by a previous list request to get -// the next page of results. -func (c *ProjectsListXpnHostsCall) PageToken(pageToken string) *ProjectsListXpnHostsCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": -// Opt-in for partial success behavior which provides partial results in -// case -// of failure. The default value is false. +// 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. // -// For example, when partial success behavior is enabled, aggregatedList for -// a -// single zone scope either returns all resources in the zone or no -// resources, -// with an error code. -func (c *ProjectsListXpnHostsCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsListXpnHostsCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) +// The request ID must be +// a valid UUID with the exception that zero UUID is not +// supported +// (00000000-0000-0000-0000-000000000000). +func (c *PreviewFeaturesUpdateCall) RequestId(requestId string) *PreviewFeaturesUpdateCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsListXpnHostsCall) Fields(s ...googleapi.Field) *ProjectsListXpnHostsCall { +func (c *PreviewFeaturesUpdateCall) Fields(s ...googleapi.Field) *PreviewFeaturesUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsListXpnHostsCall) Context(ctx context.Context) *ProjectsListXpnHostsCall { +func (c *PreviewFeaturesUpdateCall) Context(ctx context.Context) *PreviewFeaturesUpdateCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsListXpnHostsCall) Header() http.Header { +func (c *PreviewFeaturesUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsListXpnHostsCall) doRequest(alt string) (*http.Response, error) { +func (c *PreviewFeaturesUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.projectslistxpnhostsrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.previewfeature) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/listXpnHosts") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/previewFeatures/{previewFeature}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, + "project": c.project, + "previewFeature": c.previewFeature, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.listXpnHosts", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.previewFeatures.update", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projects.listXpnHosts" call. +// Do executes the "compute.previewFeatures.update" call. // Any non-2xx status code is an error. Response headers are in either -// *XpnHostList.ServerResponse.Header or (if a response was returned at all) in +// *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 *ProjectsListXpnHostsCall) Do(opts ...googleapi.CallOption) (*XpnHostList, error) { +func (c *PreviewFeaturesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -91423,7 +91721,7 @@ func (c *ProjectsListXpnHostsCall) Do(opts ...googleapi.CallOption) (*XpnHostLis if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &XpnHostList{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -91434,141 +91732,92 @@ func (c *ProjectsListXpnHostsCall) Do(opts ...googleapi.CallOption) (*XpnHostLis if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.listXpnHosts", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.previewFeatures.update", "response", internallog.HTTPResponse(res, b)) return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsListXpnHostsCall) Pages(ctx context.Context, f func(*XpnHostList) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type ProjectsMoveDiskCall struct { - s *Service - project string - diskmoverequest *DiskMoveRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectViewsGetCall struct { + s *Service + project string + region string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// MoveDisk: Moves a persistent disk from one zone to another. -// *Note*: The moveDisk API will be deprecated on September 29, 2026. -// -// Starting September 29, 2025, you can't use the moveDisk API on new -// projects. To move a disk to a different region or zone, follow the steps -// in -// Change the location of a -// disk -// (https://cloud.google.com/compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd). -// -// Projects that already use the moveDisk API can continue usage -// until -// September 29, 2026. -// -// Starting November 1, 2025, API responses will include a warning message -// in -// the response body about the upcoming deprecation. You can skip the -// message -// to continue using the service without interruption. +// Get: Returns the specified global ProjectViews resource, with a +// regional +// context. // -// - project: Project ID for this request. -func (r *ProjectsService) MoveDisk(project string, diskmoverequest *DiskMoveRequest) *ProjectsMoveDiskCall { - c := &ProjectsMoveDiskCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - project: Project ID for this request. This is part of the URL path. +// - region: Name of the region for this request. This is part of the URL path. +func (r *ProjectViewsService) Get(project string, region string) *ProjectViewsGetCall { + c := &ProjectViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.diskmoverequest = diskmoverequest - return c -} - -// RequestId sets the optional parameter "requestId": 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). -func (c *ProjectsMoveDiskCall) RequestId(requestId string) *ProjectsMoveDiskCall { - c.urlParams_.Set("requestId", requestId) + c.region = region return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsMoveDiskCall) Fields(s ...googleapi.Field) *ProjectsMoveDiskCall { +func (c *ProjectViewsGetCall) Fields(s ...googleapi.Field) *ProjectViewsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectViewsGetCall) IfNoneMatch(entityTag string) *ProjectViewsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsMoveDiskCall) Context(ctx context.Context) *ProjectsMoveDiskCall { +func (c *ProjectViewsGetCall) Context(ctx context.Context) *ProjectViewsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsMoveDiskCall) Header() http.Header { +func (c *ProjectViewsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsMoveDiskCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.diskmoverequest) - if err != nil { - return nil, err +func (c *ProjectViewsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/moveDisk") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/projectViews") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "project": c.project, + "region": c.region, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.moveDisk", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projectViews.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projects.moveDisk" call. +// Do executes the "compute.projectViews.get" call. // 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 +// *ProjectView.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 *ProjectsMoveDiskCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectViewsGetCall) Do(opts ...googleapi.CallOption) (*ProjectView, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -91587,7 +91836,7 @@ func (c *ProjectsMoveDiskCall) Do(opts ...googleapi.CallOption) (*Operation, err if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ProjectView{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -91598,37 +91847,24 @@ func (c *ProjectsMoveDiskCall) Do(opts ...googleapi.CallOption) (*Operation, err if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.moveDisk", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projectViews.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsMoveInstanceCall struct { - s *Service - project string - instancemoverequest *InstanceMoveRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsDisableXpnHostCall struct { + s *Service + project string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// MoveInstance: Moves an instance and its attached persistent disks from one -// zone to -// another. -// *Note*: Moving VMs or disks by using this method might -// -// cause unexpected behavior. For more information, see the known -// issue -// -// (/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_mov -// einstance_api_or_the_causes_unexpected_behavior). -// [Deprecated] This method is deprecated. See moving instance across -// zones (/compute/docs/instances/moving-instance-across-zones) instead. +// DisableXpnHost: Disable this project as a shared VPC host project. // // - project: Project ID for this request. -func (r *ProjectsService) MoveInstance(project string, instancemoverequest *InstanceMoveRequest) *ProjectsMoveInstanceCall { - c := &ProjectsMoveInstanceCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsService) DisableXpnHost(project string) *ProjectsDisableXpnHostCall { + c := &ProjectsDisableXpnHostCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.instancemoverequest = instancemoverequest return c } @@ -91649,7 +91885,7 @@ func (r *ProjectsService) MoveInstance(project string, instancemoverequest *Inst // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *ProjectsMoveInstanceCall) RequestId(requestId string) *ProjectsMoveInstanceCall { +func (c *ProjectsDisableXpnHostCall) RequestId(requestId string) *ProjectsDisableXpnHostCall { c.urlParams_.Set("requestId", requestId) return c } @@ -91657,37 +91893,33 @@ func (c *ProjectsMoveInstanceCall) RequestId(requestId string) *ProjectsMoveInst // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsMoveInstanceCall) Fields(s ...googleapi.Field) *ProjectsMoveInstanceCall { +func (c *ProjectsDisableXpnHostCall) Fields(s ...googleapi.Field) *ProjectsDisableXpnHostCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsMoveInstanceCall) Context(ctx context.Context) *ProjectsMoveInstanceCall { +func (c *ProjectsDisableXpnHostCall) Context(ctx context.Context) *ProjectsDisableXpnHostCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsMoveInstanceCall) Header() http.Header { +func (c *ProjectsDisableXpnHostCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsMoveInstanceCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.instancemoverequest) - if err != nil { - return nil, err - } +func (c *ProjectsDisableXpnHostCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/moveInstance") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/disableXpnHost") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("POST", urls, nil) if err != nil { return nil, err } @@ -91695,16 +91927,16 @@ func (c *ProjectsMoveInstanceCall) doRequest(alt string) (*http.Response, error) googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.moveInstance", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.disableXpnHost", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projects.moveInstance" call. +// Do executes the "compute.projects.disableXpnHost" call. // 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 *ProjectsMoveInstanceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsDisableXpnHostCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -91734,30 +91966,28 @@ func (c *ProjectsMoveInstanceCall) Do(opts ...googleapi.CallOption) (*Operation, if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.moveInstance", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.disableXpnHost", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsSetCloudArmorTierCall struct { - s *Service - project string - projectssetcloudarmortierrequest *ProjectsSetCloudArmorTierRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsDisableXpnResourceCall struct { + s *Service + project string + projectsdisablexpnresourcerequest *ProjectsDisableXpnResourceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetCloudArmorTier: Sets the Cloud Armor tier of the project. To set -// ENTERPRISE or above the -// billing account of the project must be subscribed to Cloud Armor -// Enterprise. See Subscribing -// to Cloud Armor Enterprise for more information. +// DisableXpnResource: Disable a service resource (also known as service +// project) associated with +// this host project. // // - project: Project ID for this request. -func (r *ProjectsService) SetCloudArmorTier(project string, projectssetcloudarmortierrequest *ProjectsSetCloudArmorTierRequest) *ProjectsSetCloudArmorTierCall { - c := &ProjectsSetCloudArmorTierCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsService) DisableXpnResource(project string, projectsdisablexpnresourcerequest *ProjectsDisableXpnResourceRequest) *ProjectsDisableXpnResourceCall { + c := &ProjectsDisableXpnResourceCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.projectssetcloudarmortierrequest = projectssetcloudarmortierrequest + c.projectsdisablexpnresourcerequest = projectsdisablexpnresourcerequest return c } @@ -91778,7 +92008,7 @@ func (r *ProjectsService) SetCloudArmorTier(project string, projectssetcloudarmo // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *ProjectsSetCloudArmorTierCall) RequestId(requestId string) *ProjectsSetCloudArmorTierCall { +func (c *ProjectsDisableXpnResourceCall) RequestId(requestId string) *ProjectsDisableXpnResourceCall { c.urlParams_.Set("requestId", requestId) return c } @@ -91786,35 +92016,35 @@ func (c *ProjectsSetCloudArmorTierCall) RequestId(requestId string) *ProjectsSet // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsSetCloudArmorTierCall) Fields(s ...googleapi.Field) *ProjectsSetCloudArmorTierCall { +func (c *ProjectsDisableXpnResourceCall) Fields(s ...googleapi.Field) *ProjectsDisableXpnResourceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsSetCloudArmorTierCall) Context(ctx context.Context) *ProjectsSetCloudArmorTierCall { +func (c *ProjectsDisableXpnResourceCall) Context(ctx context.Context) *ProjectsDisableXpnResourceCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsSetCloudArmorTierCall) Header() http.Header { +func (c *ProjectsDisableXpnResourceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsSetCloudArmorTierCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsDisableXpnResourceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.projectssetcloudarmortierrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.projectsdisablexpnresourcerequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/setCloudArmorTier") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/disableXpnResource") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -91824,16 +92054,16 @@ func (c *ProjectsSetCloudArmorTierCall) doRequest(alt string) (*http.Response, e googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.setCloudArmorTier", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.disableXpnResource", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projects.setCloudArmorTier" call. +// Do executes the "compute.projects.disableXpnResource" call. // 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 *ProjectsSetCloudArmorTierCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsDisableXpnResourceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -91863,28 +92093,24 @@ func (c *ProjectsSetCloudArmorTierCall) Do(opts ...googleapi.CallOption) (*Opera if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.setCloudArmorTier", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.disableXpnResource", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsSetCommonInstanceMetadataCall struct { +type ProjectsEnableXpnHostCall struct { s *Service project string - metadata *Metadata urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// SetCommonInstanceMetadata: Sets metadata common to all instances within the -// specified project using -// the data included in the request. +// EnableXpnHost: Enable this project as a shared VPC host project. // // - project: Project ID for this request. -func (r *ProjectsService) SetCommonInstanceMetadata(project string, metadata *Metadata) *ProjectsSetCommonInstanceMetadataCall { - c := &ProjectsSetCommonInstanceMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsService) EnableXpnHost(project string) *ProjectsEnableXpnHostCall { + c := &ProjectsEnableXpnHostCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.metadata = metadata return c } @@ -91905,7 +92131,7 @@ func (r *ProjectsService) SetCommonInstanceMetadata(project string, metadata *Me // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *ProjectsSetCommonInstanceMetadataCall) RequestId(requestId string) *ProjectsSetCommonInstanceMetadataCall { +func (c *ProjectsEnableXpnHostCall) RequestId(requestId string) *ProjectsEnableXpnHostCall { c.urlParams_.Set("requestId", requestId) return c } @@ -91913,37 +92139,33 @@ func (c *ProjectsSetCommonInstanceMetadataCall) RequestId(requestId string) *Pro // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsSetCommonInstanceMetadataCall) Fields(s ...googleapi.Field) *ProjectsSetCommonInstanceMetadataCall { +func (c *ProjectsEnableXpnHostCall) Fields(s ...googleapi.Field) *ProjectsEnableXpnHostCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsSetCommonInstanceMetadataCall) Context(ctx context.Context) *ProjectsSetCommonInstanceMetadataCall { +func (c *ProjectsEnableXpnHostCall) Context(ctx context.Context) *ProjectsEnableXpnHostCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsSetCommonInstanceMetadataCall) Header() http.Header { +func (c *ProjectsEnableXpnHostCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsSetCommonInstanceMetadataCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.metadata) - if err != nil { - return nil, err - } +func (c *ProjectsEnableXpnHostCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/setCommonInstanceMetadata") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/enableXpnHost") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("POST", urls, nil) if err != nil { return nil, err } @@ -91951,16 +92173,16 @@ func (c *ProjectsSetCommonInstanceMetadataCall) doRequest(alt string) (*http.Res googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.setCommonInstanceMetadata", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.enableXpnHost", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projects.setCommonInstanceMetadata" call. +// Do executes the "compute.projects.enableXpnHost" call. // 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 *ProjectsSetCommonInstanceMetadataCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsEnableXpnHostCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -91990,30 +92212,29 @@ func (c *ProjectsSetCommonInstanceMetadataCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.setCommonInstanceMetadata", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.enableXpnHost", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsSetDefaultNetworkTierCall struct { - s *Service - project string - projectssetdefaultnetworktierrequest *ProjectsSetDefaultNetworkTierRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsEnableXpnResourceCall struct { + s *Service + project string + projectsenablexpnresourcerequest *ProjectsEnableXpnResourceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetDefaultNetworkTier: Sets the default network tier of the project. The -// default network tier is -// used when an address/forwardingRule/instance is created without -// specifying -// the network tier field. +// EnableXpnResource: Enable service resource (a.k.a service project) for a +// host project, so that +// subnets in the host project can be used by instances in the service +// project. // // - project: Project ID for this request. -func (r *ProjectsService) SetDefaultNetworkTier(project string, projectssetdefaultnetworktierrequest *ProjectsSetDefaultNetworkTierRequest) *ProjectsSetDefaultNetworkTierCall { - c := &ProjectsSetDefaultNetworkTierCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsService) EnableXpnResource(project string, projectsenablexpnresourcerequest *ProjectsEnableXpnResourceRequest) *ProjectsEnableXpnResourceCall { + c := &ProjectsEnableXpnResourceCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.projectssetdefaultnetworktierrequest = projectssetdefaultnetworktierrequest + c.projectsenablexpnresourcerequest = projectsenablexpnresourcerequest return c } @@ -92034,7 +92255,7 @@ func (r *ProjectsService) SetDefaultNetworkTier(project string, projectssetdefau // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *ProjectsSetDefaultNetworkTierCall) RequestId(requestId string) *ProjectsSetDefaultNetworkTierCall { +func (c *ProjectsEnableXpnResourceCall) RequestId(requestId string) *ProjectsEnableXpnResourceCall { c.urlParams_.Set("requestId", requestId) return c } @@ -92042,35 +92263,35 @@ func (c *ProjectsSetDefaultNetworkTierCall) RequestId(requestId string) *Project // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsSetDefaultNetworkTierCall) Fields(s ...googleapi.Field) *ProjectsSetDefaultNetworkTierCall { +func (c *ProjectsEnableXpnResourceCall) Fields(s ...googleapi.Field) *ProjectsEnableXpnResourceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsSetDefaultNetworkTierCall) Context(ctx context.Context) *ProjectsSetDefaultNetworkTierCall { +func (c *ProjectsEnableXpnResourceCall) Context(ctx context.Context) *ProjectsEnableXpnResourceCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsSetDefaultNetworkTierCall) Header() http.Header { +func (c *ProjectsEnableXpnResourceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsSetDefaultNetworkTierCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsEnableXpnResourceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.projectssetdefaultnetworktierrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.projectsenablexpnresourcerequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/setDefaultNetworkTier") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/enableXpnResource") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -92080,16 +92301,16 @@ func (c *ProjectsSetDefaultNetworkTierCall) doRequest(alt string) (*http.Respons googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.setDefaultNetworkTier", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.enableXpnResource", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projects.setDefaultNetworkTier" call. +// Do executes the "compute.projects.enableXpnResource" call. // 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 *ProjectsSetDefaultNetworkTierCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsEnableXpnResourceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -92119,88 +92340,81 @@ func (c *ProjectsSetDefaultNetworkTierCall) Do(opts ...googleapi.CallOption) (*O if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.setDefaultNetworkTier", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.enableXpnResource", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsSetDefaultServiceAccountCall struct { - s *Service - project string - projectssetdefaultserviceaccountrequest *ProjectsSetDefaultServiceAccountRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsGetCall struct { + s *Service + project string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// SetDefaultServiceAccount: Sets the default service account of the project. -// The default service -// account is used when a VM instance is created with the service account -// email address set to "default". +// Get: Returns the specified Project resource. +// +// To decrease latency for this method, you can optionally omit any +// unneeded +// information from the response by using a field mask. This practice +// is +// especially recommended for unused quota information (the `quotas` field). +// To exclude one or more fields, set your request's `fields` query +// parameter +// to only include the fields you need. For example, to only include the +// `id` +// and `selfLink` fields, add the query parameter `?fields=id,selfLink` to +// your request. // // - project: Project ID for this request. -func (r *ProjectsService) SetDefaultServiceAccount(project string, projectssetdefaultserviceaccountrequest *ProjectsSetDefaultServiceAccountRequest) *ProjectsSetDefaultServiceAccountCall { - c := &ProjectsSetDefaultServiceAccountCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsService) Get(project string) *ProjectsGetCall { + c := &ProjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.projectssetdefaultserviceaccountrequest = projectssetdefaultserviceaccountrequest - return c -} - -// RequestId sets the optional parameter "requestId": 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). -func (c *ProjectsSetDefaultServiceAccountCall) RequestId(requestId string) *ProjectsSetDefaultServiceAccountCall { - c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsSetDefaultServiceAccountCall) Fields(s ...googleapi.Field) *ProjectsSetDefaultServiceAccountCall { +func (c *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsSetDefaultServiceAccountCall) Context(ctx context.Context) *ProjectsSetDefaultServiceAccountCall { +func (c *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsSetDefaultServiceAccountCall) Header() http.Header { +func (c *ProjectsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsSetDefaultServiceAccountCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.projectssetdefaultserviceaccountrequest) - if err != nil { - return nil, err +func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/setDefaultServiceAccount") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -92208,16 +92422,16 @@ func (c *ProjectsSetDefaultServiceAccountCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.setDefaultServiceAccount", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projects.setDefaultServiceAccount" call. +// Do executes the "compute.projects.get" call. // 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 +// *Project.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 *ProjectsSetDefaultServiceAccountCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -92236,7 +92450,7 @@ func (c *ProjectsSetDefaultServiceAccountCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &Project{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -92247,90 +92461,71 @@ func (c *ProjectsSetDefaultServiceAccountCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.setDefaultServiceAccount", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsSetManagedProtectionTierCall struct { - s *Service - project string - projectssetmanagedprotectiontierrequest *ProjectsSetManagedProtectionTierRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsGetXpnHostCall struct { + s *Service + project string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// SetManagedProtectionTier: Sets the Cloud Armor Managed Protection (CAMP) -// tier of the project. To set -// PLUS or above the billing account of the project must be subscribed -// to -// Managed Protection Plus. See Subscribing -// to Managed Protection Plus for more information. +// GetXpnHost: Gets the shared VPC host project that this project links to. May +// be empty +// if no link exists. // // - project: Project ID for this request. -func (r *ProjectsService) SetManagedProtectionTier(project string, projectssetmanagedprotectiontierrequest *ProjectsSetManagedProtectionTierRequest) *ProjectsSetManagedProtectionTierCall { - c := &ProjectsSetManagedProtectionTierCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsService) GetXpnHost(project string) *ProjectsGetXpnHostCall { + c := &ProjectsGetXpnHostCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.projectssetmanagedprotectiontierrequest = projectssetmanagedprotectiontierrequest - return c -} - -// RequestId sets the optional parameter "requestId": 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). -func (c *ProjectsSetManagedProtectionTierCall) RequestId(requestId string) *ProjectsSetManagedProtectionTierCall { - c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsSetManagedProtectionTierCall) Fields(s ...googleapi.Field) *ProjectsSetManagedProtectionTierCall { +func (c *ProjectsGetXpnHostCall) Fields(s ...googleapi.Field) *ProjectsGetXpnHostCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsGetXpnHostCall) IfNoneMatch(entityTag string) *ProjectsGetXpnHostCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsSetManagedProtectionTierCall) Context(ctx context.Context) *ProjectsSetManagedProtectionTierCall { +func (c *ProjectsGetXpnHostCall) Context(ctx context.Context) *ProjectsGetXpnHostCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsSetManagedProtectionTierCall) Header() http.Header { +func (c *ProjectsGetXpnHostCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsSetManagedProtectionTierCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.projectssetmanagedprotectiontierrequest) - if err != nil { - return nil, err +func (c *ProjectsGetXpnHostCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/setManagedProtectionTier") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/getXpnHost") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -92338,16 +92533,16 @@ func (c *ProjectsSetManagedProtectionTierCall) doRequest(alt string) (*http.Resp googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.setManagedProtectionTier", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.getXpnHost", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projects.setManagedProtectionTier" call. +// Do executes the "compute.projects.getXpnHost" call. // 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 +// *Project.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 *ProjectsSetManagedProtectionTierCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsGetXpnHostCall) Do(opts ...googleapi.CallOption) (*Project, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -92366,7 +92561,7 @@ func (c *ProjectsSetManagedProtectionTierCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &Project{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -92377,89 +92572,199 @@ func (c *ProjectsSetManagedProtectionTierCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.setManagedProtectionTier", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.getXpnHost", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsSetUsageExportBucketCall struct { - s *Service - project string - usageexportlocation *UsageExportLocation - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsGetXpnResourcesCall struct { + s *Service + project string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// SetUsageExportBucket: Enables the usage export feature and sets theusage -// export bucket -// where reports are stored. If you provide an empty request body using -// this -// method, the usage export feature will be disabled. +// GetXpnResources: Gets service resources (a.k.a service project) associated +// with this host +// project. // // - project: Project ID for this request. -func (r *ProjectsService) SetUsageExportBucket(project string, usageexportlocation *UsageExportLocation) *ProjectsSetUsageExportBucketCall { - c := &ProjectsSetUsageExportBucketCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsService) GetXpnResources(project string) *ProjectsGetXpnResourcesCall { + c := &ProjectsGetXpnResourcesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.usageexportlocation = usageexportlocation return c } -// RequestId sets the optional parameter "requestId": 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. +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most +// Compute resources support two types of filter expressions: +// expressions that support regular expressions and expressions that follow +// API improvement proposal AIP-160. +// These two types of filter expressions cannot be mixed in one request. +// +// If you want to use AIP-160, your 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 `:*` 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 onresource 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) +// ``` +// +// If you want to use a regular expression, use the `eq` (equal) or `ne` +// (not equal) operator against a single un-parenthesized expression with +// or +// without quotes or against multiple parenthesized expressions. +// Examples: +// +// `fieldname eq unquoted literal` +// `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" +// `(fieldname1 eq literal) (fieldname2 ne "literal")` +// +// The literal value is interpreted as a regular expression using GoogleRE2 +// library syntax. +// The literal value must match the entire field. +// +// For example, to filter for instances that do not end with name +// "instance", +// you would use `name ne .*instance`. +// +// You cannot combine constraints on multiple fields using regular +// expressions. +func (c *ProjectsGetXpnResourcesCall) Filter(filter string) *ProjectsGetXpnResourcesCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": 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`) +func (c *ProjectsGetXpnResourcesCall) MaxResults(maxResults int64) *ProjectsGetXpnResourcesCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": 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. +func (c *ProjectsGetXpnResourcesCall) OrderBy(orderBy string) *ProjectsGetXpnResourcesCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the +// `nextPageToken` returned by a previous list request to get +// the next page of results. +func (c *ProjectsGetXpnResourcesCall) PageToken(pageToken string) *ProjectsGetXpnResourcesCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in +// case +// of failure. The default value is false. // -// The request ID must be -// a valid UUID with the exception that zero UUID is not -// supported -// (00000000-0000-0000-0000-000000000000). -func (c *ProjectsSetUsageExportBucketCall) RequestId(requestId string) *ProjectsSetUsageExportBucketCall { - c.urlParams_.Set("requestId", requestId) +// For example, when partial success behavior is enabled, aggregatedList for +// a +// single zone scope either returns all resources in the zone or no +// resources, +// with an error code. +func (c *ProjectsGetXpnResourcesCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsGetXpnResourcesCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsSetUsageExportBucketCall) Fields(s ...googleapi.Field) *ProjectsSetUsageExportBucketCall { +func (c *ProjectsGetXpnResourcesCall) Fields(s ...googleapi.Field) *ProjectsGetXpnResourcesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsGetXpnResourcesCall) IfNoneMatch(entityTag string) *ProjectsGetXpnResourcesCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsSetUsageExportBucketCall) Context(ctx context.Context) *ProjectsSetUsageExportBucketCall { +func (c *ProjectsGetXpnResourcesCall) Context(ctx context.Context) *ProjectsGetXpnResourcesCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsSetUsageExportBucketCall) Header() http.Header { +func (c *ProjectsGetXpnResourcesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsSetUsageExportBucketCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.usageexportlocation) - if err != nil { - return nil, err +func (c *ProjectsGetXpnResourcesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/setUsageExportBucket") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/getXpnResources") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -92467,16 +92772,17 @@ func (c *ProjectsSetUsageExportBucketCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.setUsageExportBucket", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.getXpnResources", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.projects.setUsageExportBucket" call. +// Do executes the "compute.projects.getXpnResources" call. // 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 *ProjectsSetUsageExportBucketCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *ProjectsGetXpnResources.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 *ProjectsGetXpnResourcesCall) Do(opts ...googleapi.CallOption) (*ProjectsGetXpnResources, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -92495,7 +92801,7 @@ func (c *ProjectsSetUsageExportBucketCall) Do(opts ...googleapi.CallOption) (*Op if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ProjectsGetXpnResources{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -92506,101 +92812,230 @@ func (c *ProjectsSetUsageExportBucketCall) Do(opts ...googleapi.CallOption) (*Op if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.setUsageExportBucket", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.getXpnResources", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PublicAdvertisedPrefixesAnnounceCall struct { - s *Service - project string - publicAdvertisedPrefix string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsGetXpnResourcesCall) Pages(ctx context.Context, f func(*ProjectsGetXpnResources) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// Announce: Announces the specified PublicAdvertisedPrefix +type ProjectsListXpnHostsCall struct { + s *Service + project string + projectslistxpnhostsrequest *ProjectsListXpnHostsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ListXpnHosts: Lists all shared VPC host projects visible to the user in an +// organization. // -// - project: Project ID for this request. -// - publicAdvertisedPrefix: The name of the public advertised prefix. It -// should comply with RFC1035. -func (r *PublicAdvertisedPrefixesService) Announce(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesAnnounceCall { - c := &PublicAdvertisedPrefixesAnnounceCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - project: Project ID for this request. +func (r *ProjectsService) ListXpnHosts(project string, projectslistxpnhostsrequest *ProjectsListXpnHostsRequest) *ProjectsListXpnHostsCall { + c := &ProjectsListXpnHostsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.publicAdvertisedPrefix = publicAdvertisedPrefix + c.projectslistxpnhostsrequest = projectslistxpnhostsrequest return c } -// RequestId sets the optional parameter "requestId": 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. +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most +// Compute resources support two types of filter expressions: +// expressions that support regular expressions and expressions that follow +// API improvement proposal AIP-160. +// These two types of filter expressions cannot be mixed in one request. // -// 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. +// If you want to use AIP-160, your 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 `:`. // -// The request ID must be -// a valid UUID with the exception that zero UUID is not -// supported -// (00000000-0000-0000-0000-000000000000). -func (c *PublicAdvertisedPrefixesAnnounceCall) RequestId(requestId string) *PublicAdvertisedPrefixesAnnounceCall { - c.urlParams_.Set("requestId", requestId) +// For example, if you are filtering Compute Engine instances, you can +// exclude instances named `example-instance` by specifying +// `name != example-instance`. +// +// 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 onresource 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) +// ``` +// +// If you want to use a regular expression, use the `eq` (equal) or `ne` +// (not equal) operator against a single un-parenthesized expression with +// or +// without quotes or against multiple parenthesized expressions. +// Examples: +// +// `fieldname eq unquoted literal` +// `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" +// `(fieldname1 eq literal) (fieldname2 ne "literal")` +// +// The literal value is interpreted as a regular expression using GoogleRE2 +// library syntax. +// The literal value must match the entire field. +// +// For example, to filter for instances that do not end with name +// "instance", +// you would use `name ne .*instance`. +// +// You cannot combine constraints on multiple fields using regular +// expressions. +func (c *ProjectsListXpnHostsCall) Filter(filter string) *ProjectsListXpnHostsCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": 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`) +func (c *ProjectsListXpnHostsCall) MaxResults(maxResults int64) *ProjectsListXpnHostsCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": 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. +func (c *ProjectsListXpnHostsCall) OrderBy(orderBy string) *ProjectsListXpnHostsCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the +// `nextPageToken` returned by a previous list request to get +// the next page of results. +func (c *ProjectsListXpnHostsCall) PageToken(pageToken string) *ProjectsListXpnHostsCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in +// case +// of failure. The default value is false. +// +// For example, when partial success behavior is enabled, aggregatedList for +// a +// single zone scope either returns all resources in the zone or no +// resources, +// with an error code. +func (c *ProjectsListXpnHostsCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsListXpnHostsCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PublicAdvertisedPrefixesAnnounceCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesAnnounceCall { +func (c *ProjectsListXpnHostsCall) Fields(s ...googleapi.Field) *ProjectsListXpnHostsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PublicAdvertisedPrefixesAnnounceCall) Context(ctx context.Context) *PublicAdvertisedPrefixesAnnounceCall { +func (c *ProjectsListXpnHostsCall) Context(ctx context.Context) *ProjectsListXpnHostsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PublicAdvertisedPrefixesAnnounceCall) Header() http.Header { +func (c *ProjectsListXpnHostsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PublicAdvertisedPrefixesAnnounceCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsListXpnHostsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.projectslistxpnhostsrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/listXpnHosts") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "publicAdvertisedPrefix": c.publicAdvertisedPrefix, + "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.announce", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.listXpnHosts", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.publicAdvertisedPrefixes.announce" call. +// Do executes the "compute.projects.listXpnHosts" call. // 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 +// *XpnHostList.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 *PublicAdvertisedPrefixesAnnounceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsListXpnHostsCall) Do(opts ...googleapi.CallOption) (*XpnHostList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -92619,7 +93054,7 @@ func (c *PublicAdvertisedPrefixesAnnounceCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &XpnHostList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -92630,28 +93065,65 @@ func (c *PublicAdvertisedPrefixesAnnounceCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.announce", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.listXpnHosts", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PublicAdvertisedPrefixesDeleteCall struct { - s *Service - project string - publicAdvertisedPrefix string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsListXpnHostsCall) Pages(ctx context.Context, f func(*XpnHostList) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// Delete: Deletes the specified PublicAdvertisedPrefix +type ProjectsMoveDiskCall struct { + s *Service + project string + diskmoverequest *DiskMoveRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// MoveDisk: Moves a persistent disk from one zone to another. +// *Note*: The moveDisk API will be deprecated on September 29, 2026. // -// - project: Project ID for this request. -// - publicAdvertisedPrefix: Name of the PublicAdvertisedPrefix resource to -// delete. -func (r *PublicAdvertisedPrefixesService) Delete(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesDeleteCall { - c := &PublicAdvertisedPrefixesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Starting September 29, 2025, you can't use the moveDisk API on new +// projects. To move a disk to a different region or zone, follow the steps +// in +// Change the location of a +// disk +// (https://cloud.google.com/compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd). +// +// Projects that already use the moveDisk API can continue usage +// until +// September 29, 2026. +// +// Starting November 1, 2025, API responses will include a warning message +// in +// the response body about the upcoming deprecation. You can skip the +// message +// to continue using the service without interruption. +// +// - project: Project ID for this request. +func (r *ProjectsService) MoveDisk(project string, diskmoverequest *DiskMoveRequest) *ProjectsMoveDiskCall { + c := &ProjectsMoveDiskCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.publicAdvertisedPrefix = publicAdvertisedPrefix + c.diskmoverequest = diskmoverequest return c } @@ -92672,7 +93144,7 @@ func (r *PublicAdvertisedPrefixesService) Delete(project string, publicAdvertise // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *PublicAdvertisedPrefixesDeleteCall) RequestId(requestId string) *PublicAdvertisedPrefixesDeleteCall { +func (c *ProjectsMoveDiskCall) RequestId(requestId string) *ProjectsMoveDiskCall { c.urlParams_.Set("requestId", requestId) return c } @@ -92680,51 +93152,54 @@ func (c *PublicAdvertisedPrefixesDeleteCall) RequestId(requestId string) *Public // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PublicAdvertisedPrefixesDeleteCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesDeleteCall { +func (c *ProjectsMoveDiskCall) Fields(s ...googleapi.Field) *ProjectsMoveDiskCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PublicAdvertisedPrefixesDeleteCall) Context(ctx context.Context) *PublicAdvertisedPrefixesDeleteCall { +func (c *ProjectsMoveDiskCall) Context(ctx context.Context) *ProjectsMoveDiskCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PublicAdvertisedPrefixesDeleteCall) Header() http.Header { +func (c *ProjectsMoveDiskCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PublicAdvertisedPrefixesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsMoveDiskCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.diskmoverequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/moveDisk") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "publicAdvertisedPrefix": c.publicAdvertisedPrefix, + "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.moveDisk", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.publicAdvertisedPrefixes.delete" call. +// Do executes the "compute.projects.moveDisk" call. // 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 *PublicAdvertisedPrefixesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsMoveDiskCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -92754,92 +93229,113 @@ func (c *PublicAdvertisedPrefixesDeleteCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.moveDisk", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PublicAdvertisedPrefixesGetCall struct { - s *Service - project string - publicAdvertisedPrefix string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsMoveInstanceCall struct { + s *Service + project string + instancemoverequest *InstanceMoveRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Returns the specified PublicAdvertisedPrefix resource. +// MoveInstance: Moves an instance and its attached persistent disks from one +// zone to +// another. +// *Note*: Moving VMs or disks by using this method might // -// - project: Project ID for this request. -// - publicAdvertisedPrefix: Name of the PublicAdvertisedPrefix resource to -// return. -func (r *PublicAdvertisedPrefixesService) Get(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesGetCall { - c := &PublicAdvertisedPrefixesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// cause unexpected behavior. For more information, see the known +// issue +// +// (/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_mov +// einstance_api_or_the_causes_unexpected_behavior). +// [Deprecated] This method is deprecated. See moving instance across +// zones (/compute/docs/instances/moving-instance-across-zones) instead. +// +// - project: Project ID for this request. +func (r *ProjectsService) MoveInstance(project string, instancemoverequest *InstanceMoveRequest) *ProjectsMoveInstanceCall { + c := &ProjectsMoveInstanceCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.publicAdvertisedPrefix = publicAdvertisedPrefix + c.instancemoverequest = instancemoverequest + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *ProjectsMoveInstanceCall) RequestId(requestId string) *ProjectsMoveInstanceCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PublicAdvertisedPrefixesGetCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesGetCall { +func (c *ProjectsMoveInstanceCall) Fields(s ...googleapi.Field) *ProjectsMoveInstanceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *PublicAdvertisedPrefixesGetCall) IfNoneMatch(entityTag string) *PublicAdvertisedPrefixesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *PublicAdvertisedPrefixesGetCall) Context(ctx context.Context) *PublicAdvertisedPrefixesGetCall { +func (c *ProjectsMoveInstanceCall) Context(ctx context.Context) *ProjectsMoveInstanceCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PublicAdvertisedPrefixesGetCall) Header() http.Header { +func (c *ProjectsMoveInstanceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PublicAdvertisedPrefixesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsMoveInstanceCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.instancemoverequest) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/moveInstance") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "publicAdvertisedPrefix": c.publicAdvertisedPrefix, + "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.moveInstance", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.publicAdvertisedPrefixes.get" call. +// Do executes the "compute.projects.moveInstance" call. // Any non-2xx status code is an error. Response headers are in either -// *PublicAdvertisedPrefix.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 *PublicAdvertisedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*PublicAdvertisedPrefix, error) { +// *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 *ProjectsMoveInstanceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -92858,7 +93354,7 @@ func (c *PublicAdvertisedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*Pub if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &PublicAdvertisedPrefix{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -92869,27 +93365,30 @@ func (c *PublicAdvertisedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*Pub if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.moveInstance", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PublicAdvertisedPrefixesInsertCall struct { - s *Service - project string - publicadvertisedprefix *PublicAdvertisedPrefix - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsSetCloudArmorTierCall struct { + s *Service + project string + projectssetcloudarmortierrequest *ProjectsSetCloudArmorTierRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Insert: Creates a PublicAdvertisedPrefix in the specified project -// using the parameters that are included in the request. +// SetCloudArmorTier: Sets the Cloud Armor tier of the project. To set +// ENTERPRISE or above the +// billing account of the project must be subscribed to Cloud Armor +// Enterprise. See Subscribing +// to Cloud Armor Enterprise for more information. // // - project: Project ID for this request. -func (r *PublicAdvertisedPrefixesService) Insert(project string, publicadvertisedprefix *PublicAdvertisedPrefix) *PublicAdvertisedPrefixesInsertCall { - c := &PublicAdvertisedPrefixesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsService) SetCloudArmorTier(project string, projectssetcloudarmortierrequest *ProjectsSetCloudArmorTierRequest) *ProjectsSetCloudArmorTierCall { + c := &ProjectsSetCloudArmorTierCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.publicadvertisedprefix = publicadvertisedprefix + c.projectssetcloudarmortierrequest = projectssetcloudarmortierrequest return c } @@ -92910,7 +93409,7 @@ func (r *PublicAdvertisedPrefixesService) Insert(project string, publicadvertise // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *PublicAdvertisedPrefixesInsertCall) RequestId(requestId string) *PublicAdvertisedPrefixesInsertCall { +func (c *ProjectsSetCloudArmorTierCall) RequestId(requestId string) *ProjectsSetCloudArmorTierCall { c.urlParams_.Set("requestId", requestId) return c } @@ -92918,35 +93417,35 @@ func (c *PublicAdvertisedPrefixesInsertCall) RequestId(requestId string) *Public // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PublicAdvertisedPrefixesInsertCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesInsertCall { +func (c *ProjectsSetCloudArmorTierCall) Fields(s ...googleapi.Field) *ProjectsSetCloudArmorTierCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PublicAdvertisedPrefixesInsertCall) Context(ctx context.Context) *PublicAdvertisedPrefixesInsertCall { +func (c *ProjectsSetCloudArmorTierCall) Context(ctx context.Context) *ProjectsSetCloudArmorTierCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PublicAdvertisedPrefixesInsertCall) Header() http.Header { +func (c *ProjectsSetCloudArmorTierCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PublicAdvertisedPrefixesInsertCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsSetCloudArmorTierCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.publicadvertisedprefix) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.projectssetcloudarmortierrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/publicAdvertisedPrefixes") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/setCloudArmorTier") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -92956,16 +93455,16 @@ func (c *PublicAdvertisedPrefixesInsertCall) doRequest(alt string) (*http.Respon googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.insert", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.setCloudArmorTier", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.publicAdvertisedPrefixes.insert" call. +// Do executes the "compute.projects.setCloudArmorTier" call. // 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 *PublicAdvertisedPrefixesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsSetCloudArmorTierCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -92995,197 +93494,87 @@ func (c *PublicAdvertisedPrefixesInsertCall) Do(opts ...googleapi.CallOption) (* if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.insert", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.setCloudArmorTier", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PublicAdvertisedPrefixesListCall struct { - s *Service - project string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsSetCommonInstanceMetadataCall struct { + s *Service + project string + metadata *Metadata + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists the PublicAdvertisedPrefixes for a project. +// SetCommonInstanceMetadata: Sets metadata common to all instances within the +// specified project using +// the data included in the request. // // - project: Project ID for this request. -func (r *PublicAdvertisedPrefixesService) List(project string) *PublicAdvertisedPrefixesListCall { - c := &PublicAdvertisedPrefixesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsService) SetCommonInstanceMetadata(project string, metadata *Metadata) *ProjectsSetCommonInstanceMetadataCall { + c := &ProjectsSetCommonInstanceMetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project + c.metadata = metadata return c } -// Filter sets the optional parameter "filter": A filter expression that -// filters resources listed in the response. Most -// Compute resources support two types of filter expressions: -// expressions that support regular expressions and expressions that follow -// API improvement proposal AIP-160. -// These two types of filter expressions cannot be mixed in one request. -// -// If you want to use AIP-160, your 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 `:*` 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 onresource 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) -// ``` -// -// If you want to use a regular expression, use the `eq` (equal) or `ne` -// (not equal) operator against a single un-parenthesized expression with -// or -// without quotes or against multiple parenthesized expressions. -// Examples: -// -// `fieldname eq unquoted literal` -// `fieldname eq 'single quoted literal'` -// `fieldname eq "double quoted literal" -// `(fieldname1 eq literal) (fieldname2 ne "literal")` -// -// The literal value is interpreted as a regular expression using GoogleRE2 -// library syntax. -// The literal value must match the entire field. -// -// For example, to filter for instances that do not end with name -// "instance", -// you would use `name ne .*instance`. -// -// You cannot combine constraints on multiple fields using regular -// expressions. -func (c *PublicAdvertisedPrefixesListCall) Filter(filter string) *PublicAdvertisedPrefixesListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// MaxResults sets the optional parameter "maxResults": 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`) -func (c *PublicAdvertisedPrefixesListCall) MaxResults(maxResults int64) *PublicAdvertisedPrefixesListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// OrderBy sets the optional parameter "orderBy": 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. +// RequestId sets the optional parameter "requestId": 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. // -// Currently, only sorting by `name` or -// `creationTimestamp desc` is supported. -func (c *PublicAdvertisedPrefixesListCall) OrderBy(orderBy string) *PublicAdvertisedPrefixesListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageToken sets the optional parameter "pageToken": Specifies a page token to -// use. Set `pageToken` to the -// `nextPageToken` returned by a previous list request to get -// the next page of results. -func (c *PublicAdvertisedPrefixesListCall) PageToken(pageToken string) *PublicAdvertisedPrefixesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": -// Opt-in for partial success behavior which provides partial results in -// case -// of failure. The default value is false. +// 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. // -// For example, when partial success behavior is enabled, aggregatedList for -// a -// single zone scope either returns all resources in the zone or no -// resources, -// with an error code. -func (c *PublicAdvertisedPrefixesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PublicAdvertisedPrefixesListCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) +// The request ID must be +// a valid UUID with the exception that zero UUID is not +// supported +// (00000000-0000-0000-0000-000000000000). +func (c *ProjectsSetCommonInstanceMetadataCall) RequestId(requestId string) *ProjectsSetCommonInstanceMetadataCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PublicAdvertisedPrefixesListCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesListCall { +func (c *ProjectsSetCommonInstanceMetadataCall) Fields(s ...googleapi.Field) *ProjectsSetCommonInstanceMetadataCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *PublicAdvertisedPrefixesListCall) IfNoneMatch(entityTag string) *PublicAdvertisedPrefixesListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *PublicAdvertisedPrefixesListCall) Context(ctx context.Context) *PublicAdvertisedPrefixesListCall { +func (c *ProjectsSetCommonInstanceMetadataCall) Context(ctx context.Context) *ProjectsSetCommonInstanceMetadataCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PublicAdvertisedPrefixesListCall) Header() http.Header { +func (c *ProjectsSetCommonInstanceMetadataCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PublicAdvertisedPrefixesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsSetCommonInstanceMetadataCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.metadata) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/publicAdvertisedPrefixes") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/setCommonInstanceMetadata") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -93193,17 +93582,16 @@ func (c *PublicAdvertisedPrefixesListCall) doRequest(alt string) (*http.Response googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.setCommonInstanceMetadata", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.publicAdvertisedPrefixes.list" call. +// Do executes the "compute.projects.setCommonInstanceMetadata" call. // Any non-2xx status code is an error. Response headers are in either -// *PublicAdvertisedPrefixList.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 *PublicAdvertisedPrefixesListCall) Do(opts ...googleapi.CallOption) (*PublicAdvertisedPrefixList, error) { +// *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 *ProjectsSetCommonInstanceMetadataCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -93222,7 +93610,7 @@ func (c *PublicAdvertisedPrefixesListCall) Do(opts ...googleapi.CallOption) (*Pu if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &PublicAdvertisedPrefixList{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -93233,55 +93621,30 @@ func (c *PublicAdvertisedPrefixesListCall) Do(opts ...googleapi.CallOption) (*Pu if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.setCommonInstanceMetadata", "response", internallog.HTTPResponse(res, b)) return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *PublicAdvertisedPrefixesListCall) Pages(ctx context.Context, f func(*PublicAdvertisedPrefixList) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type PublicAdvertisedPrefixesPatchCall struct { - s *Service - project string - publicAdvertisedPrefix string - publicadvertisedprefix *PublicAdvertisedPrefix - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsSetDefaultNetworkTierCall struct { + s *Service + project string + projectssetdefaultnetworktierrequest *ProjectsSetDefaultNetworkTierRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Patches the specified Router resource with the data included in -// the -// request. This method supportsPATCH -// semantics and usesJSON merge -// patch format and processing rules. +// SetDefaultNetworkTier: Sets the default network tier of the project. The +// default network tier is +// used when an address/forwardingRule/instance is created without +// specifying +// the network tier field. // -// - project: Project ID for this request. -// - publicAdvertisedPrefix: Name of the PublicAdvertisedPrefix resource to -// patch. -func (r *PublicAdvertisedPrefixesService) Patch(project string, publicAdvertisedPrefix string, publicadvertisedprefix *PublicAdvertisedPrefix) *PublicAdvertisedPrefixesPatchCall { - c := &PublicAdvertisedPrefixesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - project: Project ID for this request. +func (r *ProjectsService) SetDefaultNetworkTier(project string, projectssetdefaultnetworktierrequest *ProjectsSetDefaultNetworkTierRequest) *ProjectsSetDefaultNetworkTierCall { + c := &ProjectsSetDefaultNetworkTierCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.publicAdvertisedPrefix = publicAdvertisedPrefix - c.publicadvertisedprefix = publicadvertisedprefix + c.projectssetdefaultnetworktierrequest = projectssetdefaultnetworktierrequest return c } @@ -93302,7 +93665,7 @@ func (r *PublicAdvertisedPrefixesService) Patch(project string, publicAdvertised // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *PublicAdvertisedPrefixesPatchCall) RequestId(requestId string) *PublicAdvertisedPrefixesPatchCall { +func (c *ProjectsSetDefaultNetworkTierCall) RequestId(requestId string) *ProjectsSetDefaultNetworkTierCall { c.urlParams_.Set("requestId", requestId) return c } @@ -93310,55 +93673,54 @@ func (c *PublicAdvertisedPrefixesPatchCall) RequestId(requestId string) *PublicA // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PublicAdvertisedPrefixesPatchCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesPatchCall { +func (c *ProjectsSetDefaultNetworkTierCall) Fields(s ...googleapi.Field) *ProjectsSetDefaultNetworkTierCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PublicAdvertisedPrefixesPatchCall) Context(ctx context.Context) *PublicAdvertisedPrefixesPatchCall { +func (c *ProjectsSetDefaultNetworkTierCall) Context(ctx context.Context) *ProjectsSetDefaultNetworkTierCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PublicAdvertisedPrefixesPatchCall) Header() http.Header { +func (c *ProjectsSetDefaultNetworkTierCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PublicAdvertisedPrefixesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsSetDefaultNetworkTierCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.publicadvertisedprefix) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.projectssetdefaultnetworktierrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/setDefaultNetworkTier") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "publicAdvertisedPrefix": c.publicAdvertisedPrefix, + "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.setDefaultNetworkTier", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.publicAdvertisedPrefixes.patch" call. +// Do executes the "compute.projects.setDefaultNetworkTier" call. // 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 *PublicAdvertisedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsSetDefaultNetworkTierCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -93388,28 +93750,29 @@ func (c *PublicAdvertisedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*O if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.setDefaultNetworkTier", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PublicAdvertisedPrefixesWithdrawCall struct { - s *Service - project string - publicAdvertisedPrefix string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsSetDefaultServiceAccountCall struct { + s *Service + project string + projectssetdefaultserviceaccountrequest *ProjectsSetDefaultServiceAccountRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Withdraw: Withdraws the specified PublicAdvertisedPrefix +// SetDefaultServiceAccount: Sets the default service account of the project. +// The default service +// account is used when a VM instance is created with the service account +// email address set to "default". // -// - project: Project ID for this request. -// - publicAdvertisedPrefix: The name of the public advertised prefix. It -// should comply with RFC1035. -func (r *PublicAdvertisedPrefixesService) Withdraw(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesWithdrawCall { - c := &PublicAdvertisedPrefixesWithdrawCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - project: Project ID for this request. +func (r *ProjectsService) SetDefaultServiceAccount(project string, projectssetdefaultserviceaccountrequest *ProjectsSetDefaultServiceAccountRequest) *ProjectsSetDefaultServiceAccountCall { + c := &ProjectsSetDefaultServiceAccountCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.publicAdvertisedPrefix = publicAdvertisedPrefix + c.projectssetdefaultserviceaccountrequest = projectssetdefaultserviceaccountrequest return c } @@ -93430,7 +93793,7 @@ func (r *PublicAdvertisedPrefixesService) Withdraw(project string, publicAdverti // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *PublicAdvertisedPrefixesWithdrawCall) RequestId(requestId string) *PublicAdvertisedPrefixesWithdrawCall { +func (c *ProjectsSetDefaultServiceAccountCall) RequestId(requestId string) *ProjectsSetDefaultServiceAccountCall { c.urlParams_.Set("requestId", requestId) return c } @@ -93438,51 +93801,54 @@ func (c *PublicAdvertisedPrefixesWithdrawCall) RequestId(requestId string) *Publ // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PublicAdvertisedPrefixesWithdrawCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesWithdrawCall { +func (c *ProjectsSetDefaultServiceAccountCall) Fields(s ...googleapi.Field) *ProjectsSetDefaultServiceAccountCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PublicAdvertisedPrefixesWithdrawCall) Context(ctx context.Context) *PublicAdvertisedPrefixesWithdrawCall { +func (c *ProjectsSetDefaultServiceAccountCall) Context(ctx context.Context) *ProjectsSetDefaultServiceAccountCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PublicAdvertisedPrefixesWithdrawCall) Header() http.Header { +func (c *ProjectsSetDefaultServiceAccountCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PublicAdvertisedPrefixesWithdrawCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsSetDefaultServiceAccountCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.projectssetdefaultserviceaccountrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/setDefaultServiceAccount") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "publicAdvertisedPrefix": c.publicAdvertisedPrefix, + "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.withdraw", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.setDefaultServiceAccount", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.publicAdvertisedPrefixes.withdraw" call. +// Do executes the "compute.projects.setDefaultServiceAccount" call. // 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 *PublicAdvertisedPrefixesWithdrawCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsSetDefaultServiceAccountCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -93512,229 +93878,219 @@ func (c *PublicAdvertisedPrefixesWithdrawCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.withdraw", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.setDefaultServiceAccount", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PublicDelegatedPrefixesAggregatedListCall struct { - s *Service - project string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsSetManagedProtectionTierCall struct { + s *Service + project string + projectssetmanagedprotectiontierrequest *ProjectsSetManagedProtectionTierRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// AggregatedList: Lists all PublicDelegatedPrefix resources owned by the -// specific project -// across all scopes. -// -// To prevent failure, Google recommends that you set -// the -// `returnPartialSuccess` parameter to `true`. +// SetManagedProtectionTier: Sets the Cloud Armor Managed Protection (CAMP) +// tier of the project. To set +// PLUS or above the billing account of the project must be subscribed +// to +// Managed Protection Plus. See Subscribing +// to Managed Protection Plus for more information. // -// - project: Name of the project scoping this request. -func (r *PublicDelegatedPrefixesService) AggregatedList(project string) *PublicDelegatedPrefixesAggregatedListCall { - c := &PublicDelegatedPrefixesAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - project: Project ID for this request. +func (r *ProjectsService) SetManagedProtectionTier(project string, projectssetmanagedprotectiontierrequest *ProjectsSetManagedProtectionTierRequest) *ProjectsSetManagedProtectionTierCall { + c := &ProjectsSetManagedProtectionTierCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project + c.projectssetmanagedprotectiontierrequest = projectssetmanagedprotectiontierrequest return c } -// Filter sets the optional parameter "filter": A filter expression that -// filters resources listed in the response. Most -// Compute resources support two types of filter expressions: -// expressions that support regular expressions and expressions that follow -// API improvement proposal AIP-160. -// These two types of filter expressions cannot be mixed in one request. -// -// If you want to use AIP-160, your 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 `:*` 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 onresource 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) -// ``` -// -// If you want to use a regular expression, use the `eq` (equal) or `ne` -// (not equal) operator against a single un-parenthesized expression with -// or -// without quotes or against multiple parenthesized expressions. -// Examples: -// -// `fieldname eq unquoted literal` -// `fieldname eq 'single quoted literal'` -// `fieldname eq "double quoted literal" -// `(fieldname1 eq literal) (fieldname2 ne "literal")` -// -// The literal value is interpreted as a regular expression using GoogleRE2 -// library syntax. -// The literal value must match the entire field. +// RequestId sets the optional parameter "requestId": 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, to filter for instances that do not end with name -// "instance", -// you would use `name ne .*instance`. +// 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. // -// You cannot combine constraints on multiple fields using regular -// expressions. -func (c *PublicDelegatedPrefixesAggregatedListCall) Filter(filter string) *PublicDelegatedPrefixesAggregatedListCall { - c.urlParams_.Set("filter", filter) +// The request ID must be +// a valid UUID with the exception that zero UUID is not +// supported +// (00000000-0000-0000-0000-000000000000). +func (c *ProjectsSetManagedProtectionTierCall) RequestId(requestId string) *ProjectsSetManagedProtectionTierCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsSetManagedProtectionTierCall) Fields(s ...googleapi.Field) *ProjectsSetManagedProtectionTierCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IncludeAllScopes sets the optional parameter "includeAllScopes": 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. -func (c *PublicDelegatedPrefixesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *PublicDelegatedPrefixesAggregatedListCall { - c.urlParams_.Set("includeAllScopes", fmt.Sprint(includeAllScopes)) +// Context sets the context to be used in this call's Do method. +func (c *ProjectsSetManagedProtectionTierCall) Context(ctx context.Context) *ProjectsSetManagedProtectionTierCall { + c.ctx_ = ctx return c } -// MaxResults sets the optional parameter "maxResults": 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`) -func (c *PublicDelegatedPrefixesAggregatedListCall) MaxResults(maxResults int64) *PublicDelegatedPrefixesAggregatedListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsSetManagedProtectionTierCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ } -// OrderBy sets the optional parameter "orderBy": 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. -func (c *PublicDelegatedPrefixesAggregatedListCall) OrderBy(orderBy string) *PublicDelegatedPrefixesAggregatedListCall { - c.urlParams_.Set("orderBy", orderBy) - return c +func (c *ProjectsSetManagedProtectionTierCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.projectssetmanagedprotectiontierrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/setManagedProtectionTier") + 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{ + "project": c.project, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.setManagedProtectionTier", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// PageToken sets the optional parameter "pageToken": Specifies a page token to -// use. Set `pageToken` to the -// `nextPageToken` returned by a previous list request to get -// the next page of results. -func (c *PublicDelegatedPrefixesAggregatedListCall) PageToken(pageToken string) *PublicDelegatedPrefixesAggregatedListCall { - c.urlParams_.Set("pageToken", pageToken) - return c +// Do executes the "compute.projects.setManagedProtectionTier" call. +// 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 *ProjectsSetManagedProtectionTierCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.setManagedProtectionTier", "response", internallog.HTTPResponse(res, b)) + return ret, nil } -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": -// Opt-in for partial success behavior which provides partial results in -// case -// of failure. The default value is false. +type ProjectsSetUsageExportBucketCall struct { + s *Service + project string + usageexportlocation *UsageExportLocation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetUsageExportBucket: Enables the usage export feature and sets theusage +// export bucket +// where reports are stored. If you provide an empty request body using +// this +// method, the usage export feature will be disabled. // -// For example, when partial success behavior is enabled, aggregatedList for -// a -// single zone scope either returns all resources in the zone or no -// resources, -// with an error code. -func (c *PublicDelegatedPrefixesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PublicDelegatedPrefixesAggregatedListCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) +// - project: Project ID for this request. +func (r *ProjectsService) SetUsageExportBucket(project string, usageexportlocation *UsageExportLocation) *ProjectsSetUsageExportBucketCall { + c := &ProjectsSetUsageExportBucketCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.usageexportlocation = usageexportlocation return c } -// ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The -// Shared VPC service project id or service project number for which -// aggregated list request is invoked for subnetworks list-usable api. -func (c *PublicDelegatedPrefixesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *PublicDelegatedPrefixesAggregatedListCall { - c.urlParams_.Set("serviceProjectNumber", fmt.Sprint(serviceProjectNumber)) +// RequestId sets the optional parameter "requestId": 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). +func (c *ProjectsSetUsageExportBucketCall) RequestId(requestId string) *ProjectsSetUsageExportBucketCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PublicDelegatedPrefixesAggregatedListCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesAggregatedListCall { +func (c *ProjectsSetUsageExportBucketCall) Fields(s ...googleapi.Field) *ProjectsSetUsageExportBucketCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *PublicDelegatedPrefixesAggregatedListCall) IfNoneMatch(entityTag string) *PublicDelegatedPrefixesAggregatedListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *PublicDelegatedPrefixesAggregatedListCall) Context(ctx context.Context) *PublicDelegatedPrefixesAggregatedListCall { +func (c *ProjectsSetUsageExportBucketCall) Context(ctx context.Context) *ProjectsSetUsageExportBucketCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PublicDelegatedPrefixesAggregatedListCall) Header() http.Header { +func (c *ProjectsSetUsageExportBucketCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PublicDelegatedPrefixesAggregatedListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsSetUsageExportBucketCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.usageexportlocation) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/publicDelegatedPrefixes") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/setUsageExportBucket") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -93742,17 +94098,16 @@ func (c *PublicDelegatedPrefixesAggregatedListCall) doRequest(alt string) (*http googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.aggregatedList", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.projects.setUsageExportBucket", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.publicDelegatedPrefixes.aggregatedList" call. +// Do executes the "compute.projects.setUsageExportBucket" call. // Any non-2xx status code is an error. Response headers are in either -// *PublicDelegatedPrefixAggregatedList.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 *PublicDelegatedPrefixesAggregatedListCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefixAggregatedList, error) { +// *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 *ProjectsSetUsageExportBucketCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -93771,7 +94126,7 @@ func (c *PublicDelegatedPrefixesAggregatedListCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &PublicDelegatedPrefixAggregatedList{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -93782,53 +94137,28 @@ func (c *PublicDelegatedPrefixesAggregatedListCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.aggregatedList", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.projects.setUsageExportBucket", "response", internallog.HTTPResponse(res, b)) return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *PublicDelegatedPrefixesAggregatedListCall) Pages(ctx context.Context, f func(*PublicDelegatedPrefixAggregatedList) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type PublicDelegatedPrefixesAnnounceCall struct { - s *Service - project string - region string - publicDelegatedPrefix string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PublicAdvertisedPrefixesAnnounceCall struct { + s *Service + project string + publicAdvertisedPrefix string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Announce: Announces the specified PublicDelegatedPrefix in the given region. +// Announce: Announces the specified PublicAdvertisedPrefix // // - project: Project ID for this request. -// - publicDelegatedPrefix: The name of the public delegated prefix. It should -// comply with RFC1035. -// - region: The name of theregion where -// the public delegated prefix is located. It should comply with RFC1035. -func (r *PublicDelegatedPrefixesService) Announce(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesAnnounceCall { - c := &PublicDelegatedPrefixesAnnounceCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - publicAdvertisedPrefix: The name of the public advertised prefix. It +// should comply with RFC1035. +func (r *PublicAdvertisedPrefixesService) Announce(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesAnnounceCall { + c := &PublicAdvertisedPrefixesAnnounceCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region - c.publicDelegatedPrefix = publicDelegatedPrefix + c.publicAdvertisedPrefix = publicAdvertisedPrefix return c } @@ -93849,7 +94179,7 @@ func (r *PublicDelegatedPrefixesService) Announce(project string, region string, // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *PublicDelegatedPrefixesAnnounceCall) RequestId(requestId string) *PublicDelegatedPrefixesAnnounceCall { +func (c *PublicAdvertisedPrefixesAnnounceCall) RequestId(requestId string) *PublicAdvertisedPrefixesAnnounceCall { c.urlParams_.Set("requestId", requestId) return c } @@ -93857,31 +94187,31 @@ func (c *PublicDelegatedPrefixesAnnounceCall) RequestId(requestId string) *Publi // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PublicDelegatedPrefixesAnnounceCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesAnnounceCall { +func (c *PublicAdvertisedPrefixesAnnounceCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesAnnounceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PublicDelegatedPrefixesAnnounceCall) Context(ctx context.Context) *PublicDelegatedPrefixesAnnounceCall { +func (c *PublicAdvertisedPrefixesAnnounceCall) Context(ctx context.Context) *PublicAdvertisedPrefixesAnnounceCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PublicDelegatedPrefixesAnnounceCall) Header() http.Header { +func (c *PublicAdvertisedPrefixesAnnounceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PublicDelegatedPrefixesAnnounceCall) doRequest(alt string) (*http.Response, error) { +func (c *PublicAdvertisedPrefixesAnnounceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, nil) if err != nil { @@ -93889,20 +94219,19 @@ func (c *PublicDelegatedPrefixesAnnounceCall) doRequest(alt string) (*http.Respo } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "publicDelegatedPrefix": c.publicDelegatedPrefix, + "project": c.project, + "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.announce", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.announce", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.publicDelegatedPrefixes.announce" call. +// Do executes the "compute.publicAdvertisedPrefixes.announce" call. // 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 *PublicDelegatedPrefixesAnnounceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *PublicAdvertisedPrefixesAnnounceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -93932,31 +94261,28 @@ func (c *PublicDelegatedPrefixesAnnounceCall) Do(opts ...googleapi.CallOption) ( if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.announce", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.announce", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PublicDelegatedPrefixesDeleteCall struct { - s *Service - project string - region string - publicDelegatedPrefix string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PublicAdvertisedPrefixesDeleteCall struct { + s *Service + project string + publicAdvertisedPrefix string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes the specified PublicDelegatedPrefix in the given region. +// Delete: Deletes the specified PublicAdvertisedPrefix // // - project: Project ID for this request. -// - publicDelegatedPrefix: Name of the PublicDelegatedPrefix resource to +// - publicAdvertisedPrefix: Name of the PublicAdvertisedPrefix resource to // delete. -// - region: Name of the region of this request. -func (r *PublicDelegatedPrefixesService) Delete(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesDeleteCall { - c := &PublicDelegatedPrefixesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *PublicAdvertisedPrefixesService) Delete(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesDeleteCall { + c := &PublicAdvertisedPrefixesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region - c.publicDelegatedPrefix = publicDelegatedPrefix + c.publicAdvertisedPrefix = publicAdvertisedPrefix return c } @@ -93977,7 +94303,7 @@ func (r *PublicDelegatedPrefixesService) Delete(project string, region string, p // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *PublicDelegatedPrefixesDeleteCall) RequestId(requestId string) *PublicDelegatedPrefixesDeleteCall { +func (c *PublicAdvertisedPrefixesDeleteCall) RequestId(requestId string) *PublicAdvertisedPrefixesDeleteCall { c.urlParams_.Set("requestId", requestId) return c } @@ -93985,31 +94311,31 @@ func (c *PublicDelegatedPrefixesDeleteCall) RequestId(requestId string) *PublicD // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PublicDelegatedPrefixesDeleteCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesDeleteCall { +func (c *PublicAdvertisedPrefixesDeleteCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PublicDelegatedPrefixesDeleteCall) Context(ctx context.Context) *PublicDelegatedPrefixesDeleteCall { +func (c *PublicAdvertisedPrefixesDeleteCall) Context(ctx context.Context) *PublicAdvertisedPrefixesDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PublicDelegatedPrefixesDeleteCall) Header() http.Header { +func (c *PublicAdvertisedPrefixesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PublicDelegatedPrefixesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *PublicAdvertisedPrefixesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, nil) if err != nil { @@ -94017,20 +94343,19 @@ func (c *PublicDelegatedPrefixesDeleteCall) doRequest(alt string) (*http.Respons } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "publicDelegatedPrefix": c.publicDelegatedPrefix, + "project": c.project, + "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.publicDelegatedPrefixes.delete" call. +// Do executes the "compute.publicAdvertisedPrefixes.delete" call. // 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 *PublicDelegatedPrefixesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *PublicAdvertisedPrefixesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94060,40 +94385,36 @@ func (c *PublicDelegatedPrefixesDeleteCall) Do(opts ...googleapi.CallOption) (*O if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PublicDelegatedPrefixesGetCall struct { - s *Service - project string - region string - publicDelegatedPrefix string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type PublicAdvertisedPrefixesGetCall struct { + s *Service + project string + publicAdvertisedPrefix string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Get: Returns the specified PublicDelegatedPrefix resource in the given -// region. +// Get: Returns the specified PublicAdvertisedPrefix resource. // // - project: Project ID for this request. -// - publicDelegatedPrefix: Name of the PublicDelegatedPrefix resource to +// - publicAdvertisedPrefix: Name of the PublicAdvertisedPrefix resource to // return. -// - region: Name of the region of this request. -func (r *PublicDelegatedPrefixesService) Get(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesGetCall { - c := &PublicDelegatedPrefixesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *PublicAdvertisedPrefixesService) Get(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesGetCall { + c := &PublicAdvertisedPrefixesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region - c.publicDelegatedPrefix = publicDelegatedPrefix + c.publicAdvertisedPrefix = publicAdvertisedPrefix return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PublicDelegatedPrefixesGetCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesGetCall { +func (c *PublicAdvertisedPrefixesGetCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -94101,34 +94422,34 @@ func (c *PublicDelegatedPrefixesGetCall) Fields(s ...googleapi.Field) *PublicDel // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *PublicDelegatedPrefixesGetCall) IfNoneMatch(entityTag string) *PublicDelegatedPrefixesGetCall { +func (c *PublicAdvertisedPrefixesGetCall) IfNoneMatch(entityTag string) *PublicAdvertisedPrefixesGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *PublicDelegatedPrefixesGetCall) Context(ctx context.Context) *PublicDelegatedPrefixesGetCall { +func (c *PublicAdvertisedPrefixesGetCall) Context(ctx context.Context) *PublicAdvertisedPrefixesGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PublicDelegatedPrefixesGetCall) Header() http.Header { +func (c *PublicAdvertisedPrefixesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PublicDelegatedPrefixesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *PublicAdvertisedPrefixesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -94136,21 +94457,20 @@ func (c *PublicDelegatedPrefixesGetCall) doRequest(alt string) (*http.Response, } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "publicDelegatedPrefix": c.publicDelegatedPrefix, + "project": c.project, + "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.publicDelegatedPrefixes.get" call. +// Do executes the "compute.publicAdvertisedPrefixes.get" call. // Any non-2xx status code is an error. Response headers are in either -// *PublicDelegatedPrefix.ServerResponse.Header or (if a response was returned +// *PublicAdvertisedPrefix.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 *PublicDelegatedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefix, error) { +func (c *PublicAdvertisedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*PublicAdvertisedPrefix, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94169,7 +94489,7 @@ func (c *PublicDelegatedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*Publ if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &PublicDelegatedPrefix{ + ret := &PublicAdvertisedPrefix{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -94180,31 +94500,27 @@ func (c *PublicDelegatedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*Publ if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PublicDelegatedPrefixesInsertCall struct { - s *Service - project string - region string - publicdelegatedprefix *PublicDelegatedPrefix - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PublicAdvertisedPrefixesInsertCall struct { + s *Service + project string + publicadvertisedprefix *PublicAdvertisedPrefix + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Insert: Creates a PublicDelegatedPrefix in the specified project in the -// given -// region using the parameters that are included in the request. +// Insert: Creates a PublicAdvertisedPrefix in the specified project +// using the parameters that are included in the request. // // - project: Project ID for this request. -// - region: Name of the region of this request. -func (r *PublicDelegatedPrefixesService) Insert(project string, region string, publicdelegatedprefix *PublicDelegatedPrefix) *PublicDelegatedPrefixesInsertCall { - c := &PublicDelegatedPrefixesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *PublicAdvertisedPrefixesService) Insert(project string, publicadvertisedprefix *PublicAdvertisedPrefix) *PublicAdvertisedPrefixesInsertCall { + c := &PublicAdvertisedPrefixesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region - c.publicdelegatedprefix = publicdelegatedprefix + c.publicadvertisedprefix = publicadvertisedprefix return c } @@ -94225,7 +94541,7 @@ func (r *PublicDelegatedPrefixesService) Insert(project string, region string, p // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *PublicDelegatedPrefixesInsertCall) RequestId(requestId string) *PublicDelegatedPrefixesInsertCall { +func (c *PublicAdvertisedPrefixesInsertCall) RequestId(requestId string) *PublicAdvertisedPrefixesInsertCall { c.urlParams_.Set("requestId", requestId) return c } @@ -94233,35 +94549,35 @@ func (c *PublicDelegatedPrefixesInsertCall) RequestId(requestId string) *PublicD // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PublicDelegatedPrefixesInsertCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesInsertCall { +func (c *PublicAdvertisedPrefixesInsertCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PublicDelegatedPrefixesInsertCall) Context(ctx context.Context) *PublicDelegatedPrefixesInsertCall { +func (c *PublicAdvertisedPrefixesInsertCall) Context(ctx context.Context) *PublicAdvertisedPrefixesInsertCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PublicDelegatedPrefixesInsertCall) Header() http.Header { +func (c *PublicAdvertisedPrefixesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PublicDelegatedPrefixesInsertCall) doRequest(alt string) (*http.Response, error) { +func (c *PublicAdvertisedPrefixesInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.publicdelegatedprefix) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.publicadvertisedprefix) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/publicDelegatedPrefixes") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/publicAdvertisedPrefixes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -94270,18 +94586,17 @@ func (c *PublicDelegatedPrefixesInsertCall) doRequest(alt string) (*http.Respons req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "project": c.project, - "region": c.region, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.insert", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.insert", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.publicDelegatedPrefixes.insert" call. +// Do executes the "compute.publicAdvertisedPrefixes.insert" call. // 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 *PublicDelegatedPrefixesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *PublicAdvertisedPrefixesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94311,28 +94626,25 @@ func (c *PublicDelegatedPrefixesInsertCall) Do(opts ...googleapi.CallOption) (*O if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.insert", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.insert", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PublicDelegatedPrefixesListCall struct { +type PublicAdvertisedPrefixesListCall struct { s *Service project string - region string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists the PublicDelegatedPrefixes for a project in the given region. +// List: Lists the PublicAdvertisedPrefixes for a project. // // - project: Project ID for this request. -// - region: Name of the region of this request. -func (r *PublicDelegatedPrefixesService) List(project string, region string) *PublicDelegatedPrefixesListCall { - c := &PublicDelegatedPrefixesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *PublicAdvertisedPrefixesService) List(project string) *PublicAdvertisedPrefixesListCall { + c := &PublicAdvertisedPrefixesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region return c } @@ -94403,7 +94715,7 @@ func (r *PublicDelegatedPrefixesService) List(project string, region string) *Pu // // You cannot combine constraints on multiple fields using regular // expressions. -func (c *PublicDelegatedPrefixesListCall) Filter(filter string) *PublicDelegatedPrefixesListCall { +func (c *PublicAdvertisedPrefixesListCall) Filter(filter string) *PublicAdvertisedPrefixesListCall { c.urlParams_.Set("filter", filter) return c } @@ -94415,7 +94727,7 @@ func (c *PublicDelegatedPrefixesListCall) Filter(filter string) *PublicDelegated // the next page of results in subsequent list requests. Acceptable values // are // `0` to `500`, inclusive. (Default: `500`) -func (c *PublicDelegatedPrefixesListCall) MaxResults(maxResults int64) *PublicDelegatedPrefixesListCall { +func (c *PublicAdvertisedPrefixesListCall) MaxResults(maxResults int64) *PublicAdvertisedPrefixesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } @@ -94435,7 +94747,7 @@ func (c *PublicDelegatedPrefixesListCall) MaxResults(maxResults int64) *PublicDe // // Currently, only sorting by `name` or // `creationTimestamp desc` is supported. -func (c *PublicDelegatedPrefixesListCall) OrderBy(orderBy string) *PublicDelegatedPrefixesListCall { +func (c *PublicAdvertisedPrefixesListCall) OrderBy(orderBy string) *PublicAdvertisedPrefixesListCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -94444,7 +94756,7 @@ func (c *PublicDelegatedPrefixesListCall) OrderBy(orderBy string) *PublicDelegat // use. Set `pageToken` to the // `nextPageToken` returned by a previous list request to get // the next page of results. -func (c *PublicDelegatedPrefixesListCall) PageToken(pageToken string) *PublicDelegatedPrefixesListCall { +func (c *PublicAdvertisedPrefixesListCall) PageToken(pageToken string) *PublicAdvertisedPrefixesListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -94459,7 +94771,7 @@ func (c *PublicDelegatedPrefixesListCall) PageToken(pageToken string) *PublicDel // single zone scope either returns all resources in the zone or no // resources, // with an error code. -func (c *PublicDelegatedPrefixesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PublicDelegatedPrefixesListCall { +func (c *PublicAdvertisedPrefixesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PublicAdvertisedPrefixesListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -94467,7 +94779,7 @@ func (c *PublicDelegatedPrefixesListCall) ReturnPartialSuccess(returnPartialSucc // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PublicDelegatedPrefixesListCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesListCall { +func (c *PublicAdvertisedPrefixesListCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -94475,34 +94787,34 @@ func (c *PublicDelegatedPrefixesListCall) Fields(s ...googleapi.Field) *PublicDe // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *PublicDelegatedPrefixesListCall) IfNoneMatch(entityTag string) *PublicDelegatedPrefixesListCall { +func (c *PublicAdvertisedPrefixesListCall) IfNoneMatch(entityTag string) *PublicAdvertisedPrefixesListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *PublicDelegatedPrefixesListCall) Context(ctx context.Context) *PublicDelegatedPrefixesListCall { +func (c *PublicAdvertisedPrefixesListCall) Context(ctx context.Context) *PublicAdvertisedPrefixesListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PublicDelegatedPrefixesListCall) Header() http.Header { +func (c *PublicAdvertisedPrefixesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PublicDelegatedPrefixesListCall) doRequest(alt string) (*http.Response, error) { +func (c *PublicAdvertisedPrefixesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/publicDelegatedPrefixes") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/publicAdvertisedPrefixes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -94511,19 +94823,18 @@ func (c *PublicDelegatedPrefixesListCall) doRequest(alt string) (*http.Response, req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "project": c.project, - "region": c.region, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.publicDelegatedPrefixes.list" call. +// Do executes the "compute.publicAdvertisedPrefixes.list" call. // Any non-2xx status code is an error. Response headers are in either -// *PublicDelegatedPrefixList.ServerResponse.Header or (if a response was +// *PublicAdvertisedPrefixList.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 *PublicDelegatedPrefixesListCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefixList, error) { +func (c *PublicAdvertisedPrefixesListCall) Do(opts ...googleapi.CallOption) (*PublicAdvertisedPrefixList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94542,7 +94853,7 @@ func (c *PublicDelegatedPrefixesListCall) Do(opts ...googleapi.CallOption) (*Pub if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &PublicDelegatedPrefixList{ + ret := &PublicAdvertisedPrefixList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -94553,14 +94864,14 @@ func (c *PublicDelegatedPrefixesListCall) Do(opts ...googleapi.CallOption) (*Pub if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *PublicDelegatedPrefixesListCall) Pages(ctx context.Context, f func(*PublicDelegatedPrefixList) error) error { +func (c *PublicAdvertisedPrefixesListCall) Pages(ctx context.Context, f func(*PublicAdvertisedPrefixList) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -94577,34 +94888,31 @@ func (c *PublicDelegatedPrefixesListCall) Pages(ctx context.Context, f func(*Pub c.PageToken(x.NextPageToken) } } - -type PublicDelegatedPrefixesPatchCall struct { - s *Service - project string - region string - publicDelegatedPrefix string - publicdelegatedprefix *PublicDelegatedPrefix - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header + +type PublicAdvertisedPrefixesPatchCall struct { + s *Service + project string + publicAdvertisedPrefix string + publicadvertisedprefix *PublicAdvertisedPrefix + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Patches the specified PublicDelegatedPrefix resource with the data -// included -// in the request. This method supportsPATCH +// Patch: Patches the specified Router resource with the data included in +// the +// request. This method supportsPATCH // semantics and usesJSON merge // patch format and processing rules. // // - project: Project ID for this request. -// - publicDelegatedPrefix: Name of the PublicDelegatedPrefix resource to +// - publicAdvertisedPrefix: Name of the PublicAdvertisedPrefix resource to // patch. -// - region: Name of the region for this request. -func (r *PublicDelegatedPrefixesService) Patch(project string, region string, publicDelegatedPrefix string, publicdelegatedprefix *PublicDelegatedPrefix) *PublicDelegatedPrefixesPatchCall { - c := &PublicDelegatedPrefixesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *PublicAdvertisedPrefixesService) Patch(project string, publicAdvertisedPrefix string, publicadvertisedprefix *PublicAdvertisedPrefix) *PublicAdvertisedPrefixesPatchCall { + c := &PublicAdvertisedPrefixesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region - c.publicDelegatedPrefix = publicDelegatedPrefix - c.publicdelegatedprefix = publicdelegatedprefix + c.publicAdvertisedPrefix = publicAdvertisedPrefix + c.publicadvertisedprefix = publicadvertisedprefix return c } @@ -94625,7 +94933,7 @@ func (r *PublicDelegatedPrefixesService) Patch(project string, region string, pu // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *PublicDelegatedPrefixesPatchCall) RequestId(requestId string) *PublicDelegatedPrefixesPatchCall { +func (c *PublicAdvertisedPrefixesPatchCall) RequestId(requestId string) *PublicAdvertisedPrefixesPatchCall { c.urlParams_.Set("requestId", requestId) return c } @@ -94633,35 +94941,35 @@ func (c *PublicDelegatedPrefixesPatchCall) RequestId(requestId string) *PublicDe // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PublicDelegatedPrefixesPatchCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesPatchCall { +func (c *PublicAdvertisedPrefixesPatchCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PublicDelegatedPrefixesPatchCall) Context(ctx context.Context) *PublicDelegatedPrefixesPatchCall { +func (c *PublicAdvertisedPrefixesPatchCall) Context(ctx context.Context) *PublicAdvertisedPrefixesPatchCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PublicDelegatedPrefixesPatchCall) Header() http.Header { +func (c *PublicAdvertisedPrefixesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PublicDelegatedPrefixesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *PublicAdvertisedPrefixesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.publicdelegatedprefix) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.publicadvertisedprefix) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -94669,20 +94977,19 @@ func (c *PublicDelegatedPrefixesPatchCall) doRequest(alt string) (*http.Response } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "publicDelegatedPrefix": c.publicDelegatedPrefix, + "project": c.project, + "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.publicDelegatedPrefixes.patch" call. +// Do executes the "compute.publicAdvertisedPrefixes.patch" call. // 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 *PublicDelegatedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *PublicAdvertisedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94712,32 +95019,28 @@ func (c *PublicDelegatedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*Op if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type PublicDelegatedPrefixesWithdrawCall struct { - s *Service - project string - region string - publicDelegatedPrefix string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PublicAdvertisedPrefixesWithdrawCall struct { + s *Service + project string + publicAdvertisedPrefix string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Withdraw: Withdraws the specified PublicDelegatedPrefix in the given region. +// Withdraw: Withdraws the specified PublicAdvertisedPrefix // // - project: Project ID for this request. -// - publicDelegatedPrefix: The name of the public delegated prefix. It should -// comply with RFC1035. -// - region: The name of theregion where -// the public delegated prefix is located. It should comply with RFC1035. -func (r *PublicDelegatedPrefixesService) Withdraw(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesWithdrawCall { - c := &PublicDelegatedPrefixesWithdrawCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - publicAdvertisedPrefix: The name of the public advertised prefix. It +// should comply with RFC1035. +func (r *PublicAdvertisedPrefixesService) Withdraw(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesWithdrawCall { + c := &PublicAdvertisedPrefixesWithdrawCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region - c.publicDelegatedPrefix = publicDelegatedPrefix + c.publicAdvertisedPrefix = publicAdvertisedPrefix return c } @@ -94758,7 +95061,7 @@ func (r *PublicDelegatedPrefixesService) Withdraw(project string, region string, // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *PublicDelegatedPrefixesWithdrawCall) RequestId(requestId string) *PublicDelegatedPrefixesWithdrawCall { +func (c *PublicAdvertisedPrefixesWithdrawCall) RequestId(requestId string) *PublicAdvertisedPrefixesWithdrawCall { c.urlParams_.Set("requestId", requestId) return c } @@ -94766,31 +95069,31 @@ func (c *PublicDelegatedPrefixesWithdrawCall) RequestId(requestId string) *Publi // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *PublicDelegatedPrefixesWithdrawCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesWithdrawCall { +func (c *PublicAdvertisedPrefixesWithdrawCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesWithdrawCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *PublicDelegatedPrefixesWithdrawCall) Context(ctx context.Context) *PublicDelegatedPrefixesWithdrawCall { +func (c *PublicAdvertisedPrefixesWithdrawCall) Context(ctx context.Context) *PublicAdvertisedPrefixesWithdrawCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *PublicDelegatedPrefixesWithdrawCall) Header() http.Header { +func (c *PublicAdvertisedPrefixesWithdrawCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PublicDelegatedPrefixesWithdrawCall) doRequest(alt string) (*http.Response, error) { +func (c *PublicAdvertisedPrefixesWithdrawCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, nil) if err != nil { @@ -94798,20 +95101,19 @@ func (c *PublicDelegatedPrefixesWithdrawCall) doRequest(alt string) (*http.Respo } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "publicDelegatedPrefix": c.publicDelegatedPrefix, + "project": c.project, + "publicAdvertisedPrefix": c.publicAdvertisedPrefix, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.withdraw", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.withdraw", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.publicDelegatedPrefixes.withdraw" call. +// Do executes the "compute.publicAdvertisedPrefixes.withdraw" call. // 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 *PublicDelegatedPrefixesWithdrawCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *PublicAdvertisedPrefixesWithdrawCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94841,11 +95143,11 @@ func (c *PublicDelegatedPrefixesWithdrawCall) Do(opts ...googleapi.CallOption) ( if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.withdraw", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicAdvertisedPrefixes.withdraw", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type RecoverableSnapshotsAggregatedListCall struct { +type PublicDelegatedPrefixesAggregatedListCall struct { s *Service project string urlParams_ gensupport.URLParams @@ -94854,13 +95156,17 @@ type RecoverableSnapshotsAggregatedListCall struct { header_ http.Header } -// AggregatedList: Retrieves an aggregated list of all of the -// RecoverableSnapshots in your -// project across all regions and global scope. +// AggregatedList: Lists all PublicDelegatedPrefix resources owned by the +// specific project +// across all scopes. // -// - project: Project ID for this request. -func (r *RecoverableSnapshotsService) AggregatedList(project string) *RecoverableSnapshotsAggregatedListCall { - c := &RecoverableSnapshotsAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// To prevent failure, Google recommends that you set +// the +// `returnPartialSuccess` parameter to `true`. +// +// - project: Name of the project scoping this request. +func (r *PublicDelegatedPrefixesService) AggregatedList(project string) *PublicDelegatedPrefixesAggregatedListCall { + c := &PublicDelegatedPrefixesAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project return c } @@ -94932,7 +95238,7 @@ func (r *RecoverableSnapshotsService) AggregatedList(project string) *Recoverabl // // You cannot combine constraints on multiple fields using regular // expressions. -func (c *RecoverableSnapshotsAggregatedListCall) Filter(filter string) *RecoverableSnapshotsAggregatedListCall { +func (c *PublicDelegatedPrefixesAggregatedListCall) Filter(filter string) *PublicDelegatedPrefixesAggregatedListCall { c.urlParams_.Set("filter", filter) return c } @@ -94950,7 +95256,7 @@ func (c *RecoverableSnapshotsAggregatedListCall) Filter(filter string) *Recovera // scopes of the scope types where the resource type is expected to be // found // will be included. -func (c *RecoverableSnapshotsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *RecoverableSnapshotsAggregatedListCall { +func (c *PublicDelegatedPrefixesAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *PublicDelegatedPrefixesAggregatedListCall { c.urlParams_.Set("includeAllScopes", fmt.Sprint(includeAllScopes)) return c } @@ -94962,7 +95268,7 @@ func (c *RecoverableSnapshotsAggregatedListCall) IncludeAllScopes(includeAllScop // the next page of results in subsequent list requests. Acceptable values // are // `0` to `500`, inclusive. (Default: `500`) -func (c *RecoverableSnapshotsAggregatedListCall) MaxResults(maxResults int64) *RecoverableSnapshotsAggregatedListCall { +func (c *PublicDelegatedPrefixesAggregatedListCall) MaxResults(maxResults int64) *PublicDelegatedPrefixesAggregatedListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } @@ -94982,7 +95288,7 @@ func (c *RecoverableSnapshotsAggregatedListCall) MaxResults(maxResults int64) *R // // Currently, only sorting by `name` or // `creationTimestamp desc` is supported. -func (c *RecoverableSnapshotsAggregatedListCall) OrderBy(orderBy string) *RecoverableSnapshotsAggregatedListCall { +func (c *PublicDelegatedPrefixesAggregatedListCall) OrderBy(orderBy string) *PublicDelegatedPrefixesAggregatedListCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -94991,7 +95297,7 @@ func (c *RecoverableSnapshotsAggregatedListCall) OrderBy(orderBy string) *Recove // use. Set `pageToken` to the // `nextPageToken` returned by a previous list request to get // the next page of results. -func (c *RecoverableSnapshotsAggregatedListCall) PageToken(pageToken string) *RecoverableSnapshotsAggregatedListCall { +func (c *PublicDelegatedPrefixesAggregatedListCall) PageToken(pageToken string) *PublicDelegatedPrefixesAggregatedListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -95006,7 +95312,7 @@ func (c *RecoverableSnapshotsAggregatedListCall) PageToken(pageToken string) *Re // single zone scope either returns all resources in the zone or no // resources, // with an error code. -func (c *RecoverableSnapshotsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RecoverableSnapshotsAggregatedListCall { +func (c *PublicDelegatedPrefixesAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PublicDelegatedPrefixesAggregatedListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -95014,7 +95320,7 @@ func (c *RecoverableSnapshotsAggregatedListCall) ReturnPartialSuccess(returnPart // ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The // Shared VPC service project id or service project number for which // aggregated list request is invoked for subnetworks list-usable api. -func (c *RecoverableSnapshotsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *RecoverableSnapshotsAggregatedListCall { +func (c *PublicDelegatedPrefixesAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *PublicDelegatedPrefixesAggregatedListCall { c.urlParams_.Set("serviceProjectNumber", fmt.Sprint(serviceProjectNumber)) return c } @@ -95022,7 +95328,7 @@ func (c *RecoverableSnapshotsAggregatedListCall) ServiceProjectNumber(servicePro // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RecoverableSnapshotsAggregatedListCall) Fields(s ...googleapi.Field) *RecoverableSnapshotsAggregatedListCall { +func (c *PublicDelegatedPrefixesAggregatedListCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesAggregatedListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -95030,34 +95336,34 @@ func (c *RecoverableSnapshotsAggregatedListCall) Fields(s ...googleapi.Field) *R // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *RecoverableSnapshotsAggregatedListCall) IfNoneMatch(entityTag string) *RecoverableSnapshotsAggregatedListCall { +func (c *PublicDelegatedPrefixesAggregatedListCall) IfNoneMatch(entityTag string) *PublicDelegatedPrefixesAggregatedListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *RecoverableSnapshotsAggregatedListCall) Context(ctx context.Context) *RecoverableSnapshotsAggregatedListCall { +func (c *PublicDelegatedPrefixesAggregatedListCall) Context(ctx context.Context) *PublicDelegatedPrefixesAggregatedListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *RecoverableSnapshotsAggregatedListCall) Header() http.Header { +func (c *PublicDelegatedPrefixesAggregatedListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RecoverableSnapshotsAggregatedListCall) doRequest(alt string) (*http.Response, error) { +func (c *PublicDelegatedPrefixesAggregatedListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/recoverableSnapshots") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/publicDelegatedPrefixes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -95067,17 +95373,17 @@ func (c *RecoverableSnapshotsAggregatedListCall) doRequest(alt string) (*http.Re googleapi.Expand(req.URL, map[string]string{ "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.aggregatedList", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.aggregatedList", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.recoverableSnapshots.aggregatedList" call. +// Do executes the "compute.publicDelegatedPrefixes.aggregatedList" call. // Any non-2xx status code is an error. Response headers are in either -// *RecoverableSnapshotAggregatedList.ServerResponse.Header or (if a response +// *PublicDelegatedPrefixAggregatedList.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 *RecoverableSnapshotsAggregatedListCall) Do(opts ...googleapi.CallOption) (*RecoverableSnapshotAggregatedList, error) { +func (c *PublicDelegatedPrefixesAggregatedListCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefixAggregatedList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -95096,7 +95402,7 @@ func (c *RecoverableSnapshotsAggregatedListCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &RecoverableSnapshotAggregatedList{ + ret := &PublicDelegatedPrefixAggregatedList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -95107,14 +95413,14 @@ func (c *RecoverableSnapshotsAggregatedListCall) Do(opts ...googleapi.CallOption if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.aggregatedList", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.aggregatedList", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *RecoverableSnapshotsAggregatedListCall) Pages(ctx context.Context, f func(*RecoverableSnapshotAggregatedList) error) error { +func (c *PublicDelegatedPrefixesAggregatedListCall) Pages(ctx context.Context, f func(*PublicDelegatedPrefixAggregatedList) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -95132,25 +95438,28 @@ func (c *RecoverableSnapshotsAggregatedListCall) Pages(ctx context.Context, f fu } } -type RecoverableSnapshotsDeleteCall struct { - s *Service - project string - recoverableSnapshot string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PublicDelegatedPrefixesAnnounceCall struct { + s *Service + project string + region string + publicDelegatedPrefix string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes the specified RecoverableSnapshot. Deleting a recoverable -// snapshot -// will delete the underlying PD snapshot and is irreversible. +// Announce: Announces the specified PublicDelegatedPrefix in the given region. // -// - project: Project ID for this request. -// - recoverableSnapshot: Name of the recoverable Snapshot resource to delete. -func (r *RecoverableSnapshotsService) Delete(project string, recoverableSnapshot string) *RecoverableSnapshotsDeleteCall { - c := &RecoverableSnapshotsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - project: Project ID for this request. +// - publicDelegatedPrefix: The name of the public delegated prefix. It should +// comply with RFC1035. +// - region: The name of theregion where +// the public delegated prefix is located. It should comply with RFC1035. +func (r *PublicDelegatedPrefixesService) Announce(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesAnnounceCall { + c := &PublicDelegatedPrefixesAnnounceCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.recoverableSnapshot = recoverableSnapshot + c.region = region + c.publicDelegatedPrefix = publicDelegatedPrefix return c } @@ -95171,7 +95480,7 @@ func (r *RecoverableSnapshotsService) Delete(project string, recoverableSnapshot // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *RecoverableSnapshotsDeleteCall) RequestId(requestId string) *RecoverableSnapshotsDeleteCall { +func (c *PublicDelegatedPrefixesAnnounceCall) RequestId(requestId string) *PublicDelegatedPrefixesAnnounceCall { c.urlParams_.Set("requestId", requestId) return c } @@ -95179,31 +95488,159 @@ func (c *RecoverableSnapshotsDeleteCall) RequestId(requestId string) *Recoverabl // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RecoverableSnapshotsDeleteCall) Fields(s ...googleapi.Field) *RecoverableSnapshotsDeleteCall { +func (c *PublicDelegatedPrefixesAnnounceCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesAnnounceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *RecoverableSnapshotsDeleteCall) Context(ctx context.Context) *RecoverableSnapshotsDeleteCall { +func (c *PublicDelegatedPrefixesAnnounceCall) Context(ctx context.Context) *PublicDelegatedPrefixesAnnounceCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *RecoverableSnapshotsDeleteCall) Header() http.Header { +func (c *PublicDelegatedPrefixesAnnounceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RecoverableSnapshotsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *PublicDelegatedPrefixesAnnounceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "publicDelegatedPrefix": c.publicDelegatedPrefix, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.announce", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.publicDelegatedPrefixes.announce" call. +// 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 *PublicDelegatedPrefixesAnnounceCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.announce", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type PublicDelegatedPrefixesDeleteCall struct { + s *Service + project string + region string + publicDelegatedPrefix string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified PublicDelegatedPrefix in the given region. +// +// - project: Project ID for this request. +// - publicDelegatedPrefix: Name of the PublicDelegatedPrefix resource to +// delete. +// - region: Name of the region of this request. +func (r *PublicDelegatedPrefixesService) Delete(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesDeleteCall { + c := &PublicDelegatedPrefixesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.publicDelegatedPrefix = publicDelegatedPrefix + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *PublicDelegatedPrefixesDeleteCall) RequestId(requestId string) *PublicDelegatedPrefixesDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *PublicDelegatedPrefixesDeleteCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *PublicDelegatedPrefixesDeleteCall) Context(ctx context.Context) *PublicDelegatedPrefixesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *PublicDelegatedPrefixesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PublicDelegatedPrefixesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, nil) if err != nil { @@ -95211,19 +95648,20 @@ func (c *RecoverableSnapshotsDeleteCall) doRequest(alt string) (*http.Response, } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "recoverableSnapshot": c.recoverableSnapshot, + "project": c.project, + "region": c.region, + "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.recoverableSnapshots.delete" call. +// Do executes the "compute.publicDelegatedPrefixes.delete" call. // 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 *RecoverableSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *PublicDelegatedPrefixesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -95253,35 +95691,40 @@ func (c *RecoverableSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Oper if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type RecoverableSnapshotsGetCall struct { - s *Service - project string - recoverableSnapshot string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type PublicDelegatedPrefixesGetCall struct { + s *Service + project string + region string + publicDelegatedPrefix string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Get: Returns the specified RecoverableSnapshot resource. +// Get: Returns the specified PublicDelegatedPrefix resource in the given +// region. // -// - project: Project ID for this request. -// - recoverableSnapshot: Name of the Snapshot resource to return. -func (r *RecoverableSnapshotsService) Get(project string, recoverableSnapshot string) *RecoverableSnapshotsGetCall { - c := &RecoverableSnapshotsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - project: Project ID for this request. +// - publicDelegatedPrefix: Name of the PublicDelegatedPrefix resource to +// return. +// - region: Name of the region of this request. +func (r *PublicDelegatedPrefixesService) Get(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesGetCall { + c := &PublicDelegatedPrefixesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.recoverableSnapshot = recoverableSnapshot + c.region = region + c.publicDelegatedPrefix = publicDelegatedPrefix return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RecoverableSnapshotsGetCall) Fields(s ...googleapi.Field) *RecoverableSnapshotsGetCall { +func (c *PublicDelegatedPrefixesGetCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -95289,34 +95732,34 @@ func (c *RecoverableSnapshotsGetCall) Fields(s ...googleapi.Field) *RecoverableS // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *RecoverableSnapshotsGetCall) IfNoneMatch(entityTag string) *RecoverableSnapshotsGetCall { +func (c *PublicDelegatedPrefixesGetCall) IfNoneMatch(entityTag string) *PublicDelegatedPrefixesGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *RecoverableSnapshotsGetCall) Context(ctx context.Context) *RecoverableSnapshotsGetCall { +func (c *PublicDelegatedPrefixesGetCall) Context(ctx context.Context) *PublicDelegatedPrefixesGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *RecoverableSnapshotsGetCall) Header() http.Header { +func (c *PublicDelegatedPrefixesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RecoverableSnapshotsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *PublicDelegatedPrefixesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -95324,20 +95767,21 @@ func (c *RecoverableSnapshotsGetCall) doRequest(alt string) (*http.Response, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "recoverableSnapshot": c.recoverableSnapshot, + "project": c.project, + "region": c.region, + "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.recoverableSnapshots.get" call. +// Do executes the "compute.publicDelegatedPrefixes.get" call. // Any non-2xx status code is an error. Response headers are in either -// *RecoverableSnapshot.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// *PublicDelegatedPrefix.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 *RecoverableSnapshotsGetCall) Do(opts ...googleapi.CallOption) (*RecoverableSnapshot, error) { +func (c *PublicDelegatedPrefixesGetCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefix, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -95356,7 +95800,7 @@ func (c *RecoverableSnapshotsGetCall) Do(opts ...googleapi.CallOption) (*Recover if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &RecoverableSnapshot{ + ret := &PublicDelegatedPrefix{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -95367,99 +95811,108 @@ func (c *RecoverableSnapshotsGetCall) Do(opts ...googleapi.CallOption) (*Recover if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type RecoverableSnapshotsGetIamPolicyCall struct { - s *Service - project string - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type PublicDelegatedPrefixesInsertCall struct { + s *Service + project string + region string + publicdelegatedprefix *PublicDelegatedPrefix + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. May be empty if -// no such -// policy or resource exists. +// Insert: Creates a PublicDelegatedPrefix in the specified project in the +// given +// region using the parameters that are included in the request. // // - project: Project ID for this request. -// - resource: Name or id of the resource for this request. -func (r *RecoverableSnapshotsService) GetIamPolicy(project string, resource string) *RecoverableSnapshotsGetIamPolicyCall { - c := &RecoverableSnapshotsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - region: Name of the region of this request. +func (r *PublicDelegatedPrefixesService) Insert(project string, region string, publicdelegatedprefix *PublicDelegatedPrefix) *PublicDelegatedPrefixesInsertCall { + c := &PublicDelegatedPrefixesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.resource = resource + c.region = region + c.publicdelegatedprefix = publicdelegatedprefix return c } -// OptionsRequestedPolicyVersion sets the optional parameter -// "optionsRequestedPolicyVersion": Requested IAM Policy version. -func (c *RecoverableSnapshotsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *RecoverableSnapshotsGetIamPolicyCall { - c.urlParams_.Set("optionsRequestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// RequestId sets the optional parameter "requestId": 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). +func (c *PublicDelegatedPrefixesInsertCall) RequestId(requestId string) *PublicDelegatedPrefixesInsertCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RecoverableSnapshotsGetIamPolicyCall) Fields(s ...googleapi.Field) *RecoverableSnapshotsGetIamPolicyCall { +func (c *PublicDelegatedPrefixesInsertCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *RecoverableSnapshotsGetIamPolicyCall) IfNoneMatch(entityTag string) *RecoverableSnapshotsGetIamPolicyCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *RecoverableSnapshotsGetIamPolicyCall) Context(ctx context.Context) *RecoverableSnapshotsGetIamPolicyCall { +func (c *PublicDelegatedPrefixesInsertCall) Context(ctx context.Context) *PublicDelegatedPrefixesInsertCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *RecoverableSnapshotsGetIamPolicyCall) Header() http.Header { +func (c *PublicDelegatedPrefixesInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RecoverableSnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *PublicDelegatedPrefixesInsertCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.publicdelegatedprefix) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/recoverableSnapshots/{resource}/getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/publicDelegatedPrefixes") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "resource": c.resource, + "project": c.project, + "region": c.region, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.insert", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.recoverableSnapshots.getIamPolicy" call. +// Do executes the "compute.publicDelegatedPrefixes.insert" call. // Any non-2xx status code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) in +// *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 *RecoverableSnapshotsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +func (c *PublicDelegatedPrefixesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -95478,7 +95931,7 @@ func (c *RecoverableSnapshotsGetIamPolicyCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -95489,25 +95942,28 @@ func (c *RecoverableSnapshotsGetIamPolicyCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.getIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.insert", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type RecoverableSnapshotsListCall struct { +type PublicDelegatedPrefixesListCall struct { s *Service project string + region string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Retrieves a list of all of the RecoverableSnapshots in your project. +// List: Lists the PublicDelegatedPrefixes for a project in the given region. // // - project: Project ID for this request. -func (r *RecoverableSnapshotsService) List(project string) *RecoverableSnapshotsListCall { - c := &RecoverableSnapshotsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - region: Name of the region of this request. +func (r *PublicDelegatedPrefixesService) List(project string, region string) *PublicDelegatedPrefixesListCall { + c := &PublicDelegatedPrefixesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project + c.region = region return c } @@ -95578,7 +96034,7 @@ func (r *RecoverableSnapshotsService) List(project string) *RecoverableSnapshots // // You cannot combine constraints on multiple fields using regular // expressions. -func (c *RecoverableSnapshotsListCall) Filter(filter string) *RecoverableSnapshotsListCall { +func (c *PublicDelegatedPrefixesListCall) Filter(filter string) *PublicDelegatedPrefixesListCall { c.urlParams_.Set("filter", filter) return c } @@ -95590,7 +96046,7 @@ func (c *RecoverableSnapshotsListCall) Filter(filter string) *RecoverableSnapsho // the next page of results in subsequent list requests. Acceptable values // are // `0` to `500`, inclusive. (Default: `500`) -func (c *RecoverableSnapshotsListCall) MaxResults(maxResults int64) *RecoverableSnapshotsListCall { +func (c *PublicDelegatedPrefixesListCall) MaxResults(maxResults int64) *PublicDelegatedPrefixesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } @@ -95610,7 +96066,7 @@ func (c *RecoverableSnapshotsListCall) MaxResults(maxResults int64) *Recoverable // // Currently, only sorting by `name` or // `creationTimestamp desc` is supported. -func (c *RecoverableSnapshotsListCall) OrderBy(orderBy string) *RecoverableSnapshotsListCall { +func (c *PublicDelegatedPrefixesListCall) OrderBy(orderBy string) *PublicDelegatedPrefixesListCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -95619,7 +96075,7 @@ func (c *RecoverableSnapshotsListCall) OrderBy(orderBy string) *RecoverableSnaps // use. Set `pageToken` to the // `nextPageToken` returned by a previous list request to get // the next page of results. -func (c *RecoverableSnapshotsListCall) PageToken(pageToken string) *RecoverableSnapshotsListCall { +func (c *PublicDelegatedPrefixesListCall) PageToken(pageToken string) *PublicDelegatedPrefixesListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -95634,7 +96090,7 @@ func (c *RecoverableSnapshotsListCall) PageToken(pageToken string) *RecoverableS // single zone scope either returns all resources in the zone or no // resources, // with an error code. -func (c *RecoverableSnapshotsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RecoverableSnapshotsListCall { +func (c *PublicDelegatedPrefixesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *PublicDelegatedPrefixesListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -95642,7 +96098,7 @@ func (c *RecoverableSnapshotsListCall) ReturnPartialSuccess(returnPartialSuccess // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RecoverableSnapshotsListCall) Fields(s ...googleapi.Field) *RecoverableSnapshotsListCall { +func (c *PublicDelegatedPrefixesListCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -95650,34 +96106,34 @@ func (c *RecoverableSnapshotsListCall) Fields(s ...googleapi.Field) *Recoverable // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *RecoverableSnapshotsListCall) IfNoneMatch(entityTag string) *RecoverableSnapshotsListCall { +func (c *PublicDelegatedPrefixesListCall) IfNoneMatch(entityTag string) *PublicDelegatedPrefixesListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *RecoverableSnapshotsListCall) Context(ctx context.Context) *RecoverableSnapshotsListCall { +func (c *PublicDelegatedPrefixesListCall) Context(ctx context.Context) *PublicDelegatedPrefixesListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *RecoverableSnapshotsListCall) Header() http.Header { +func (c *PublicDelegatedPrefixesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RecoverableSnapshotsListCall) doRequest(alt string) (*http.Response, error) { +func (c *PublicDelegatedPrefixesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/recoverableSnapshots") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/publicDelegatedPrefixes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -95686,18 +96142,19 @@ func (c *RecoverableSnapshotsListCall) doRequest(alt string) (*http.Response, er req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "project": c.project, + "region": c.region, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.recoverableSnapshots.list" call. +// Do executes the "compute.publicDelegatedPrefixes.list" call. // Any non-2xx status code is an error. Response headers are in either -// *RecoverableSnapshotList.ServerResponse.Header or (if a response was +// *PublicDelegatedPrefixList.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 *RecoverableSnapshotsListCall) Do(opts ...googleapi.CallOption) (*RecoverableSnapshotList, error) { +func (c *PublicDelegatedPrefixesListCall) Do(opts ...googleapi.CallOption) (*PublicDelegatedPrefixList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -95716,7 +96173,7 @@ func (c *RecoverableSnapshotsListCall) Do(opts ...googleapi.CallOption) (*Recove if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &RecoverableSnapshotList{ + ret := &PublicDelegatedPrefixList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -95727,14 +96184,14 @@ func (c *RecoverableSnapshotsListCall) Do(opts ...googleapi.CallOption) (*Recove if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *RecoverableSnapshotsListCall) Pages(ctx context.Context, f func(*RecoverableSnapshotList) error) error { +func (c *PublicDelegatedPrefixesListCall) Pages(ctx context.Context, f func(*PublicDelegatedPrefixList) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -95752,23 +96209,33 @@ func (c *RecoverableSnapshotsListCall) Pages(ctx context.Context, f func(*Recove } } -type RecoverableSnapshotsRecoverCall struct { - s *Service - project string - recoverableSnapshot string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PublicDelegatedPrefixesPatchCall struct { + s *Service + project string + region string + publicDelegatedPrefix string + publicdelegatedprefix *PublicDelegatedPrefix + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Recover: Recovers the specified RecoverableSnapshot. +// Patch: Patches the specified PublicDelegatedPrefix resource with the data +// included +// in the request. This method supportsPATCH +// semantics and usesJSON merge +// patch format and processing rules. // -// - project: Project Id of the request. -// - recoverableSnapshot: Name of the recoverable resource to recover. -func (r *RecoverableSnapshotsService) Recover(project string, recoverableSnapshot string) *RecoverableSnapshotsRecoverCall { - c := &RecoverableSnapshotsRecoverCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - project: Project ID for this request. +// - publicDelegatedPrefix: Name of the PublicDelegatedPrefix resource to +// patch. +// - region: Name of the region for this request. +func (r *PublicDelegatedPrefixesService) Patch(project string, region string, publicDelegatedPrefix string, publicdelegatedprefix *PublicDelegatedPrefix) *PublicDelegatedPrefixesPatchCall { + c := &PublicDelegatedPrefixesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.recoverableSnapshot = recoverableSnapshot + c.region = region + c.publicDelegatedPrefix = publicDelegatedPrefix + c.publicdelegatedprefix = publicdelegatedprefix return c } @@ -95789,74 +96256,64 @@ func (r *RecoverableSnapshotsService) Recover(project string, recoverableSnapsho // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *RecoverableSnapshotsRecoverCall) RequestId(requestId string) *RecoverableSnapshotsRecoverCall { +func (c *PublicDelegatedPrefixesPatchCall) RequestId(requestId string) *PublicDelegatedPrefixesPatchCall { c.urlParams_.Set("requestId", requestId) return c } -// SnapshotName sets the optional parameter "snapshotName": Name of the -// snapshot after the recovery -// The name will be 1-63 characters long, and comply withRFC1035. -// Specifically, the name will be 1-63 characters long and match the -// regular -// expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first -// character will be a lowercase letter, and all following characters can be -// a dash, lowercase letter, or digit, except the last character, which -// cannot -// be a dash. -func (c *RecoverableSnapshotsRecoverCall) SnapshotName(snapshotName string) *RecoverableSnapshotsRecoverCall { - c.urlParams_.Set("snapshotName", snapshotName) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RecoverableSnapshotsRecoverCall) Fields(s ...googleapi.Field) *RecoverableSnapshotsRecoverCall { +func (c *PublicDelegatedPrefixesPatchCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *RecoverableSnapshotsRecoverCall) Context(ctx context.Context) *RecoverableSnapshotsRecoverCall { +func (c *PublicDelegatedPrefixesPatchCall) Context(ctx context.Context) *PublicDelegatedPrefixesPatchCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *RecoverableSnapshotsRecoverCall) Header() http.Header { +func (c *PublicDelegatedPrefixesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RecoverableSnapshotsRecoverCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *PublicDelegatedPrefixesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.publicdelegatedprefix) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}/recover") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, nil) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "recoverableSnapshot": c.recoverableSnapshot, + "project": c.project, + "region": c.region, + "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.recover", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.recoverableSnapshots.recover" call. +// Do executes the "compute.publicDelegatedPrefixes.patch" call. // 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 *RecoverableSnapshotsRecoverCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *PublicDelegatedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -95886,86 +96343,106 @@ func (c *RecoverableSnapshotsRecoverCall) Do(opts ...googleapi.CallOption) (*Ope if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.recover", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type RecoverableSnapshotsSetIamPolicyCall struct { - s *Service - project string - resource string - globalsetpolicyrequest *GlobalSetPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PublicDelegatedPrefixesWithdrawCall struct { + s *Service + project string + region string + publicDelegatedPrefix string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. -// Replaces any existing policy. +// Withdraw: Withdraws the specified PublicDelegatedPrefix in the given region. // -// - project: Project ID for this request. -// - resource: Name or id of the resource for this request. -func (r *RecoverableSnapshotsService) SetIamPolicy(project string, resource string, globalsetpolicyrequest *GlobalSetPolicyRequest) *RecoverableSnapshotsSetIamPolicyCall { - c := &RecoverableSnapshotsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - project: Project ID for this request. +// - publicDelegatedPrefix: The name of the public delegated prefix. It should +// comply with RFC1035. +// - region: The name of theregion where +// the public delegated prefix is located. It should comply with RFC1035. +func (r *PublicDelegatedPrefixesService) Withdraw(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesWithdrawCall { + c := &PublicDelegatedPrefixesWithdrawCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.resource = resource - c.globalsetpolicyrequest = globalsetpolicyrequest + c.region = region + c.publicDelegatedPrefix = publicDelegatedPrefix + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *PublicDelegatedPrefixesWithdrawCall) RequestId(requestId string) *PublicDelegatedPrefixesWithdrawCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RecoverableSnapshotsSetIamPolicyCall) Fields(s ...googleapi.Field) *RecoverableSnapshotsSetIamPolicyCall { +func (c *PublicDelegatedPrefixesWithdrawCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesWithdrawCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *RecoverableSnapshotsSetIamPolicyCall) Context(ctx context.Context) *RecoverableSnapshotsSetIamPolicyCall { +func (c *PublicDelegatedPrefixesWithdrawCall) Context(ctx context.Context) *PublicDelegatedPrefixesWithdrawCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *RecoverableSnapshotsSetIamPolicyCall) Header() http.Header { +func (c *PublicDelegatedPrefixesWithdrawCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RecoverableSnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.globalsetpolicyrequest) - if err != nil { - return nil, err - } +func (c *PublicDelegatedPrefixesWithdrawCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/recoverableSnapshots/{resource}/setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("POST", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "resource": c.resource, + "project": c.project, + "region": c.region, + "publicDelegatedPrefix": c.publicDelegatedPrefix, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.withdraw", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.recoverableSnapshots.setIamPolicy" call. +// Do executes the "compute.publicDelegatedPrefixes.withdraw" call. // Any non-2xx status code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) in +// *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 *RecoverableSnapshotsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +func (c *PublicDelegatedPrefixesWithdrawCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -95984,7 +96461,7 @@ func (c *RecoverableSnapshotsSetIamPolicyCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -95995,86 +96472,243 @@ func (c *RecoverableSnapshotsSetIamPolicyCall) Do(opts ...googleapi.CallOption) if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.setIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.publicDelegatedPrefixes.withdraw", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type RecoverableSnapshotsTestIamPermissionsCall struct { - s *Service - project string - resource string - testpermissionsrequest *TestPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type RecoverableSnapshotsAggregatedListCall struct { + s *Service + project string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the specified -// resource. +// AggregatedList: Retrieves an aggregated list of all of the +// RecoverableSnapshots in your +// project across all regions and global scope. // // - project: Project ID for this request. -// - resource: Name or id of the resource for this request. -func (r *RecoverableSnapshotsService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *RecoverableSnapshotsTestIamPermissionsCall { - c := &RecoverableSnapshotsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *RecoverableSnapshotsService) AggregatedList(project string) *RecoverableSnapshotsAggregatedListCall { + c := &RecoverableSnapshotsAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.resource = resource - c.testpermissionsrequest = testpermissionsrequest + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most +// Compute resources support two types of filter expressions: +// expressions that support regular expressions and expressions that follow +// API improvement proposal AIP-160. +// These two types of filter expressions cannot be mixed in one request. +// +// If you want to use AIP-160, your 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 `:*` 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 onresource 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) +// ``` +// +// If you want to use a regular expression, use the `eq` (equal) or `ne` +// (not equal) operator against a single un-parenthesized expression with +// or +// without quotes or against multiple parenthesized expressions. +// Examples: +// +// `fieldname eq unquoted literal` +// `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" +// `(fieldname1 eq literal) (fieldname2 ne "literal")` +// +// The literal value is interpreted as a regular expression using GoogleRE2 +// library syntax. +// The literal value must match the entire field. +// +// For example, to filter for instances that do not end with name +// "instance", +// you would use `name ne .*instance`. +// +// You cannot combine constraints on multiple fields using regular +// expressions. +func (c *RecoverableSnapshotsAggregatedListCall) Filter(filter string) *RecoverableSnapshotsAggregatedListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// IncludeAllScopes sets the optional parameter "includeAllScopes": 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. +func (c *RecoverableSnapshotsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *RecoverableSnapshotsAggregatedListCall { + c.urlParams_.Set("includeAllScopes", fmt.Sprint(includeAllScopes)) + return c +} + +// MaxResults sets the optional parameter "maxResults": 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`) +func (c *RecoverableSnapshotsAggregatedListCall) MaxResults(maxResults int64) *RecoverableSnapshotsAggregatedListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": 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. +func (c *RecoverableSnapshotsAggregatedListCall) OrderBy(orderBy string) *RecoverableSnapshotsAggregatedListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the +// `nextPageToken` returned by a previous list request to get +// the next page of results. +func (c *RecoverableSnapshotsAggregatedListCall) PageToken(pageToken string) *RecoverableSnapshotsAggregatedListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in +// case +// of failure. The default value is false. +// +// For example, when partial success behavior is enabled, aggregatedList for +// a +// single zone scope either returns all resources in the zone or no +// resources, +// with an error code. +func (c *RecoverableSnapshotsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RecoverableSnapshotsAggregatedListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// ServiceProjectNumber sets the optional parameter "serviceProjectNumber": The +// Shared VPC service project id or service project number for which +// aggregated list request is invoked for subnetworks list-usable api. +func (c *RecoverableSnapshotsAggregatedListCall) ServiceProjectNumber(serviceProjectNumber int64) *RecoverableSnapshotsAggregatedListCall { + c.urlParams_.Set("serviceProjectNumber", fmt.Sprint(serviceProjectNumber)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RecoverableSnapshotsTestIamPermissionsCall) Fields(s ...googleapi.Field) *RecoverableSnapshotsTestIamPermissionsCall { +func (c *RecoverableSnapshotsAggregatedListCall) Fields(s ...googleapi.Field) *RecoverableSnapshotsAggregatedListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *RecoverableSnapshotsAggregatedListCall) IfNoneMatch(entityTag string) *RecoverableSnapshotsAggregatedListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *RecoverableSnapshotsTestIamPermissionsCall) Context(ctx context.Context) *RecoverableSnapshotsTestIamPermissionsCall { +func (c *RecoverableSnapshotsAggregatedListCall) Context(ctx context.Context) *RecoverableSnapshotsAggregatedListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *RecoverableSnapshotsTestIamPermissionsCall) Header() http.Header { +func (c *RecoverableSnapshotsAggregatedListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RecoverableSnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testpermissionsrequest) - if err != nil { - return nil, err +func (c *RecoverableSnapshotsAggregatedListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/recoverableSnapshots/{resource}/testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/recoverableSnapshots") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "resource": c.resource, + "project": c.project, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.aggregatedList", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.recoverableSnapshots.testIamPermissions" call. +// Do executes the "compute.recoverableSnapshots.aggregatedList" call. // Any non-2xx status code is an error. Response headers are in either -// *TestPermissionsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *RecoverableSnapshotAggregatedList.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 *RecoverableSnapshotsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error) { +func (c *RecoverableSnapshotsAggregatedListCall) Do(opts ...googleapi.CallOption) (*RecoverableSnapshotAggregatedList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -96093,7 +96727,7 @@ func (c *RecoverableSnapshotsTestIamPermissionsCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &TestPermissionsResponse{ + ret := &RecoverableSnapshotAggregatedList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -96104,30 +96738,50 @@ func (c *RecoverableSnapshotsTestIamPermissionsCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.testIamPermissions", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.aggregatedList", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type RegionAutoscalersDeleteCall struct { - s *Service - project string - region string - autoscaler string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *RecoverableSnapshotsAggregatedListCall) Pages(ctx context.Context, f func(*RecoverableSnapshotAggregatedList) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// Delete: Deletes the specified autoscaler. +type RecoverableSnapshotsDeleteCall struct { + s *Service + project string + recoverableSnapshot string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified RecoverableSnapshot. Deleting a recoverable +// snapshot +// will delete the underlying PD snapshot and is irreversible. // -// - autoscaler: Name of the autoscaler to delete. // - project: Project ID for this request. -// - region: Name of the region scoping this request. -func (r *RegionAutoscalersService) Delete(project string, region string, autoscaler string) *RegionAutoscalersDeleteCall { - c := &RegionAutoscalersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - recoverableSnapshot: Name of the recoverable Snapshot resource to delete. +func (r *RecoverableSnapshotsService) Delete(project string, recoverableSnapshot string) *RecoverableSnapshotsDeleteCall { + c := &RecoverableSnapshotsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region - c.autoscaler = autoscaler + c.recoverableSnapshot = recoverableSnapshot return c } @@ -96148,7 +96802,7 @@ func (r *RegionAutoscalersService) Delete(project string, region string, autosca // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *RegionAutoscalersDeleteCall) RequestId(requestId string) *RegionAutoscalersDeleteCall { +func (c *RecoverableSnapshotsDeleteCall) RequestId(requestId string) *RecoverableSnapshotsDeleteCall { c.urlParams_.Set("requestId", requestId) return c } @@ -96156,31 +96810,31 @@ func (c *RegionAutoscalersDeleteCall) RequestId(requestId string) *RegionAutosca // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RegionAutoscalersDeleteCall) Fields(s ...googleapi.Field) *RegionAutoscalersDeleteCall { +func (c *RecoverableSnapshotsDeleteCall) Fields(s ...googleapi.Field) *RecoverableSnapshotsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *RegionAutoscalersDeleteCall) Context(ctx context.Context) *RegionAutoscalersDeleteCall { +func (c *RecoverableSnapshotsDeleteCall) Context(ctx context.Context) *RecoverableSnapshotsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *RegionAutoscalersDeleteCall) Header() http.Header { +func (c *RecoverableSnapshotsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RegionAutoscalersDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *RecoverableSnapshotsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/autoscalers/{autoscaler}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("DELETE", urls, nil) if err != nil { @@ -96188,20 +96842,19 @@ func (c *RegionAutoscalersDeleteCall) doRequest(alt string) (*http.Response, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "autoscaler": c.autoscaler, + "project": c.project, + "recoverableSnapshot": c.recoverableSnapshot, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.regionAutoscalers.delete" call. +// Do executes the "compute.recoverableSnapshots.delete" call. // 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 *RegionAutoscalersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *RecoverableSnapshotsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -96231,38 +96884,35 @@ func (c *RegionAutoscalersDeleteCall) Do(opts ...googleapi.CallOption) (*Operati if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type RegionAutoscalersGetCall struct { - s *Service - project string - region string - autoscaler string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type RecoverableSnapshotsGetCall struct { + s *Service + project string + recoverableSnapshot string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Get: Returns the specified autoscaler. +// Get: Returns the specified RecoverableSnapshot resource. // -// - autoscaler: Name of the autoscaler to return. // - project: Project ID for this request. -// - region: Name of the region scoping this request. -func (r *RegionAutoscalersService) Get(project string, region string, autoscaler string) *RegionAutoscalersGetCall { - c := &RegionAutoscalersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - recoverableSnapshot: Name of the Snapshot resource to return. +func (r *RecoverableSnapshotsService) Get(project string, recoverableSnapshot string) *RecoverableSnapshotsGetCall { + c := &RecoverableSnapshotsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region - c.autoscaler = autoscaler + c.recoverableSnapshot = recoverableSnapshot return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RegionAutoscalersGetCall) Fields(s ...googleapi.Field) *RegionAutoscalersGetCall { +func (c *RecoverableSnapshotsGetCall) Fields(s ...googleapi.Field) *RecoverableSnapshotsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -96270,34 +96920,34 @@ func (c *RegionAutoscalersGetCall) Fields(s ...googleapi.Field) *RegionAutoscale // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *RegionAutoscalersGetCall) IfNoneMatch(entityTag string) *RegionAutoscalersGetCall { +func (c *RecoverableSnapshotsGetCall) IfNoneMatch(entityTag string) *RecoverableSnapshotsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *RegionAutoscalersGetCall) Context(ctx context.Context) *RegionAutoscalersGetCall { +func (c *RecoverableSnapshotsGetCall) Context(ctx context.Context) *RecoverableSnapshotsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *RegionAutoscalersGetCall) Header() http.Header { +func (c *RecoverableSnapshotsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RegionAutoscalersGetCall) doRequest(alt string) (*http.Response, error) { +func (c *RecoverableSnapshotsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/autoscalers/{autoscaler}") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -96305,20 +96955,20 @@ func (c *RegionAutoscalersGetCall) doRequest(alt string) (*http.Response, error) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "autoscaler": c.autoscaler, + "project": c.project, + "recoverableSnapshot": c.recoverableSnapshot, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.regionAutoscalers.get" call. +// Do executes the "compute.recoverableSnapshots.get" call. // Any non-2xx status code is an error. Response headers are in either -// *Autoscaler.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 *RegionAutoscalersGetCall) Do(opts ...googleapi.CallOption) (*Autoscaler, error) { +// *RecoverableSnapshot.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 *RecoverableSnapshotsGetCall) Do(opts ...googleapi.CallOption) (*RecoverableSnapshot, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -96337,7 +96987,7 @@ func (c *RegionAutoscalersGetCall) Do(opts ...googleapi.CallOption) (*Autoscaler if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Autoscaler{ + ret := &RecoverableSnapshot{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -96348,107 +96998,99 @@ func (c *RegionAutoscalersGetCall) Do(opts ...googleapi.CallOption) (*Autoscaler if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type RegionAutoscalersInsertCall struct { - s *Service - project string - region string - autoscaler *Autoscaler - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type RecoverableSnapshotsGetIamPolicyCall struct { + s *Service + project string + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Insert: Creates an autoscaler in the specified project using -// the data included in the request. +// GetIamPolicy: Gets the access control policy for a resource. May be empty if +// no such +// policy or resource exists. // // - project: Project ID for this request. -// - region: Name of the region scoping this request. -func (r *RegionAutoscalersService) Insert(project string, region string, autoscaler *Autoscaler) *RegionAutoscalersInsertCall { - c := &RegionAutoscalersInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - resource: Name or id of the resource for this request. +func (r *RecoverableSnapshotsService) GetIamPolicy(project string, resource string) *RecoverableSnapshotsGetIamPolicyCall { + c := &RecoverableSnapshotsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region - c.autoscaler = autoscaler + c.resource = resource return c } -// RequestId sets the optional parameter "requestId": 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). -func (c *RegionAutoscalersInsertCall) RequestId(requestId string) *RegionAutoscalersInsertCall { - c.urlParams_.Set("requestId", requestId) +// OptionsRequestedPolicyVersion sets the optional parameter +// "optionsRequestedPolicyVersion": Requested IAM Policy version. +func (c *RecoverableSnapshotsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *RecoverableSnapshotsGetIamPolicyCall { + c.urlParams_.Set("optionsRequestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RegionAutoscalersInsertCall) Fields(s ...googleapi.Field) *RegionAutoscalersInsertCall { +func (c *RecoverableSnapshotsGetIamPolicyCall) Fields(s ...googleapi.Field) *RecoverableSnapshotsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *RecoverableSnapshotsGetIamPolicyCall) IfNoneMatch(entityTag string) *RecoverableSnapshotsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *RegionAutoscalersInsertCall) Context(ctx context.Context) *RegionAutoscalersInsertCall { +func (c *RecoverableSnapshotsGetIamPolicyCall) Context(ctx context.Context) *RecoverableSnapshotsGetIamPolicyCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *RegionAutoscalersInsertCall) Header() http.Header { +func (c *RecoverableSnapshotsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RegionAutoscalersInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.autoscaler) - if err != nil { - return nil, err +func (c *RecoverableSnapshotsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/autoscalers") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/recoverableSnapshots/{resource}/getIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, + "project": c.project, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.insert", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.regionAutoscalers.insert" call. +// Do executes the "compute.recoverableSnapshots.getIamPolicy" call. // 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 +// *Policy.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 *RegionAutoscalersInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *RecoverableSnapshotsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -96467,7 +97109,7 @@ func (c *RegionAutoscalersInsertCall) Do(opts ...googleapi.CallOption) (*Operati if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -96478,29 +97120,25 @@ func (c *RegionAutoscalersInsertCall) Do(opts ...googleapi.CallOption) (*Operati if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.insert", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.getIamPolicy", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type RegionAutoscalersListCall struct { +type RecoverableSnapshotsListCall struct { s *Service project string - region string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Retrieves a list of autoscalers contained within -// the specified region. +// List: Retrieves a list of all of the RecoverableSnapshots in your project. // // - project: Project ID for this request. -// - region: Name of the region scoping this request. -func (r *RegionAutoscalersService) List(project string, region string) *RegionAutoscalersListCall { - c := &RegionAutoscalersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *RecoverableSnapshotsService) List(project string) *RecoverableSnapshotsListCall { + c := &RecoverableSnapshotsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region return c } @@ -96571,7 +97209,7 @@ func (r *RegionAutoscalersService) List(project string, region string) *RegionAu // // You cannot combine constraints on multiple fields using regular // expressions. -func (c *RegionAutoscalersListCall) Filter(filter string) *RegionAutoscalersListCall { +func (c *RecoverableSnapshotsListCall) Filter(filter string) *RecoverableSnapshotsListCall { c.urlParams_.Set("filter", filter) return c } @@ -96583,7 +97221,7 @@ func (c *RegionAutoscalersListCall) Filter(filter string) *RegionAutoscalersList // the next page of results in subsequent list requests. Acceptable values // are // `0` to `500`, inclusive. (Default: `500`) -func (c *RegionAutoscalersListCall) MaxResults(maxResults int64) *RegionAutoscalersListCall { +func (c *RecoverableSnapshotsListCall) MaxResults(maxResults int64) *RecoverableSnapshotsListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } @@ -96603,7 +97241,7 @@ func (c *RegionAutoscalersListCall) MaxResults(maxResults int64) *RegionAutoscal // // Currently, only sorting by `name` or // `creationTimestamp desc` is supported. -func (c *RegionAutoscalersListCall) OrderBy(orderBy string) *RegionAutoscalersListCall { +func (c *RecoverableSnapshotsListCall) OrderBy(orderBy string) *RecoverableSnapshotsListCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -96612,7 +97250,7 @@ func (c *RegionAutoscalersListCall) OrderBy(orderBy string) *RegionAutoscalersLi // use. Set `pageToken` to the // `nextPageToken` returned by a previous list request to get // the next page of results. -func (c *RegionAutoscalersListCall) PageToken(pageToken string) *RegionAutoscalersListCall { +func (c *RecoverableSnapshotsListCall) PageToken(pageToken string) *RecoverableSnapshotsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -96627,7 +97265,7 @@ func (c *RegionAutoscalersListCall) PageToken(pageToken string) *RegionAutoscale // single zone scope either returns all resources in the zone or no // resources, // with an error code. -func (c *RegionAutoscalersListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionAutoscalersListCall { +func (c *RecoverableSnapshotsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RecoverableSnapshotsListCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -96635,7 +97273,7 @@ func (c *RegionAutoscalersListCall) ReturnPartialSuccess(returnPartialSuccess bo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RegionAutoscalersListCall) Fields(s ...googleapi.Field) *RegionAutoscalersListCall { +func (c *RecoverableSnapshotsListCall) Fields(s ...googleapi.Field) *RecoverableSnapshotsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -96643,34 +97281,34 @@ func (c *RegionAutoscalersListCall) Fields(s ...googleapi.Field) *RegionAutoscal // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *RegionAutoscalersListCall) IfNoneMatch(entityTag string) *RegionAutoscalersListCall { +func (c *RecoverableSnapshotsListCall) IfNoneMatch(entityTag string) *RecoverableSnapshotsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *RegionAutoscalersListCall) Context(ctx context.Context) *RegionAutoscalersListCall { +func (c *RecoverableSnapshotsListCall) Context(ctx context.Context) *RecoverableSnapshotsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *RegionAutoscalersListCall) Header() http.Header { +func (c *RecoverableSnapshotsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RegionAutoscalersListCall) doRequest(alt string) (*http.Response, error) { +func (c *RecoverableSnapshotsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/autoscalers") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/recoverableSnapshots") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -96679,19 +97317,18 @@ func (c *RegionAutoscalersListCall) doRequest(alt string) (*http.Response, error req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "project": c.project, - "region": c.region, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.regionAutoscalers.list" call. +// Do executes the "compute.recoverableSnapshots.list" call. // Any non-2xx status code is an error. Response headers are in either -// *RegionAutoscalerList.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 *RegionAutoscalersListCall) Do(opts ...googleapi.CallOption) (*RegionAutoscalerList, error) { +// *RecoverableSnapshotList.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 *RecoverableSnapshotsListCall) Do(opts ...googleapi.CallOption) (*RecoverableSnapshotList, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -96710,7 +97347,7 @@ func (c *RegionAutoscalersListCall) Do(opts ...googleapi.CallOption) (*RegionAut if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &RegionAutoscalerList{ + ret := &RecoverableSnapshotList{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -96721,14 +97358,14 @@ func (c *RegionAutoscalersListCall) Do(opts ...googleapi.CallOption) (*RegionAut if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *RegionAutoscalersListCall) Pages(ctx context.Context, f func(*RegionAutoscalerList) error) error { +func (c *RecoverableSnapshotsListCall) Pages(ctx context.Context, f func(*RecoverableSnapshotList) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -96746,35 +97383,23 @@ func (c *RegionAutoscalersListCall) Pages(ctx context.Context, f func(*RegionAut } } -type RegionAutoscalersPatchCall struct { - s *Service - project string - region string - autoscaler *Autoscaler - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type RecoverableSnapshotsRecoverCall struct { + s *Service + project string + recoverableSnapshot string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates an autoscaler in the specified project using -// the data included in the request. This method supportsPATCH -// semantics and uses theJSON merge -// patch format and processing rules. +// Recover: Recovers the specified RecoverableSnapshot. // -// - project: Project ID for this request. -// - region: Name of the region scoping this request. -func (r *RegionAutoscalersService) Patch(project string, region string, autoscaler *Autoscaler) *RegionAutoscalersPatchCall { - c := &RegionAutoscalersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - project: Project Id of the request. +// - recoverableSnapshot: Name of the recoverable resource to recover. +func (r *RecoverableSnapshotsService) Recover(project string, recoverableSnapshot string) *RecoverableSnapshotsRecoverCall { + c := &RecoverableSnapshotsRecoverCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region - c.autoscaler = autoscaler - return c -} - -// Autoscaler sets the optional parameter "autoscaler": Name of the autoscaler -// to patch. -func (c *RegionAutoscalersPatchCall) Autoscaler(autoscaler string) *RegionAutoscalersPatchCall { - c.urlParams_.Set("autoscaler", autoscaler) + c.recoverableSnapshot = recoverableSnapshot return c } @@ -96795,63 +97420,74 @@ func (c *RegionAutoscalersPatchCall) Autoscaler(autoscaler string) *RegionAutosc // a valid UUID with the exception that zero UUID is not // supported // (00000000-0000-0000-0000-000000000000). -func (c *RegionAutoscalersPatchCall) RequestId(requestId string) *RegionAutoscalersPatchCall { +func (c *RecoverableSnapshotsRecoverCall) RequestId(requestId string) *RecoverableSnapshotsRecoverCall { c.urlParams_.Set("requestId", requestId) return c } +// SnapshotName sets the optional parameter "snapshotName": Name of the +// snapshot after the recovery +// The name will be 1-63 characters long, and comply withRFC1035. +// Specifically, the name will be 1-63 characters long and match the +// regular +// expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first +// character will be a lowercase letter, and all following characters can be +// a dash, lowercase letter, or digit, except the last character, which +// cannot +// be a dash. +func (c *RecoverableSnapshotsRecoverCall) SnapshotName(snapshotName string) *RecoverableSnapshotsRecoverCall { + c.urlParams_.Set("snapshotName", snapshotName) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RegionAutoscalersPatchCall) Fields(s ...googleapi.Field) *RegionAutoscalersPatchCall { +func (c *RecoverableSnapshotsRecoverCall) Fields(s ...googleapi.Field) *RecoverableSnapshotsRecoverCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *RegionAutoscalersPatchCall) Context(ctx context.Context) *RegionAutoscalersPatchCall { +func (c *RecoverableSnapshotsRecoverCall) Context(ctx context.Context) *RecoverableSnapshotsRecoverCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *RegionAutoscalersPatchCall) Header() http.Header { +func (c *RecoverableSnapshotsRecoverCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RegionAutoscalersPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.autoscaler) - if err != nil { - return nil, err - } +func (c *RecoverableSnapshotsRecoverCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/autoscalers") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/recoverableSnapshots/{recoverableSnapshot}/recover") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, + "project": c.project, + "recoverableSnapshot": c.recoverableSnapshot, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.recover", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.regionAutoscalers.patch" call. +// Do executes the "compute.recoverableSnapshots.recover" call. // 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 *RegionAutoscalersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *RecoverableSnapshotsRecoverCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -96881,68 +97517,66 @@ func (c *RegionAutoscalersPatchCall) Do(opts ...googleapi.CallOption) (*Operatio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.recover", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type RegionAutoscalersTestIamPermissionsCall struct { +type RecoverableSnapshotsSetIamPolicyCall struct { s *Service project string - region string resource string - testpermissionsrequest *TestPermissionsRequest + globalsetpolicyrequest *GlobalSetPolicyRequest urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the specified +// SetIamPolicy: Sets the access control policy on the specified // resource. +// Replaces any existing policy. // // - project: Project ID for this request. -// - region: The name of the region for this request. // - resource: Name or id of the resource for this request. -func (r *RegionAutoscalersService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionAutoscalersTestIamPermissionsCall { - c := &RegionAutoscalersTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *RecoverableSnapshotsService) SetIamPolicy(project string, resource string, globalsetpolicyrequest *GlobalSetPolicyRequest) *RecoverableSnapshotsSetIamPolicyCall { + c := &RecoverableSnapshotsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region c.resource = resource - c.testpermissionsrequest = testpermissionsrequest + c.globalsetpolicyrequest = globalsetpolicyrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RegionAutoscalersTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionAutoscalersTestIamPermissionsCall { +func (c *RecoverableSnapshotsSetIamPolicyCall) Fields(s ...googleapi.Field) *RecoverableSnapshotsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *RegionAutoscalersTestIamPermissionsCall) Context(ctx context.Context) *RegionAutoscalersTestIamPermissionsCall { +func (c *RecoverableSnapshotsSetIamPolicyCall) Context(ctx context.Context) *RecoverableSnapshotsSetIamPolicyCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *RegionAutoscalersTestIamPermissionsCall) Header() http.Header { +func (c *RecoverableSnapshotsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RegionAutoscalersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *RecoverableSnapshotsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testpermissionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.globalsetpolicyrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/recoverableSnapshots/{resource}/setIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -96951,20 +97585,18 @@ func (c *RegionAutoscalersTestIamPermissionsCall) doRequest(alt string) (*http.R req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "project": c.project, - "region": c.region, "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.regionAutoscalers.testIamPermissions" call. +// Do executes the "compute.recoverableSnapshots.setIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *TestPermissionsResponse.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 *RegionAutoscalersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error) { +// *Policy.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 *RecoverableSnapshotsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -96983,7 +97615,7 @@ func (c *RegionAutoscalersTestIamPermissionsCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &TestPermissionsResponse{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -96994,114 +97626,86 @@ func (c *RegionAutoscalersTestIamPermissionsCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.testIamPermissions", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.setIamPolicy", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type RegionAutoscalersUpdateCall struct { - s *Service - project string - region string - autoscaler *Autoscaler - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type RecoverableSnapshotsTestIamPermissionsCall struct { + s *Service + project string + resource string + testpermissionsrequest *TestPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Update: Updates an autoscaler in the specified project using -// the data included in the request. +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. // // - project: Project ID for this request. -// - region: Name of the region scoping this request. -func (r *RegionAutoscalersService) Update(project string, region string, autoscaler *Autoscaler) *RegionAutoscalersUpdateCall { - c := &RegionAutoscalersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - resource: Name or id of the resource for this request. +func (r *RecoverableSnapshotsService) TestIamPermissions(project string, resource string, testpermissionsrequest *TestPermissionsRequest) *RecoverableSnapshotsTestIamPermissionsCall { + c := &RecoverableSnapshotsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project - c.region = region - c.autoscaler = autoscaler - return c -} - -// Autoscaler sets the optional parameter "autoscaler": Name of the autoscaler -// to update. -func (c *RegionAutoscalersUpdateCall) Autoscaler(autoscaler string) *RegionAutoscalersUpdateCall { - c.urlParams_.Set("autoscaler", autoscaler) - return c -} - -// RequestId sets the optional parameter "requestId": 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). -func (c *RegionAutoscalersUpdateCall) RequestId(requestId string) *RegionAutoscalersUpdateCall { - c.urlParams_.Set("requestId", requestId) + c.resource = resource + c.testpermissionsrequest = testpermissionsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RegionAutoscalersUpdateCall) Fields(s ...googleapi.Field) *RegionAutoscalersUpdateCall { +func (c *RecoverableSnapshotsTestIamPermissionsCall) Fields(s ...googleapi.Field) *RecoverableSnapshotsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *RegionAutoscalersUpdateCall) Context(ctx context.Context) *RegionAutoscalersUpdateCall { +func (c *RecoverableSnapshotsTestIamPermissionsCall) Context(ctx context.Context) *RecoverableSnapshotsTestIamPermissionsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *RegionAutoscalersUpdateCall) Header() http.Header { +func (c *RecoverableSnapshotsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RegionAutoscalersUpdateCall) doRequest(alt string) (*http.Response, error) { +func (c *RecoverableSnapshotsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.autoscaler) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testpermissionsrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/autoscalers") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/recoverableSnapshots/{resource}/testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PUT", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, + "project": c.project, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.update", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.regionAutoscalers.update" call. +// Do executes the "compute.recoverableSnapshots.testIamPermissions" call. // 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 *RegionAutoscalersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *TestPermissionsResponse.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 *RecoverableSnapshotsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -97120,7 +97724,7 @@ func (c *RegionAutoscalersUpdateCall) Do(opts ...googleapi.CallOption) (*Operati if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &TestPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -97131,6 +97735,6 @@ func (c *RegionAutoscalersUpdateCall) Do(opts ...googleapi.CallOption) (*Operati if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.update", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.recoverableSnapshots.testIamPermissions", "response", internallog.HTTPResponse(res, b)) return ret, nil } diff --git a/compute/v0.alpha/compute3-gen.go b/compute/v0.alpha/compute3-gen.go index 160b1fd2c47..07397569f6c 100644 --- a/compute/v0.alpha/compute3-gen.go +++ b/compute/v0.alpha/compute3-gen.go @@ -16,6 +16,1033 @@ import ( gensupport "google.golang.org/api/internal/gensupport" ) +type RegionAutoscalersDeleteCall struct { + s *Service + project string + region string + autoscaler string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified autoscaler. +// +// - autoscaler: Name of the autoscaler to delete. +// - project: Project ID for this request. +// - region: Name of the region scoping this request. +func (r *RegionAutoscalersService) Delete(project string, region string, autoscaler string) *RegionAutoscalersDeleteCall { + c := &RegionAutoscalersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.autoscaler = autoscaler + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *RegionAutoscalersDeleteCall) RequestId(requestId string) *RegionAutoscalersDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionAutoscalersDeleteCall) Fields(s ...googleapi.Field) *RegionAutoscalersDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionAutoscalersDeleteCall) Context(ctx context.Context) *RegionAutoscalersDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionAutoscalersDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionAutoscalersDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/autoscalers/{autoscaler}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "autoscaler": c.autoscaler, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionAutoscalers.delete" call. +// 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 *RegionAutoscalersDeleteCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type RegionAutoscalersGetCall struct { + s *Service + project string + region string + autoscaler string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns the specified autoscaler. +// +// - autoscaler: Name of the autoscaler to return. +// - project: Project ID for this request. +// - region: Name of the region scoping this request. +func (r *RegionAutoscalersService) Get(project string, region string, autoscaler string) *RegionAutoscalersGetCall { + c := &RegionAutoscalersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.autoscaler = autoscaler + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionAutoscalersGetCall) Fields(s ...googleapi.Field) *RegionAutoscalersGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *RegionAutoscalersGetCall) IfNoneMatch(entityTag string) *RegionAutoscalersGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionAutoscalersGetCall) Context(ctx context.Context) *RegionAutoscalersGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionAutoscalersGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionAutoscalersGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/autoscalers/{autoscaler}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "autoscaler": c.autoscaler, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionAutoscalers.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *Autoscaler.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 *RegionAutoscalersGetCall) Do(opts ...googleapi.CallOption) (*Autoscaler, 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 := &Autoscaler{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type RegionAutoscalersInsertCall struct { + s *Service + project string + region string + autoscaler *Autoscaler + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Insert: Creates an autoscaler in the specified project using +// the data included in the request. +// +// - project: Project ID for this request. +// - region: Name of the region scoping this request. +func (r *RegionAutoscalersService) Insert(project string, region string, autoscaler *Autoscaler) *RegionAutoscalersInsertCall { + c := &RegionAutoscalersInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.autoscaler = autoscaler + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *RegionAutoscalersInsertCall) RequestId(requestId string) *RegionAutoscalersInsertCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionAutoscalersInsertCall) Fields(s ...googleapi.Field) *RegionAutoscalersInsertCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionAutoscalersInsertCall) Context(ctx context.Context) *RegionAutoscalersInsertCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionAutoscalersInsertCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionAutoscalersInsertCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.autoscaler) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/autoscalers") + 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{ + "project": c.project, + "region": c.region, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.insert", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionAutoscalers.insert" call. +// 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 *RegionAutoscalersInsertCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.insert", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type RegionAutoscalersListCall struct { + s *Service + project string + region string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Retrieves a list of autoscalers contained within +// the specified region. +// +// - project: Project ID for this request. +// - region: Name of the region scoping this request. +func (r *RegionAutoscalersService) List(project string, region string) *RegionAutoscalersListCall { + c := &RegionAutoscalersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most +// Compute resources support two types of filter expressions: +// expressions that support regular expressions and expressions that follow +// API improvement proposal AIP-160. +// These two types of filter expressions cannot be mixed in one request. +// +// If you want to use AIP-160, your 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 `:*` 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 onresource 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) +// ``` +// +// If you want to use a regular expression, use the `eq` (equal) or `ne` +// (not equal) operator against a single un-parenthesized expression with +// or +// without quotes or against multiple parenthesized expressions. +// Examples: +// +// `fieldname eq unquoted literal` +// `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" +// `(fieldname1 eq literal) (fieldname2 ne "literal")` +// +// The literal value is interpreted as a regular expression using GoogleRE2 +// library syntax. +// The literal value must match the entire field. +// +// For example, to filter for instances that do not end with name +// "instance", +// you would use `name ne .*instance`. +// +// You cannot combine constraints on multiple fields using regular +// expressions. +func (c *RegionAutoscalersListCall) Filter(filter string) *RegionAutoscalersListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": 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`) +func (c *RegionAutoscalersListCall) MaxResults(maxResults int64) *RegionAutoscalersListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": 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. +func (c *RegionAutoscalersListCall) OrderBy(orderBy string) *RegionAutoscalersListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the +// `nextPageToken` returned by a previous list request to get +// the next page of results. +func (c *RegionAutoscalersListCall) PageToken(pageToken string) *RegionAutoscalersListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in +// case +// of failure. The default value is false. +// +// For example, when partial success behavior is enabled, aggregatedList for +// a +// single zone scope either returns all resources in the zone or no +// resources, +// with an error code. +func (c *RegionAutoscalersListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionAutoscalersListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionAutoscalersListCall) Fields(s ...googleapi.Field) *RegionAutoscalersListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *RegionAutoscalersListCall) IfNoneMatch(entityTag string) *RegionAutoscalersListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionAutoscalersListCall) Context(ctx context.Context) *RegionAutoscalersListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionAutoscalersListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionAutoscalersListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/autoscalers") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionAutoscalers.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *RegionAutoscalerList.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 *RegionAutoscalersListCall) Do(opts ...googleapi.CallOption) (*RegionAutoscalerList, 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 := &RegionAutoscalerList{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *RegionAutoscalersListCall) Pages(ctx context.Context, f func(*RegionAutoscalerList) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type RegionAutoscalersPatchCall struct { + s *Service + project string + region string + autoscaler *Autoscaler + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an autoscaler in the specified project using +// the data included in the request. This method supportsPATCH +// semantics and uses theJSON merge +// patch format and processing rules. +// +// - project: Project ID for this request. +// - region: Name of the region scoping this request. +func (r *RegionAutoscalersService) Patch(project string, region string, autoscaler *Autoscaler) *RegionAutoscalersPatchCall { + c := &RegionAutoscalersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.autoscaler = autoscaler + return c +} + +// Autoscaler sets the optional parameter "autoscaler": Name of the autoscaler +// to patch. +func (c *RegionAutoscalersPatchCall) Autoscaler(autoscaler string) *RegionAutoscalersPatchCall { + c.urlParams_.Set("autoscaler", autoscaler) + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *RegionAutoscalersPatchCall) RequestId(requestId string) *RegionAutoscalersPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionAutoscalersPatchCall) Fields(s ...googleapi.Field) *RegionAutoscalersPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionAutoscalersPatchCall) Context(ctx context.Context) *RegionAutoscalersPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionAutoscalersPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionAutoscalersPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.autoscaler) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/autoscalers") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionAutoscalers.patch" call. +// 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 *RegionAutoscalersPatchCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type RegionAutoscalersTestIamPermissionsCall struct { + s *Service + project string + region string + resource string + testpermissionsrequest *TestPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. +// +// - project: Project ID for this request. +// - region: The name of the region for this request. +// - resource: Name or id of the resource for this request. +func (r *RegionAutoscalersService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *RegionAutoscalersTestIamPermissionsCall { + c := &RegionAutoscalersTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.resource = resource + c.testpermissionsrequest = testpermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionAutoscalersTestIamPermissionsCall) Fields(s ...googleapi.Field) *RegionAutoscalersTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionAutoscalersTestIamPermissionsCall) Context(ctx context.Context) *RegionAutoscalersTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionAutoscalersTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionAutoscalersTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testpermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions") + 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{ + "project": c.project, + "region": c.region, + "resource": c.resource, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionAutoscalers.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *TestPermissionsResponse.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 *RegionAutoscalersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, 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 := &TestPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.testIamPermissions", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type RegionAutoscalersUpdateCall struct { + s *Service + project string + region string + autoscaler *Autoscaler + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Update: Updates an autoscaler in the specified project using +// the data included in the request. +// +// - project: Project ID for this request. +// - region: Name of the region scoping this request. +func (r *RegionAutoscalersService) Update(project string, region string, autoscaler *Autoscaler) *RegionAutoscalersUpdateCall { + c := &RegionAutoscalersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.autoscaler = autoscaler + return c +} + +// Autoscaler sets the optional parameter "autoscaler": Name of the autoscaler +// to update. +func (c *RegionAutoscalersUpdateCall) Autoscaler(autoscaler string) *RegionAutoscalersUpdateCall { + c.urlParams_.Set("autoscaler", autoscaler) + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *RegionAutoscalersUpdateCall) RequestId(requestId string) *RegionAutoscalersUpdateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionAutoscalersUpdateCall) Fields(s ...googleapi.Field) *RegionAutoscalersUpdateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionAutoscalersUpdateCall) Context(ctx context.Context) *RegionAutoscalersUpdateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionAutoscalersUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionAutoscalersUpdateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.autoscaler) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/autoscalers") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PUT", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.update", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionAutoscalers.update" call. +// 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 *RegionAutoscalersUpdateCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.regionAutoscalers.update", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type RegionBackendBucketsDeleteCall struct { s *Service project string @@ -2314,9 +3341,12 @@ type RegionBackendServicesListUsableCall struct { header_ http.Header } -// ListUsable: Retrieves a list of all usable backend services in the specified -// project in -// the given region. +// ListUsable: Retrieves a list of all usable backend services for Application +// Load +// Balancers and Proxy Network Load Balancers in the specified project in +// the +// given region. Backend services for external and internal passthrough +// Network Load Balancers are not included in the response. // // - project: Project ID for this request. // - region: Name of the region scoping this request. diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index bedd6f816e1..f53dc36d8dd 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -2278,7 +2278,7 @@ ] }, "listUsable": { - "description": "Retrieves a list of all usable backend services in the specified project.", + "description": "Retrieves a list of all usable backend services for Application Load\nBalancers and Proxy Network Load Balancers in the specified project.\nBackend services for external and internal passthrough Network Load\nBalancers are not included in the response.", "flatPath": "projects/{project}/global/backendServices/listUsable", "httpMethod": "GET", "id": "compute.backendServices.listUsable", @@ -26972,7 +26972,7 @@ ] }, "listUsable": { - "description": "Retrieves a list of all usable backend services in the specified project in\nthe given region.", + "description": "Retrieves a list of all usable backend services for Application Load\nBalancers and Proxy Network Load Balancers in the specified project in the\ngiven region. Backend services for external and internal passthrough\nNetwork Load Balancers are not included in the response.", "flatPath": "projects/{project}/regions/{region}/backendServices/listUsable", "httpMethod": "GET", "id": "compute.regionBackendServices.listUsable", @@ -39533,6 +39533,100 @@ } } }, + "reliabilityRisks": { + "methods": { + "get": { + "description": "Returns the specified ReliabilityRisk resource.", + "flatPath": "projects/{project}/global/reliabilityRisks/{reliabilityRisk}", + "httpMethod": "GET", + "id": "compute.reliabilityRisks.get", + "parameterOrder": [ + "project", + "reliabilityRisk" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "reliabilityRisk": { + "description": "Name of the ReliabilityRisk resource to return.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/reliabilityRisks/{reliabilityRisk}", + "response": { + "$ref": "ReliabilityRisk" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "list": { + "description": "Retrieves the list of reliabilityRisks available in the specified project.", + "flatPath": "projects/{project}/global/reliabilityRisks", + "httpMethod": "GET", + "id": "compute.reliabilityRisks.list", + "parameterOrder": [ + "project" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most\nCompute resources support two types of filter expressions:\nexpressions that support regular expressions and expressions that follow\nAPI improvement proposal AIP-160.\nThese two types of filter expressions cannot be mixed in one request.\n\nIf you want to use AIP-160, your expression must specify the field name, an\noperator, and the value that you want to use for filtering. The value\nmust be a string, a number, or a boolean. The operator\nmust be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`.\n\nFor example, if you are filtering Compute Engine instances, you can\nexclude instances named `example-instance` by specifying\n`name != example-instance`.\n\nThe `:*` comparison can be used to test whether a key has been defined.\nFor example, to find all objects with `owner` label use:\n```\nlabels.owner:*\n```\n\nYou can also filter nested fields. For example, you could specify\n`scheduling.automaticRestart = false` to include instances only\nif they are not scheduled for automatic restarts. You can use filtering\non nested fields to filter based onresource labels.\n\nTo filter on multiple expressions, provide each separate expression within\nparentheses. For example:\n```\n(scheduling.automaticRestart = true)\n(cpuPlatform = \"Intel Skylake\")\n```\nBy default, each expression is an `AND` expression. However, you\ncan include `AND` and `OR` expressions explicitly.\nFor example:\n```\n(cpuPlatform = \"Intel Skylake\") OR\n(cpuPlatform = \"Intel Broadwell\") AND\n(scheduling.automaticRestart = true)\n```\n\nIf you want to use a regular expression, use the `eq` (equal) or `ne`\n(not equal) operator against a single un-parenthesized expression with or\nwithout quotes or against multiple parenthesized expressions. Examples:\n\n`fieldname eq unquoted literal`\n`fieldname eq 'single quoted literal'`\n`fieldname eq \"double quoted literal\"`\n`(fieldname1 eq literal) (fieldname2 ne \"literal\")`\n\nThe literal value is interpreted as a regular expression using GoogleRE2 library syntax.\nThe literal value must match the entire field.\n\nFor example, to filter for instances that do not end with name \"instance\",\nyou would use `name ne .*instance`.\n\nYou cannot combine constraints on multiple fields using regular\nexpressions.", + "location": "query", + "type": "string" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned.\nIf the number of available results is larger than `maxResults`,\nCompute Engine returns a `nextPageToken` that can be used to get\nthe next page of results in subsequent list requests. Acceptable values are\n`0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results\nare returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation\ntimestamp using `orderBy=\"creationTimestamp desc\"`. This sorts\nresults based on the `creationTimestamp` field in\nreverse chronological order (newest result first). Use this to sort\nresources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or\n`creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the\n`nextPageToken` returned by a previous list request to get\nthe next page of results.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case\nof failure. The default value is false.\n\nFor example, when partial success behavior is enabled, aggregatedList for a\nsingle zone scope either returns all resources in the zone or no resources,\nwith an error code.", + "location": "query", + "type": "boolean" + } + }, + "path": "projects/{project}/global/reliabilityRisks", + "response": { + "$ref": "ReliabilityRisksListResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + } + } + }, "reservationBlocks": { "methods": { "get": { @@ -52666,7 +52760,7 @@ } } }, - "revision": "20260625", + "revision": "20260629", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -53393,7 +53487,7 @@ "type": "string" }, "ipCollection": { - "description": "Reference to the source of external IPv4 addresses,\nlike a PublicDelegatedPrefix (PDP) for BYOIP.\nThe PDP must support enhanced IPv4 allocations.\n\nUse one of the following formats to specify a PDP when reserving an\nexternal IPv4 address using BYOIP.\n \n - \n Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name\n - \n Partial URL, as in\n \n \n - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name\n - regions/region/publicDelegatedPrefixes/pdp-name", + "description": "Reference to the source of IP addresses.\n\nIt supports the following cases:\n \n - \n Case 1: PublicDelegatedPrefix (PDP) for BYOIP external IPv4\n addresses. The PDP must support enhanced IPv4 allocations.\n - \n Case 2: Internal Range for global internal addresses.\n\n\n\nUse one of the following formats to specify the resource:\n\nFor a Public Delegated Prefix:\n \n - \n Full resource URL:https://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp\n - Partial URL:\n - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name\n - regions/region/publicDelegatedPrefixes/pdp-name\n \n\n\nFor an Internal Range:\n \n - Full URL:https://networkconnectivity.googleapis.com/v1/projects/project/locations/global/internalRanges/internal-range\n - Partial URL:projects/project/locations/global/internalRanges/internal-range", "type": "string" }, "ipVersion": { @@ -59242,19 +59336,23 @@ "id": "CapacityHistoryResponse", "properties": { "location": { + "description": "Output only. The location (region or zone) for which the capacity history is returned.\nIt is returned as a URL - For example,https://www.googleapis.com/compute/v1/projects/project/zones/zone.", "readOnly": true, "type": "string" }, "machineType": { + "description": "The machine type for which the capacity history is returned.", "type": "string" }, "preemptionHistory": { + "description": "The preemption history for the requested machine type and location.", "items": { "$ref": "CapacityHistoryResponsePreemptionRecord" }, "type": "array" }, "priceHistory": { + "description": "The price history for the requested machine type and location.", "items": { "$ref": "CapacityHistoryResponsePriceRecord" }, @@ -59264,12 +59362,15 @@ "type": "object" }, "CapacityHistoryResponsePreemptionRecord": { + "description": "A record of Spot VM preemption history.", "id": "CapacityHistoryResponsePreemptionRecord", "properties": { "interval": { - "$ref": "Interval" + "$ref": "Interval", + "description": "The time interval for this preemption record." }, "preemptionRate": { + "description": "The preemption rate during the interval, representing the fraction of\nSpot VMs that were preempted. Range: 0.0 to 1.0. Preemption rate is\ncalculated as (total preempted Spots) / (total Spots that stopped\nrunning).", "format": "double", "type": "number" } @@ -59277,13 +59378,16 @@ "type": "object" }, "CapacityHistoryResponsePriceRecord": { + "description": "A record of price history.", "id": "CapacityHistoryResponsePriceRecord", "properties": { "interval": { - "$ref": "Interval" + "$ref": "Interval", + "description": "The time interval for this price record." }, "listPrice": { - "$ref": "Money" + "$ref": "Money", + "description": "The Spot VM list price during the interval." } }, "type": "object" @@ -59337,9 +59441,11 @@ "enum": [ "CATEGORY_UNSPECIFIED", "LICENSE", - "MACHINE" + "MACHINE", + "PERSISTENT_DISK" ], "enumDescriptions": [ + "", "", "", "" @@ -59402,6 +59508,13 @@ "$ref": "CommitmentParams", "description": "Input only. Additional params passed with the request, but not persisted\nas part of resource payload." }, + "persistentDiskResources": { + "description": "Optional. Used when category is PERSISTENT_DISK.\nEach entry in the list represents a commitment to a specific Persistent\nDisk product type and dimension.", + "items": { + "$ref": "PersistentDiskResourceCommitment" + }, + "type": "array" + }, "plan": { "description": "The minimum time duration that you commit to purchasing resources.\nThe plan that you choose determines the preset term length of the\ncommitment (which is 1 year or 3 years) and affects the discount rate that\nyou receive for your resources. Committing to a longer time duration\ntypically gives you a higher discount rate. The supported values for this\nfield are TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years).", "enum": [ @@ -64197,7 +64310,7 @@ "id": "FirewallPolicyRule", "properties": { "action": { - "description": "The Action to perform when the client connection triggers the rule.\nValid actions for firewall rules are: \"allow\", \"deny\",\n\"apply_security_profile_group\" and \"goto_next\".\nValid actions for packet mirroring rules are: \"mirror\", \"do_not_mirror\"\nand \"goto_next\".", + "description": "The Action to perform when the client connection triggers the rule.\nValid actions for firewall rules are: \"allow\", \"deny\",\n\"apply_security_profile_group\" and \"goto_next\" (\n\"apply_security_profile_group\" can be specified only for global\nnetwork firewall policies or hierarchical firewall policies).\nValid actions for packet mirroring rules are: \"mirror\", \"do_not_mirror\"\nand \"goto_next\".", "type": "string" }, "description": { @@ -64250,7 +64363,7 @@ "type": "integer" }, "securityProfileGroup": { - "description": "A fully-qualified URL of a SecurityProfile resource instance.\nExample:\nhttps://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group\nMust be specified if action is one of 'apply_security_profile_group' or\n'mirror'. Cannot be specified for other actions.", + "description": "A fully-qualified URL of a SecurityProfileGroup resource instance.\nExample:\nhttps://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group\nMust be specified if action is one of 'apply_security_profile_group' or\n'mirror'. Cannot be specified for other actions. Can be specified only\nfor global network firewall policies or hierarchical firewall policies.", "type": "string" }, "targetForwardingRules": { @@ -71831,6 +71944,20 @@ "readOnly": true, "type": "string" }, + "localSsdEncryptionMode": { + "description": "Specifies which method should be used for encrypting the\nLocal SSDs attached to the VM.", + "enum": [ + "EPHEMERAL_KEY_ENCRYPTION", + "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED", + "STANDARD_ENCRYPTION" + ], + "enumDescriptions": [ + "The given VM will opt-in for using ephemeral key for\nencryption of Local SSDs.\nThe Local SSDs will not be able to recover data in case of VM\ncrash.", + "The given VM will be encrypted using keys managed by the cloud\ninfrastructure and the keys will be deleted when the VM is\ndeleted.", + "The given VM will be encrypted using keys managed by the cloud\ninfrastructure and the keys will be deleted when the VM is\ndeleted." + ], + "type": "string" + }, "machineType": { "description": "Full or partial URL of the machine type resource to use for this instance,\nin the format:zones/zone/machineTypes/machine-type. This is provided by the client\nwhen the instance is created. For example, the following is a valid partial\nurl to a predefined\nmachine type:\n\nzones/us-central1-f/machineTypes/n1-standard-1\n\n\nTo create acustom\nmachine type, provide a URL to a machine type in the following format,\nwhere CPUS is 1 or an even number up to 32 (2,\n4, 6, ... 24, etc), and MEMORY is the total\nmemory for this instance. Memory must be a multiple of 256 MB and must\nbe supplied in MB (e.g. 5 GB of memory is 5120 MB):\n\nzones/zone/machineTypes/custom-CPUS-MEMORY\n\n\nFor example: zones/us-central1-f/machineTypes/custom-4-5120\nFor a full list of restrictions, read theSpecifications\nfor custom machine types.", "type": "string" @@ -76102,6 +76229,20 @@ "description": "Labels to apply to instances that are created from these properties.", "type": "object" }, + "localSsdEncryptionMode": { + "description": "Specifies which method should be used for encrypting the\nLocal SSDs attached to the VM.", + "enum": [ + "EPHEMERAL_KEY_ENCRYPTION", + "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED", + "STANDARD_ENCRYPTION" + ], + "enumDescriptions": [ + "The given VM will opt-in for using ephemeral key for\nencryption of Local SSDs.\nThe Local SSDs will not be able to recover data in case of VM\ncrash.", + "The given VM will be encrypted using keys managed by the cloud\ninfrastructure and the keys will be deleted when the VM is\ndeleted.", + "The given VM will be encrypted using keys managed by the cloud\ninfrastructure and the keys will be deleted when the VM is\ndeleted." + ], + "type": "string" + }, "machineType": { "annotations": { "required": [ @@ -83878,12 +84019,12 @@ }, "scheduling": { "$ref": "ManagedInstanceScheduling", - "description": "Output only. [Output Only] Information about the termination timestamp of the instance,\nif applicable.", + "description": "Output only. Information about the termination timestamp of the instance, if applicable.", "readOnly": true }, "shutdownDetails": { "$ref": "ManagedInstanceShutdownDetails", - "description": "Output only. [Output Only] Specifies the graceful shutdown details if the instance is in\n`PENDING_STOP` state or there is a programmed stop scheduled.", + "description": "Output only. Specifies the graceful shutdown details if the instance is in\n`PENDING_STOP` state or there is a programmed stop scheduled.", "readOnly": true }, "targetStatus": { @@ -84052,13 +84193,13 @@ "id": "ManagedInstanceScheduling", "properties": { "gracefulShutdownTimestamp": { - "description": "Output only. [Output Only] The timestamp at which the underlying instance will be\ntriggered for graceful shutdown if it is configured. This is in RFC3339 text format.", + "description": "Output only. The timestamp at which the underlying instance will be\ntriggered for graceful shutdown if it is configured. This is in RFC3339 text format.", "format": "google-datetime", "readOnly": true, "type": "string" }, "terminationTimestamp": { - "description": "Output only. [Output Only] The timestamp at which the managed instance will be\nterminated. This is in RFC3339 text format.", + "description": "Output only. The timestamp at which the managed instance will be terminated. This is\nin RFC3339 text\nformat.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -84071,11 +84212,11 @@ "properties": { "maxDuration": { "$ref": "Duration", - "description": "Output only. [Output Only] The duration for graceful shutdown. Only applicable when\nthe instance is in `PENDING_STOP` state.", + "description": "Output only. The duration for graceful shutdown. Only applicable when the instance is\nin `PENDING_STOP` state.", "readOnly": true }, "requestTimestamp": { - "description": "Output only. [Output Only] Past timestamp indicating the beginning of `PENDING_STOP`\nstate of instance in RFC3339 text format.", + "description": "Output only. Past timestamp indicating the beginning of `PENDING_STOP` state of\ninstance in RFC3339\ntext format.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -85069,14 +85210,14 @@ "type": "string" }, "producerAcceptLists": { - "description": "Projects that are allowed to connect to this network attachment.\nThe project can be specified using its id or number.", + "description": "Projects or service class ids that are allowed to connect to this network\nattachment. The project can be specified using its id or number. Service\nclass id can be specified as \"serviceclasses/{service_class_id}\".", "items": { "type": "string" }, "type": "array" }, "producerRejectLists": { - "description": "Projects that are not allowed to connect to this network attachment.\nThe project can be specified using its id or number.", + "description": "Projects or service class ids that are not allowed to connect to this\nnetwork attachment. The project can be specified using its id or number.\nService class id can be specified as \"serviceclasses/{service_class_id}\".", "items": { "type": "string" }, @@ -93975,6 +94116,48 @@ }, "type": "object" }, + "PersistentDiskResourceCommitment": { + "description": "Commitment for a particular persistent disk resource.", + "id": "PersistentDiskResourceCommitment", + "properties": { + "amount": { + "description": "Required. The amount of the resource to commit to, in GiB.", + "format": "int64", + "type": "string" + }, + "dimensionType": { + "description": "The specific dimension of the product for this amount.", + "enum": [ + "CAPACITY_OPTIMIZED", + "DIMENSION_TYPE_UNSPECIFIED", + "READ_OPTIMIZED", + "WRITE_OPTIMIZED" + ], + "enumDescriptions": [ + "Dimensions for HYPERDISK_EXAPOOL_*\nRepresents a commitment for HYPERDISK_EXAPOOL_CAPACITY_CAPACITY_OPTIMIZED\nSKU.", + "", + "", + "" + ], + "type": "string" + }, + "productType": { + "description": "The PD product being committed to. All entries in a\nCommitment.persistent_disk_resources list must have the same product_type.", + "enum": [ + "HYPERDISK_EXAPOOL_BALANCED", + "HYPERDISK_EXAPOOL_THROUGHPUT", + "PRODUCT_TYPE_UNSPECIFIED" + ], + "enumDescriptions": [ + "Represents a commitment for Hyperdisk Exapool Balanced.", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "Policy": { "description": "An Identity and Access Management (IAM) policy, which specifies access\ncontrols for Google Cloud resources.\n\n\nA `Policy` is a collection of `bindings`. A `binding` binds one or more\n`members`, or principals, to a single `role`. Principals can be user\naccounts, service accounts, Google groups, and domains (such as G Suite). A\n`role` is a named list of permissions; each `role` can be an IAM predefined\nrole or a user-created custom role.\n\nFor some types of Google Cloud resources, a `binding` can also specify a\n`condition`, which is a logical expression that allows access to a resource\nonly if the expression evaluates to `true`. A condition can add constraints\nbased on attributes of the request, the resource, or both. To learn which\nresources support conditions in their IAM policies, see the\n[IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).\n\n**JSON example:**\n\n```\n {\n \"bindings\": [\n {\n \"role\": \"roles/resourcemanager.organizationAdmin\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-project-id@appspot.gserviceaccount.com\"\n ]\n },\n {\n \"role\": \"roles/resourcemanager.organizationViewer\",\n \"members\": [\n \"user:eve@example.com\"\n ],\n \"condition\": {\n \"title\": \"expirable access\",\n \"description\": \"Does not grant access after Sep 2020\",\n \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\",\n }\n }\n ],\n \"etag\": \"BwWWja0YfJA=\",\n \"version\": 3\n }\n```\n\n**YAML example:**\n\n```\n bindings:\n - members:\n - user:mike@example.com\n - group:admins@example.com\n - domain:google.com\n - serviceAccount:my-project-id@appspot.gserviceaccount.com\n role: roles/resourcemanager.organizationAdmin\n - members:\n - user:eve@example.com\n role: roles/resourcemanager.organizationViewer\n condition:\n title: expirable access\n description: Does not grant access after Sep 2020\n expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\n etag: BwWWja0YfJA=\n version: 3\n```\n\nFor a description of IAM and its features, see the\n[IAM documentation](https://cloud.google.com/iam/docs/).", "id": "Policy", @@ -96151,6 +96334,21 @@ }, "type": "object" }, + "RegexRewrite": { + "description": "The spec for modifying the path using a regular expression.", + "id": "RegexRewrite", + "properties": { + "pathPattern": { + "description": "The regular expression used to match against the URL path.\nIt uses RE2 syntax with the following constraints:\n \n \n - Any single character operators\n - Groups are allowed to have only submatch operator inside\n - Groups are allowed only without any char repetition, e.g.\n .*\n - Any char repetition, e.g. .*, is\n only allowed to be used in a single regex together with:\n \n \n - Empty string operators\n - Other repetitions\n - Ranges\n - Repetitions of ranges\n \n \n - Ranges are only allowed to have:\n \n \n - Character range\n - Digits range\n - Symbols listed in characters allowed for ranges", + "type": "string" + }, + "pathSubstitution": { + "description": "Required when path pattern is specified. Used to rewrite matching parts of\nthe path.", + "type": "string" + } + }, + "type": "object" + }, "Region": { "description": "Represents a Region resource.\n\nA region is a geographical area where a resource is located. For more\ninformation, readRegions\nand Zones.", "id": "Region", @@ -98250,6 +98448,218 @@ }, "type": "object" }, + "ReliabilityRisk": { + "description": "Represents a ReliabilityRisk resource.", + "id": "ReliabilityRisk", + "properties": { + "creationTimestamp": { + "description": "Output only. [Output Only] Creation timestamp in RFC3339\ntext format.", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "An optional textual description of the resource; provided when the\nresource is created.", + "type": "string" + }, + "details": { + "$ref": "RiskDetails", + "description": "[Output Only] Details of the reliability risk resource" + }, + "id": { + "description": "[Output Only] The unique identifier for the resource. This identifier is\ndefined by the server.", + "format": "uint64", + "type": "string" + }, + "kind": { + "default": "compute#reliabilityRisk", + "description": "Output only. [Output Only] Type of resource. Always compute#reliabilityRisk\nfor reliability risks.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Name of the resource. The name must be 1-63 characters long and\ncomply with RFC1035.", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "type": "string" + }, + "recommendation": { + "$ref": "RiskRecommendation", + "description": "The recommendation to mitigate the risk." + }, + "selfLink": { + "description": "Output only. [Output Only] Server-defined URL for the resource.", + "readOnly": true, + "type": "string" + }, + "selfLinkWithId": { + "description": "Output only. [Output Only] Server-defined URL for this resource with the resource id.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "ReliabilityRisksListResponse": { + "description": "Response message for the List method of ReliabilityRisksService.", + "id": "ReliabilityRisksListResponse", + "properties": { + "etag": { + "type": "string" + }, + "id": { + "description": "[Output Only] Unique identifier for the resource; defined by the server.", + "type": "string" + }, + "items": { + "description": "A list of ReliabilityRisk resources.", + "items": { + "$ref": "ReliabilityRisk" + }, + "type": "array" + }, + "nextPageToken": { + "description": "[Output Only] This token allows you to get the next page of results for\nlist requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for\nthe query parameter pageToken in the next list request.\nSubsequent list requests will have their own nextPageToken to\ncontinue paging through the results.", + "type": "string" + }, + "selfLink": { + "description": "Output only. [Output Only] Server-defined URL for this resource.", + "readOnly": true, + "type": "string" + }, + "unreachables": { + "description": "Output only. [Output Only] Unreachable resources.\nend_interface: MixerListResponseWithEtagBuilder", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "warning": { + "description": "[Output Only] Informational warning message.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute\nEngine returns NO_RESULTS_ON_PAGE if there\nare no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "LIST_OVERHEAD_QUOTA_EXCEED", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "QUOTA_INFO_UNAVAILABLE", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed\noperation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as\ndeprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as\nexperimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden.\nDeprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is\nnot of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "Resource can't be retrieved due to list overhead quota exceed\nwhich captures the amount of resources filtered out by\nuser-defined list filter.", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the\nnetwork.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an\nipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the\nsame network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite\nthe mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "Quota information is not available to client requests (e.g:\nregions.list).", + "The user attempted to use a resource that requires a TOS they have not\naccepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted\nbecause they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but\nits application does not make a lot of sense, because it allows only\nsingle instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key:\nvalue format. For example:\n\n\"data\": [\n {\n \"key\": \"scope\",\n \"value\": \"zones/us-east1-d\"\n }", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being\nreturned. For example, for warnings where there are no results in a list\nrequest for a particular zone, this key might be scope and\nthe key value might be the zone name. Other examples might be a key\nindicating a deprecated resource and a suggested replacement, or a\nwarning about invalid network settings (for example, if an instance\nattempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, "RequestMirrorPolicy": { "description": "A policy that specifies how requests intended for the route's backends\nare shadowed to a separate mirrored backend service. The load balancer\ndoesn't wait for responses from the shadow service. Before sending traffic\nto the shadow service, the host or authority header is suffixed with-shadow.", "id": "RequestMirrorPolicy", @@ -101329,6 +101739,98 @@ }, "type": "object" }, + "RiskDetails": { + "description": "Detailed insights and metrics about a detected reliability risk.", + "id": "RiskDetails", + "properties": { + "duration": { + "description": "The duration of the risk since it was detected.", + "format": "google-duration", + "type": "string" + }, + "globalDnsInsight": { + "$ref": "RiskDetailsGlobalDnsInsight", + "description": "Insight details for global DNS risk." + }, + "lastUpdateTimestamp": { + "description": "The last time the risk was updated.", + "format": "google-datetime", + "type": "string" + }, + "severity": { + "description": "The severity of the risk.", + "enum": [ + "CRITICAL", + "HIGH", + "LOW", + "MEDIUM", + "SEVERITY_UNSPECIFIED" + ], + "enumDescriptions": [ + "Critical severity.", + "High severity.", + "Low severity.", + "Medium severity.", + "No severity specified. The default value." + ], + "type": "string" + }, + "type": { + "description": "The type of risk.", + "enum": [ + "GLOBAL_DNS", + "RISK_TYPE_UNSPECIFIED" + ], + "enumDescriptions": [ + "Risk type related to global DNS.", + "Default value. This value is unused." + ], + "type": "string" + } + }, + "type": "object" + }, + "RiskDetailsGlobalDnsInsight": { + "description": "Detailed insights for a global DNS reliability risk.", + "id": "RiskDetailsGlobalDnsInsight", + "properties": { + "projectDefaultIsGlobalDns": { + "description": "Indicates whether the project's default DNS setting is global DNS.", + "type": "boolean" + }, + "queryObservationWindow": { + "description": "The observation window for the query counts.", + "format": "google-duration", + "type": "string" + }, + "riskyQueryCount": { + "description": "The number of queries that are risky. This is always less than or\nequal to total_query_count.", + "format": "int64", + "type": "string" + }, + "totalQueryCount": { + "description": "The total number of queries in the observation window.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "RiskRecommendation": { + "description": "Recommendation for mitigating a reliability risk, including a reference URL.", + "id": "RiskRecommendation", + "properties": { + "content": { + "description": "Mitigation guide for the risk.", + "type": "string" + }, + "referenceUrl": { + "description": "URL referencing a more detailed mitigation guide.", + "type": "string" + } + }, + "type": "object" + }, "Rollout": { "description": "Rollout resource.\n\nA Rollout is a specific instance of a RolloutPlan. It represents a single\nexecution of a strategy to roll out a specific resource. It also provides\nAPIs to interact with the rollout.", "id": "Rollout", @@ -110364,7 +110866,6 @@ "id": "SslPolicyReference", "properties": { "sslPolicy": { - "description": "URL of the SSL policy resource. Set this to empty string to clear any\nexisting SSL policy associated with the target proxy resource.", "type": "string" } }, @@ -112108,6 +112609,22 @@ "readOnly": true, "type": "string" }, + "ipv6NetworkTier": { + "description": "Specifies the network tier for EXTERNAL IPv6. Can only be set when\nipv6_access_type is EXTERNAL. Defaults to project defaultNetworkTier if not\nspecified during the creation of the subnetwork. This field is IMMUTABLE\nonce set with EXTERNAL IPv6.", + "enum": [ + "FIXED_STANDARD", + "PREMIUM", + "STANDARD", + "STANDARD_OVERRIDES_FIXED_STANDARD" + ], + "enumDescriptions": [ + "Public internet quality with fixed bandwidth.", + "High quality, Google-grade network tier, support for all networking\nproducts.", + "Public internet quality, only limited support for other networking\nproducts.", + "(Output only) Temporary tier for FIXED_STANDARD when fixed standard tier\nis expired or not configured." + ], + "type": "string" + }, "kind": { "default": "compute#subnetwork", "description": "Output only. [Output Only] Type of the resource. Always compute#subnetwork\nfor Subnetwork resources.", @@ -118009,6 +118526,10 @@ "pathTemplateRewrite": { "description": "If specified, the pattern rewrites the URL path (based on the :path\nheader) using the HTTP template syntax. \n\nA corresponding\npath_template_match must be specified. Any template variables must exist in\nthe path_template_match field. \n \n \n - -At least one variable must be specified in the path_template_match\n field \n - You can omit variables from the rewritten URL\n - The * and ** operators cannot be matched\n unless they have a corresponding variable name - e.g.\n {format=*} or {var=**}.\n\nFor example, a path_template_match of /static/{format=**}\ncould be rewritten as /static/content/{format} to prefix/content to the URL. Variables can also be re-ordered in a\nrewrite, so that /{country}/{format}/{suffix=**} can be\nrewritten as /content/{format}/{country}/{suffix}. \n\nAt least\none non-empty routeRules[].matchRules[].path_template_match is\nrequired. \n\nOnly one of path_prefix_rewrite orpath_template_rewrite may be specified.", "type": "string" + }, + "regexRewrite": { + "$ref": "RegexRewrite", + "description": "The regex rewrite to be applied to the URL. Only one ofpathPrefixRewrite, pathTemplateRewrite, orregexRewrite may be specified." } }, "type": "object" diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index 5c2aa248108..d8983c807b4 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -248,6 +248,7 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err s.RegionUrlMaps = NewRegionUrlMapsService(s) s.RegionZones = NewRegionZonesService(s) s.Regions = NewRegionsService(s) + s.ReliabilityRisks = NewReliabilityRisksService(s) s.ReservationBlocks = NewReservationBlocksService(s) s.ReservationSlots = NewReservationSlotsService(s) s.ReservationSubBlocks = NewReservationSubBlocksService(s) @@ -510,6 +511,8 @@ type Service struct { Regions *RegionsService + ReliabilityRisks *ReliabilityRisksService + ReservationBlocks *ReservationBlocksService ReservationSlots *ReservationSlotsService @@ -1504,6 +1507,15 @@ type RegionsService struct { s *Service } +func NewReliabilityRisksService(s *Service) *ReliabilityRisksService { + rs := &ReliabilityRisksService{s: s} + return rs +} + +type ReliabilityRisksService struct { + s *Service +} + func NewReservationBlocksService(s *Service) *ReservationBlocksService { rs := &ReservationBlocksService{s: s} return rs @@ -2713,24 +2725,39 @@ type Address struct { // identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` - // IpCollection: Reference to the source of external IPv4 addresses, - // like a PublicDelegatedPrefix (PDP) for BYOIP. - // The PDP must support enhanced IPv4 allocations. + // IpCollection: Reference to the source of IP addresses. // - // Use one of the following formats to specify a PDP when reserving an - // external IPv4 address using BYOIP. + // It supports the following cases: // // - - // Full resource URL, as - // inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/pub - // licDelegatedPrefixes/pdp-name + // Case 1: PublicDelegatedPrefix (PDP) for BYOIP external IPv4 + // addresses. The PDP must support enhanced IPv4 allocations. // - - // Partial URL, as in + // Case 2: Internal Range for global internal addresses. // // - // - - // projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - // - regions/region/publicDelegatedPrefixes/pdp-name + // + // Use one of the following formats to specify the resource: + // + // For a Public Delegated Prefix: + // + // - + // Full resource + // URL:https://www.googleapis.com/compute/v1/projects/projectId/regions/region/p + // ublicDelegatedPrefixes/pdp + // - Partial URL: + // - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name + // - regions/region/publicDelegatedPrefixes/pdp-name + // + // + // + // For an Internal Range: + // + // - Full + // URL:https://networkconnectivity.googleapis.com/v1/projects/project/locations/ + // global/internalRanges/internal-range + // - Partial + // URL:projects/project/locations/global/internalRanges/internal-range IpCollection string `json:"ipCollection,omitempty"` // IpVersion: The IP version that will be used by this address. Valid options // areIPV4 or IPV6. @@ -11859,10 +11886,18 @@ func (s CapacityHistoryRequestLocationPolicy) MarshalJSON() ([]byte, error) { // CapacityHistoryResponse: Contains the capacity history. type CapacityHistoryResponse struct { - Location string `json:"location,omitempty"` - MachineType string `json:"machineType,omitempty"` + // Location: Output only. The location (region or zone) for which the capacity + // history is returned. + // It is returned as a URL - For + // example,https://www.googleapis.com/compute/v1/projects/project/zones/zone. + Location string `json:"location,omitempty"` + // MachineType: The machine type for which the capacity history is returned. + MachineType string `json:"machineType,omitempty"` + // PreemptionHistory: The preemption history for the requested machine type and + // location. PreemptionHistory []*CapacityHistoryResponsePreemptionRecord `json:"preemptionHistory,omitempty"` - PriceHistory []*CapacityHistoryResponsePriceRecord `json:"priceHistory,omitempty"` + // PriceHistory: The price history for the requested machine type and location. + PriceHistory []*CapacityHistoryResponsePriceRecord `json:"priceHistory,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -11884,9 +11919,18 @@ func (s CapacityHistoryResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// CapacityHistoryResponsePreemptionRecord: A record of Spot VM preemption +// history. type CapacityHistoryResponsePreemptionRecord struct { - Interval *Interval `json:"interval,omitempty"` - PreemptionRate float64 `json:"preemptionRate,omitempty"` + // Interval: The time interval for this preemption record. + Interval *Interval `json:"interval,omitempty"` + // PreemptionRate: The preemption rate during the interval, representing the + // fraction of + // Spot VMs that were preempted. Range: 0.0 to 1.0. Preemption rate + // is + // calculated as (total preempted Spots) / (total Spots that stopped + // running). + PreemptionRate float64 `json:"preemptionRate,omitempty"` // ForceSendFields is a list of field names (e.g. "Interval") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -11919,9 +11963,12 @@ func (s *CapacityHistoryResponsePreemptionRecord) UnmarshalJSON(data []byte) err return nil } +// CapacityHistoryResponsePriceRecord: A record of price history. type CapacityHistoryResponsePriceRecord struct { - Interval *Interval `json:"interval,omitempty"` - ListPrice *Money `json:"listPrice,omitempty"` + // Interval: The time interval for this price record. + Interval *Interval `json:"interval,omitempty"` + // ListPrice: The Spot VM list price during the interval. + ListPrice *Money `json:"listPrice,omitempty"` // ForceSendFields is a list of field names (e.g. "Interval") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -12040,6 +12087,7 @@ type Commitment struct { // "CATEGORY_UNSPECIFIED" // "LICENSE" // "MACHINE" + // "PERSISTENT_DISK" Category string `json:"category,omitempty"` // CreationTimestamp: Output only. [Output Only] Creation timestamp // inRFC3339 @@ -12090,6 +12138,11 @@ type Commitment struct { // persisted // as part of resource payload. Params *CommitmentParams `json:"params,omitempty"` + // PersistentDiskResources: Optional. Used when category is + // PERSISTENT_DISK. + // Each entry in the list represents a commitment to a specific Persistent + // Disk product type and dimension. + PersistentDiskResources []*PersistentDiskResourceCommitment `json:"persistentDiskResources,omitempty"` // Plan: The minimum time duration that you commit to purchasing resources. // The plan that you choose determines the preset term length of the // commitment (which is 1 year or 3 years) and affects the discount rate @@ -18680,7 +18733,10 @@ type FirewallPolicyRule struct { // rule. // Valid actions for firewall rules are: "allow", // "deny", - // "apply_security_profile_group" and "goto_next". + // "apply_security_profile_group" and "goto_next" + // ( + // "apply_security_profile_group" can be specified only for global + // network firewall policies or hierarchical firewall policies). // Valid actions for packet mirroring rules are: "mirror", "do_not_mirror" // and "goto_next". Action string `json:"action,omitempty"` @@ -18727,13 +18783,15 @@ type FirewallPolicyRule struct { // a single firewall policy // rule. RuleTupleCount int64 `json:"ruleTupleCount,omitempty"` - // SecurityProfileGroup: A fully-qualified URL of a SecurityProfile resource + // SecurityProfileGroup: A fully-qualified URL of a SecurityProfileGroup + // resource // instance. // Example: // https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group // Must be specified if action is one of 'apply_security_profile_group' // or - // 'mirror'. Cannot be specified for other actions. + // 'mirror'. Cannot be specified for other actions. Can be specified only + // for global network firewall policies or hierarchical firewall policies. SecurityProfileGroup string `json:"securityProfileGroup,omitempty"` // TargetForwardingRules: A list of forwarding rules to which this rule // applies. @@ -28912,6 +28970,25 @@ type Instance struct { // LastSuspendedTimestamp: Output only. [Output Only] Last suspended timestamp // inRFC3339 text format. LastSuspendedTimestamp string `json:"lastSuspendedTimestamp,omitempty"` + // LocalSsdEncryptionMode: Specifies which method should be used for encrypting + // the + // Local SSDs attached to the VM. + // + // Possible values: + // "EPHEMERAL_KEY_ENCRYPTION" - The given VM will opt-in for using ephemeral + // key for + // encryption of Local SSDs. + // The Local SSDs will not be able to recover data in case of VM + // crash. + // "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED" - The given VM will be encrypted + // using keys managed by the cloud + // infrastructure and the keys will be deleted when the VM is + // deleted. + // "STANDARD_ENCRYPTION" - The given VM will be encrypted using keys managed + // by the cloud + // infrastructure and the keys will be deleted when the VM is + // deleted. + LocalSsdEncryptionMode string `json:"localSsdEncryptionMode,omitempty"` // MachineType: Full or partial URL of the machine type resource to use for // this instance, // in the format:zones/zone/machineTypes/machine-type. This is provided by the @@ -34553,6 +34630,25 @@ type InstanceProperties struct { KeyRevocationActionType string `json:"keyRevocationActionType,omitempty"` // Labels: Labels to apply to instances that are created from these properties. Labels map[string]string `json:"labels,omitempty"` + // LocalSsdEncryptionMode: Specifies which method should be used for encrypting + // the + // Local SSDs attached to the VM. + // + // Possible values: + // "EPHEMERAL_KEY_ENCRYPTION" - The given VM will opt-in for using ephemeral + // key for + // encryption of Local SSDs. + // The Local SSDs will not be able to recover data in case of VM + // crash. + // "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED" - The given VM will be encrypted + // using keys managed by the cloud + // infrastructure and the keys will be deleted when the VM is + // deleted. + // "STANDARD_ENCRYPTION" - The given VM will be encrypted using keys managed + // by the cloud + // infrastructure and the keys will be deleted when the VM is + // deleted. + LocalSsdEncryptionMode string `json:"localSsdEncryptionMode,omitempty"` // MachineType: The machine type to use for instances that are created from // these // properties. @@ -44257,12 +44353,11 @@ type ManagedInstance struct { // from // InstanceFlexibilityPolicy. PropertiesFromFlexibilityPolicy *ManagedInstancePropertiesFromFlexibilityPolicy `json:"propertiesFromFlexibilityPolicy,omitempty"` - // Scheduling: Output only. [Output Only] Information about the termination - // timestamp of the instance, - // if applicable. + // Scheduling: Output only. Information about the termination timestamp of the + // instance, if applicable. Scheduling *ManagedInstanceScheduling `json:"scheduling,omitempty"` - // ShutdownDetails: Output only. [Output Only] Specifies the graceful shutdown - // details if the instance is in + // ShutdownDetails: Output only. Specifies the graceful shutdown details if the + // instance is in // `PENDING_STOP` state or there is a programmed stop scheduled. ShutdownDetails *ManagedInstanceShutdownDetails `json:"shutdownDetails,omitempty"` // TargetStatus: Output only. [Output Only] The eventual status of the @@ -44518,14 +44613,15 @@ func (s ManagedInstancePropertiesFromFlexibilityPolicy) MarshalJSON() ([]byte, e } type ManagedInstanceScheduling struct { - // GracefulShutdownTimestamp: Output only. [Output Only] The timestamp at which - // the underlying instance will be + // GracefulShutdownTimestamp: Output only. The timestamp at which the + // underlying instance will be // triggered for graceful shutdown if it is configured. This is in RFC3339 text // format. GracefulShutdownTimestamp string `json:"gracefulShutdownTimestamp,omitempty"` - // TerminationTimestamp: Output only. [Output Only] The timestamp at which the - // managed instance will be - // terminated. This is in RFC3339 text format. + // TerminationTimestamp: Output only. The timestamp at which the managed + // instance will be terminated. This is + // in RFC3339 text + // format. TerminationTimestamp string `json:"terminationTimestamp,omitempty"` // ForceSendFields is a list of field names (e.g. "GracefulShutdownTimestamp") // to unconditionally include in API requests. By default, fields with empty or @@ -44546,13 +44642,14 @@ func (s ManagedInstanceScheduling) MarshalJSON() ([]byte, error) { } type ManagedInstanceShutdownDetails struct { - // MaxDuration: Output only. [Output Only] The duration for graceful shutdown. - // Only applicable when - // the instance is in `PENDING_STOP` state. + // MaxDuration: Output only. The duration for graceful shutdown. Only + // applicable when the instance is + // in `PENDING_STOP` state. MaxDuration *Duration `json:"maxDuration,omitempty"` - // RequestTimestamp: Output only. [Output Only] Past timestamp indicating the - // beginning of `PENDING_STOP` - // state of instance in RFC3339 text format. + // RequestTimestamp: Output only. Past timestamp indicating the beginning of + // `PENDING_STOP` state of + // instance in RFC3339 + // text format. RequestTimestamp string `json:"requestTimestamp,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxDuration") to // unconditionally include in API requests. By default, fields with empty or @@ -45847,13 +45944,17 @@ type NetworkAttachment struct { // belongs // to the same network as all the subnetworks. Network string `json:"network,omitempty"` - // ProducerAcceptLists: Projects that are allowed to connect to this network - // attachment. - // The project can be specified using its id or number. + // ProducerAcceptLists: Projects or service class ids that are allowed to + // connect to this network + // attachment. The project can be specified using its id or number. + // Service + // class id can be specified as "serviceclasses/{service_class_id}". ProducerAcceptLists []string `json:"producerAcceptLists,omitempty"` - // ProducerRejectLists: Projects that are not allowed to connect to this - // network attachment. - // The project can be specified using its id or number. + // ProducerRejectLists: Projects or service class ids that are not allowed to + // connect to this + // network attachment. The project can be specified using its id or + // number. + // Service class id can be specified as "serviceclasses/{service_class_id}". ProducerRejectLists []string `json:"producerRejectLists,omitempty"` // Region: Output only. [Output Only] URL of the region where the network // attachment resides. @@ -56555,6 +56656,50 @@ func (s PeriodicPartialMaintenanceSchedule) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// PersistentDiskResourceCommitment: Commitment for a particular persistent +// disk resource. +type PersistentDiskResourceCommitment struct { + // Amount: Required. The amount of the resource to commit to, in GiB. + Amount int64 `json:"amount,omitempty,string"` + // DimensionType: The specific dimension of the product for this amount. + // + // Possible values: + // "CAPACITY_OPTIMIZED" - Dimensions for HYPERDISK_EXAPOOL_* + // Represents a commitment for + // HYPERDISK_EXAPOOL_CAPACITY_CAPACITY_OPTIMIZED + // SKU. + // "DIMENSION_TYPE_UNSPECIFIED" + // "READ_OPTIMIZED" + // "WRITE_OPTIMIZED" + DimensionType string `json:"dimensionType,omitempty"` + // ProductType: The PD product being committed to. All entries in + // a + // Commitment.persistent_disk_resources list must have the same product_type. + // + // Possible values: + // "HYPERDISK_EXAPOOL_BALANCED" - Represents a commitment for Hyperdisk + // Exapool Balanced. + // "HYPERDISK_EXAPOOL_THROUGHPUT" + // "PRODUCT_TYPE_UNSPECIFIED" + ProductType string `json:"productType,omitempty"` + // ForceSendFields is a list of field names (e.g. "Amount") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Amount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PersistentDiskResourceCommitment) MarshalJSON() ([]byte, error) { + type NoMethod PersistentDiskResourceCommitment + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Policy: An Identity and Access Management (IAM) policy, which specifies // access // controls for Google Cloud resources. @@ -59139,6 +59284,55 @@ func (s Reference) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// RegexRewrite: The spec for modifying the path using a regular expression. +type RegexRewrite struct { + // PathPattern: The regular expression used to match against the URL path. + // It uses RE2 syntax with the following constraints: + // + // + // - Any single character operators + // - Groups are allowed to have only submatch operator inside + // - Groups are allowed only without any char repetition, e.g. + // .* + // - Any char repetition, e.g. .*, is + // only allowed to be used in a single regex together with: + // + // + // - Empty string operators + // - Other repetitions + // - Ranges + // - Repetitions of ranges + // + // + // - Ranges are only allowed to have: + // + // + // - Character range + // - Digits range + // - Symbols listed in characters allowed for ranges + PathPattern string `json:"pathPattern,omitempty"` + // PathSubstitution: Required when path pattern is specified. Used to rewrite + // matching parts of + // the path. + PathSubstitution string `json:"pathSubstitution,omitempty"` + // ForceSendFields is a list of field names (e.g. "PathPattern") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PathPattern") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RegexRewrite) MarshalJSON() ([]byte, error) { + type NoMethod RegexRewrite + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Region: Represents a Region resource. // // A region is a geographical area where a resource is located. For @@ -61911,6 +62105,242 @@ func (s RegionUrlMapsValidateRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ReliabilityRisk: Represents a ReliabilityRisk resource. +type ReliabilityRisk struct { + // CreationTimestamp: Output only. [Output Only] Creation timestamp in + // RFC3339 + // text format. + CreationTimestamp string `json:"creationTimestamp,omitempty"` + // Description: An optional textual description of the resource; provided when + // the + // resource is created. + Description string `json:"description,omitempty"` + // Details: [Output Only] Details of the reliability risk resource + Details *RiskDetails `json:"details,omitempty"` + // Id: [Output Only] The unique identifier for the resource. This identifier + // is + // defined by the server. + Id uint64 `json:"id,omitempty,string"` + // Kind: Output only. [Output Only] Type of resource. Always + // compute#reliabilityRisk + // for reliability risks. + Kind string `json:"kind,omitempty"` + // Name: Name of the resource. The name must be 1-63 characters long and + // comply with RFC1035. + Name string `json:"name,omitempty"` + // Recommendation: The recommendation to mitigate the risk. + Recommendation *RiskRecommendation `json:"recommendation,omitempty"` + // SelfLink: Output only. [Output Only] Server-defined URL for the resource. + SelfLink string `json:"selfLink,omitempty"` + // SelfLinkWithId: Output only. [Output Only] Server-defined URL for this + // resource with the resource id. + SelfLinkWithId string `json:"selfLinkWithId,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreationTimestamp") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreationTimestamp") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ReliabilityRisk) MarshalJSON() ([]byte, error) { + type NoMethod ReliabilityRisk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ReliabilityRisksListResponse: Response message for the List method of +// ReliabilityRisksService. +type ReliabilityRisksListResponse struct { + Etag string `json:"etag,omitempty"` + // Id: [Output Only] Unique identifier for the resource; defined by the server. + Id string `json:"id,omitempty"` + // Items: A list of ReliabilityRisk resources. + Items []*ReliabilityRisk `json:"items,omitempty"` + // NextPageToken: [Output Only] This token allows you to get the next page of + // results for + // list requests. If the number of results is larger thanmaxResults, 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. + NextPageToken string `json:"nextPageToken,omitempty"` + // SelfLink: Output only. [Output Only] Server-defined URL for this resource. + SelfLink string `json:"selfLink,omitempty"` + // Unreachables: Output only. [Output Only] Unreachable + // resources. + // end_interface: MixerListResponseWithEtagBuilder + Unreachables []string `json:"unreachables,omitempty"` + // Warning: [Output Only] Informational warning message. + Warning *ReliabilityRisksListResponseWarning `json:"warning,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ReliabilityRisksListResponse) MarshalJSON() ([]byte, error) { + type NoMethod ReliabilityRisksListResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ReliabilityRisksListResponseWarning: [Output Only] Informational warning +// message. +type ReliabilityRisksListResponseWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, + // Compute + // Engine returns NO_RESULTS_ON_PAGE if there + // are no results in the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made + // by a failed + // operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources + // has a type marked as + // deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is + // larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as + // experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. + // Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected + // kernel, which is deprecated. + // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend + // service is associated with a health check that is + // not of type HTTP/HTTPS/HTTP2. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list + // overhead quota exceed + // which captures the amount of resources filtered out by + // user-defined list filter. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not + // assigned to an instance on the + // network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip + // forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance + // URL refers to an instance that does not have an + // ipv6 interface on the same network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to + // an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL + // refers to an instance that is not on the + // same network as the route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a + // status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue + // the process despite + // the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing + // due to errors + // "QUOTA_INFO_UNAVAILABLE" - Quota information is not available to client + // requests (e.g: + // regions.list). + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that + // requires a TOS they have not + // accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is + // in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete + // could not be deleted + // because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance + // group manager is valid as such, but + // its application does not make a lot of sense, because it allows only + // single instance in instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are + // present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + // Data: [Output Only] Metadata about this warning in key: + // value format. For example: + // + // "data": [ + // { + // "key": "scope", + // "value": "zones/us-east1-d" + // } + Data []*ReliabilityRisksListResponseWarningData `json:"data,omitempty"` + // Message: [Output Only] A human-readable description of the warning code. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ReliabilityRisksListResponseWarning) MarshalJSON() ([]byte, error) { + type NoMethod ReliabilityRisksListResponseWarning + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type ReliabilityRisksListResponseWarningData struct { + // Key: [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). + Key string `json:"key,omitempty"` + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ReliabilityRisksListResponseWarningData) MarshalJSON() ([]byte, error) { + type NoMethod ReliabilityRisksListResponseWarningData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // RequestMirrorPolicy: A policy that specifies how requests intended for the // route's backends // are shadowed to a separate mirrored backend service. The load @@ -65568,6 +65998,105 @@ func (s ResourceStatusShutdownDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// RiskDetails: Detailed insights and metrics about a detected reliability +// risk. +type RiskDetails struct { + // Duration: The duration of the risk since it was detected. + Duration string `json:"duration,omitempty"` + // GlobalDnsInsight: Insight details for global DNS risk. + GlobalDnsInsight *RiskDetailsGlobalDnsInsight `json:"globalDnsInsight,omitempty"` + // LastUpdateTimestamp: The last time the risk was updated. + LastUpdateTimestamp string `json:"lastUpdateTimestamp,omitempty"` + // Severity: The severity of the risk. + // + // Possible values: + // "CRITICAL" - Critical severity. + // "HIGH" - High severity. + // "LOW" - Low severity. + // "MEDIUM" - Medium severity. + // "SEVERITY_UNSPECIFIED" - No severity specified. The default value. + Severity string `json:"severity,omitempty"` + // Type: The type of risk. + // + // Possible values: + // "GLOBAL_DNS" - Risk type related to global DNS. + // "RISK_TYPE_UNSPECIFIED" - Default value. This value is unused. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "Duration") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RiskDetails) MarshalJSON() ([]byte, error) { + type NoMethod RiskDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// RiskDetailsGlobalDnsInsight: Detailed insights for a global DNS reliability +// risk. +type RiskDetailsGlobalDnsInsight struct { + // ProjectDefaultIsGlobalDns: Indicates whether the project's default DNS + // setting is global DNS. + ProjectDefaultIsGlobalDns bool `json:"projectDefaultIsGlobalDns,omitempty"` + // QueryObservationWindow: The observation window for the query counts. + QueryObservationWindow string `json:"queryObservationWindow,omitempty"` + // RiskyQueryCount: The number of queries that are risky. This is always less + // than or + // equal to total_query_count. + RiskyQueryCount int64 `json:"riskyQueryCount,omitempty,string"` + // TotalQueryCount: The total number of queries in the observation window. + TotalQueryCount int64 `json:"totalQueryCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "ProjectDefaultIsGlobalDns") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ProjectDefaultIsGlobalDns") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RiskDetailsGlobalDnsInsight) MarshalJSON() ([]byte, error) { + type NoMethod RiskDetailsGlobalDnsInsight + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// RiskRecommendation: Recommendation for mitigating a reliability risk, +// including a reference URL. +type RiskRecommendation struct { + // Content: Mitigation guide for the risk. + Content string `json:"content,omitempty"` + // ReferenceUrl: URL referencing a more detailed mitigation guide. + ReferenceUrl string `json:"referenceUrl,omitempty"` + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RiskRecommendation) MarshalJSON() ([]byte, error) { + type NoMethod RiskRecommendation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Rollout: Rollout resource. // // A Rollout is a specific instance of a RolloutPlan. It represents a @@ -76833,9 +77362,6 @@ func (s SslPolicyWarningsData) MarshalJSON() ([]byte, error) { } type SslPolicyReference struct { - // SslPolicy: URL of the SSL policy resource. Set this to empty string to clear - // any - // existing SSL policy associated with the target proxy resource. SslPolicy string `json:"sslPolicy,omitempty"` // ForceSendFields is a list of field names (e.g. "SslPolicy") to // unconditionally include in API requests. By default, fields with empty or @@ -78845,6 +79371,26 @@ type Subnetwork struct { // "VM_AND_FR" // "VM_ONLY" Ipv6GceEndpoint string `json:"ipv6GceEndpoint,omitempty"` + // Ipv6NetworkTier: Specifies the network tier for EXTERNAL IPv6. Can only be + // set when + // ipv6_access_type is EXTERNAL. Defaults to project defaultNetworkTier if + // not + // specified during the creation of the subnetwork. This field is + // IMMUTABLE + // once set with EXTERNAL IPv6. + // + // Possible values: + // "FIXED_STANDARD" - Public internet quality with fixed bandwidth. + // "PREMIUM" - High quality, Google-grade network tier, support for all + // networking + // products. + // "STANDARD" - Public internet quality, only limited support for other + // networking + // products. + // "STANDARD_OVERRIDES_FIXED_STANDARD" - (Output only) Temporary tier for + // FIXED_STANDARD when fixed standard tier + // is expired or not configured. + Ipv6NetworkTier string `json:"ipv6NetworkTier,omitempty"` // Kind: Output only. [Output Only] Type of the resource. Always // compute#subnetwork // for Subnetwork resources. @@ -86568,6 +87114,9 @@ type UrlRewrite struct { // // Only one of path_prefix_rewrite orpath_template_rewrite may be specified. PathTemplateRewrite string `json:"pathTemplateRewrite,omitempty"` + // RegexRewrite: The regex rewrite to be applied to the URL. Only one + // ofpathPrefixRewrite, pathTemplateRewrite, orregexRewrite may be specified. + RegexRewrite *RegexRewrite `json:"regexRewrite,omitempty"` // ForceSendFields is a list of field names (e.g. "HostRewrite") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/compute/v0.beta/compute2-gen.go b/compute/v0.beta/compute2-gen.go index e28b396f3ee..b232f793a5c 100644 --- a/compute/v0.beta/compute2-gen.go +++ b/compute/v0.beta/compute2-gen.go @@ -7365,8 +7365,12 @@ type BackendServicesListUsableCall struct { header_ http.Header } -// ListUsable: Retrieves a list of all usable backend services in the specified -// project. +// ListUsable: Retrieves a list of all usable backend services for Application +// Load +// Balancers and Proxy Network Load Balancers in the specified project. +// Backend services for external and internal passthrough Network +// Load +// Balancers are not included in the response. // // - project: Project ID for this request. func (r *BackendServicesService) ListUsable(project string) *BackendServicesListUsableCall { @@ -88150,9 +88154,12 @@ type RegionBackendServicesListUsableCall struct { header_ http.Header } -// ListUsable: Retrieves a list of all usable backend services in the specified -// project in -// the given region. +// ListUsable: Retrieves a list of all usable backend services for Application +// Load +// Balancers and Proxy Network Load Balancers in the specified project in +// the +// given region. Backend services for external and internal passthrough +// Network Load Balancers are not included in the response. // // - project: Project ID for this request. // - region: Name of the region scoping this request. diff --git a/compute/v0.beta/compute3-gen.go b/compute/v0.beta/compute3-gen.go index 76dd2960525..1998caea7ef 100644 --- a/compute/v0.beta/compute3-gen.go +++ b/compute/v0.beta/compute3-gen.go @@ -37345,6 +37345,380 @@ func (c *RegionsListCall) Pages(ctx context.Context, f func(*RegionList) error) } } +type ReliabilityRisksGetCall struct { + s *Service + project string + reliabilityRisk string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns the specified ReliabilityRisk resource. +// +// - project: Project ID for this request. +// - reliabilityRisk: Name of the ReliabilityRisk resource to return. +func (r *ReliabilityRisksService) Get(project string, reliabilityRisk string) *ReliabilityRisksGetCall { + c := &ReliabilityRisksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.reliabilityRisk = reliabilityRisk + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ReliabilityRisksGetCall) Fields(s ...googleapi.Field) *ReliabilityRisksGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ReliabilityRisksGetCall) IfNoneMatch(entityTag string) *ReliabilityRisksGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ReliabilityRisksGetCall) Context(ctx context.Context) *ReliabilityRisksGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ReliabilityRisksGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ReliabilityRisksGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/reliabilityRisks/{reliabilityRisk}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "reliabilityRisk": c.reliabilityRisk, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.reliabilityRisks.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.reliabilityRisks.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *ReliabilityRisk.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 *ReliabilityRisksGetCall) Do(opts ...googleapi.CallOption) (*ReliabilityRisk, 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 := &ReliabilityRisk{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.reliabilityRisks.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ReliabilityRisksListCall struct { + s *Service + project string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Retrieves the list of reliabilityRisks available in the specified +// project. +// +// - project: Project ID for this request. +func (r *ReliabilityRisksService) List(project string) *ReliabilityRisksListCall { + c := &ReliabilityRisksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most +// Compute resources support two types of filter expressions: +// expressions that support regular expressions and expressions that follow +// API improvement proposal AIP-160. +// These two types of filter expressions cannot be mixed in one request. +// +// If you want to use AIP-160, your 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 `:*` 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 onresource 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) +// ``` +// +// If you want to use a regular expression, use the `eq` (equal) or `ne` +// (not equal) operator against a single un-parenthesized expression with +// or +// without quotes or against multiple parenthesized expressions. +// Examples: +// +// `fieldname eq unquoted literal` +// `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" +// `(fieldname1 eq literal) (fieldname2 ne "literal")` +// +// The literal value is interpreted as a regular expression using GoogleRE2 +// library syntax. +// The literal value must match the entire field. +// +// For example, to filter for instances that do not end with name +// "instance", +// you would use `name ne .*instance`. +// +// You cannot combine constraints on multiple fields using regular +// expressions. +func (c *ReliabilityRisksListCall) Filter(filter string) *ReliabilityRisksListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": 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`) +func (c *ReliabilityRisksListCall) MaxResults(maxResults int64) *ReliabilityRisksListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": 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. +func (c *ReliabilityRisksListCall) OrderBy(orderBy string) *ReliabilityRisksListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the +// `nextPageToken` returned by a previous list request to get +// the next page of results. +func (c *ReliabilityRisksListCall) PageToken(pageToken string) *ReliabilityRisksListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in +// case +// of failure. The default value is false. +// +// For example, when partial success behavior is enabled, aggregatedList for +// a +// single zone scope either returns all resources in the zone or no +// resources, +// with an error code. +func (c *ReliabilityRisksListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ReliabilityRisksListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ReliabilityRisksListCall) Fields(s ...googleapi.Field) *ReliabilityRisksListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ReliabilityRisksListCall) IfNoneMatch(entityTag string) *ReliabilityRisksListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ReliabilityRisksListCall) Context(ctx context.Context) *ReliabilityRisksListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ReliabilityRisksListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ReliabilityRisksListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/reliabilityRisks") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.reliabilityRisks.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.reliabilityRisks.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ReliabilityRisksListResponse.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 *ReliabilityRisksListCall) Do(opts ...googleapi.CallOption) (*ReliabilityRisksListResponse, 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 := &ReliabilityRisksListResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.reliabilityRisks.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ReliabilityRisksListCall) Pages(ctx context.Context, f func(*ReliabilityRisksListResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + type ReservationBlocksGetCall struct { s *Service project string diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index 125b352b028..18efc7d059a 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -2201,7 +2201,7 @@ ] }, "listUsable": { - "description": "Retrieves a list of all usable backend services in the specified project.", + "description": "Retrieves a list of all usable backend services for Application Load\nBalancers and Proxy Network Load Balancers in the specified project.\nBackend services for external and internal passthrough Network Load\nBalancers are not included in the response.", "flatPath": "projects/{project}/global/backendServices/listUsable", "httpMethod": "GET", "id": "compute.backendServices.listUsable", @@ -9475,6 +9475,12 @@ "required": true, "type": "string" }, + "noGracefulShutdown": { + "default": "false", + "description": "When set, graceful shutdown is skipped for instance deletion even if it's\nconfigured for the instances.", + "location": "query", + "type": "boolean" + }, "project": { "description": "Project ID for this request.", "location": "path", @@ -9520,6 +9526,12 @@ "required": true, "type": "string" }, + "noGracefulShutdown": { + "default": "false", + "description": "When set, graceful shutdown is skipped for instance deletion even if it's\nconfigured for the instances.", + "location": "query", + "type": "boolean" + }, "project": { "description": "Project ID for this request.", "location": "path", @@ -10058,6 +10070,12 @@ "required": true, "type": "string" }, + "noGracefulShutdown": { + "default": "false", + "description": "When set, graceful shutdown is skipped for instance recreation even if it's\nconfigured for the instances.", + "location": "query", + "type": "boolean" + }, "project": { "description": "Project ID for this request.", "location": "path", @@ -10351,6 +10369,12 @@ "required": true, "type": "string" }, + "noGracefulShutdown": { + "default": "false", + "description": "When set, graceful shutdown is skipped for instance stopping even if it's\nconfigured for the instances.", + "location": "query", + "type": "boolean" + }, "project": { "description": "Project ID for this request.", "location": "path", @@ -25047,7 +25071,7 @@ ] }, "listUsable": { - "description": "Retrieves a list of all usable backend services in the specified project in\nthe given region.", + "description": "Retrieves a list of all usable backend services for Application Load\nBalancers and Proxy Network Load Balancers in the specified project in the\ngiven region. Backend services for external and internal passthrough\nNetwork Load Balancers are not included in the response.", "flatPath": "projects/{project}/regions/{region}/backendServices/listUsable", "httpMethod": "GET", "id": "compute.regionBackendServices.listUsable", @@ -28924,6 +28948,12 @@ "required": true, "type": "string" }, + "noGracefulShutdown": { + "default": "false", + "description": "When set, graceful shutdown is skipped for instance deletion even if it's\nconfigured for the instances.", + "location": "query", + "type": "boolean" + }, "project": { "description": "Project ID for this request.", "location": "path", @@ -28969,6 +28999,12 @@ "required": true, "type": "string" }, + "noGracefulShutdown": { + "default": "false", + "description": "When set, graceful shutdown is skipped for instance deletion even if it's\nconfigured for the instances.", + "location": "query", + "type": "boolean" + }, "project": { "description": "Project ID for this request.", "location": "path", @@ -29507,6 +29543,12 @@ "required": true, "type": "string" }, + "noGracefulShutdown": { + "default": "false", + "description": "When set, graceful shutdown is skipped for instance recreation even if it's\nconfigured for the instances.", + "location": "query", + "type": "boolean" + }, "project": { "description": "Project ID for this request.", "location": "path", @@ -29801,6 +29843,12 @@ "required": true, "type": "string" }, + "noGracefulShutdown": { + "default": "false", + "description": "When set, graceful shutdown is skipped for instance stopping even if it's\nconfigured for the instances.", + "location": "query", + "type": "boolean" + }, "project": { "description": "Project ID for this request.", "location": "path", @@ -38418,6 +38466,58 @@ "https://www.googleapis.com/auth/compute" ] }, + "deleteNamedSet": { + "description": "Deletes Named Set", + "flatPath": "projects/{project}/regions/{region}/routers/{router}/deleteNamedSet", + "httpMethod": "POST", + "id": "compute.routers.deleteNamedSet", + "parameterOrder": [ + "project", + "region", + "router" + ], + "parameters": { + "namedSet": { + "description": "The Named Set name for this request. Name must conform to RFC1035", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so\nthat if you must retry your request, the server will know to ignore the\nrequest if it has already been completed.\n\nFor example, consider a situation where you make an initial request and\nthe request times out. If you make the request again with the same\nrequest ID, the server can check if original operation with the same\nrequest ID was received, and if so, will ignore the second request. This\nprevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be\na valid UUID with the exception that zero UUID is not supported\n(00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "router": { + "description": "Name of the Router resource where Named Set is defined.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/routers/{router}/deleteNamedSet", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "deleteRoutePolicy": { "description": "Deletes Route Policy", "flatPath": "projects/{project}/regions/{region}/routers/{router}/deleteRoutePolicy", @@ -38513,6 +38613,53 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "getNamedSet": { + "description": "Returns specified Named Set", + "flatPath": "projects/{project}/regions/{region}/routers/{router}/getNamedSet", + "httpMethod": "GET", + "id": "compute.routers.getNamedSet", + "parameterOrder": [ + "project", + "region", + "router" + ], + "parameters": { + "namedSet": { + "description": "The Named Set name for this request. Name must conform to RFC1035", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "router": { + "description": "Name of the Router resource to query for the named set. The name should\nconform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/routers/{router}/getNamedSet", + "response": { + "$ref": "RoutersGetNamedSetResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, "getNatIpInfo": { "description": "Retrieves runtime NAT IP information.", "flatPath": "projects/{project}/regions/{region}/routers/{router}/getNatIpInfo", @@ -38950,6 +39097,77 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "listNamedSets": { + "description": "Retrieves a list of router named set subresources available to the\nspecified project.", + "flatPath": "projects/{project}/regions/{region}/routers/{router}/listNamedSets", + "httpMethod": "GET", + "id": "compute.routers.listNamedSets", + "parameterOrder": [ + "project", + "region", + "router" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most\nCompute resources support two types of filter expressions:\nexpressions that support regular expressions and expressions that follow\nAPI improvement proposal AIP-160.\nThese two types of filter expressions cannot be mixed in one request.\n\nIf you want to use AIP-160, your expression must specify the field name, an\noperator, and the value that you want to use for filtering. The value\nmust be a string, a number, or a boolean. The operator\nmust be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`.\n\nFor example, if you are filtering Compute Engine instances, you can\nexclude instances named `example-instance` by specifying\n`name != example-instance`.\n\nThe `:*` comparison can be used to test whether a key has been defined.\nFor example, to find all objects with `owner` label use:\n```\nlabels.owner:*\n```\n\nYou can also filter nested fields. For example, you could specify\n`scheduling.automaticRestart = false` to include instances only\nif they are not scheduled for automatic restarts. You can use filtering\non nested fields to filter based onresource labels.\n\nTo filter on multiple expressions, provide each separate expression within\nparentheses. For example:\n```\n(scheduling.automaticRestart = true)\n(cpuPlatform = \"Intel Skylake\")\n```\nBy default, each expression is an `AND` expression. However, you\ncan include `AND` and `OR` expressions explicitly.\nFor example:\n```\n(cpuPlatform = \"Intel Skylake\") OR\n(cpuPlatform = \"Intel Broadwell\") AND\n(scheduling.automaticRestart = true)\n```\n\nIf you want to use a regular expression, use the `eq` (equal) or `ne`\n(not equal) operator against a single un-parenthesized expression with or\nwithout quotes or against multiple parenthesized expressions. Examples:\n\n`fieldname eq unquoted literal`\n`fieldname eq 'single quoted literal'`\n`fieldname eq \"double quoted literal\"`\n`(fieldname1 eq literal) (fieldname2 ne \"literal\")`\n\nThe literal value is interpreted as a regular expression using GoogleRE2 library syntax.\nThe literal value must match the entire field.\n\nFor example, to filter for instances that do not end with name \"instance\",\nyou would use `name ne .*instance`.\n\nYou cannot combine constraints on multiple fields using regular\nexpressions.", + "location": "query", + "type": "string" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned.\nIf the number of available results is larger than `maxResults`,\nCompute Engine returns a `nextPageToken` that can be used to get\nthe next page of results in subsequent list requests. Acceptable values are\n`0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results\nare returned in alphanumerical order based on the resource name.\n\nYou can also sort results in descending order based on the creation\ntimestamp using `orderBy=\"creationTimestamp desc\"`. This sorts\nresults based on the `creationTimestamp` field in\nreverse chronological order (newest result first). Use this to sort\nresources like operations so that the newest operation is returned first.\n\nCurrently, only sorting by `name` or\n`creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the\n`nextPageToken` returned by a previous list request to get\nthe next page of results.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case\nof failure. The default value is false.\n\nFor example, when partial success behavior is enabled, aggregatedList for a\nsingle zone scope either returns all resources in the zone or no resources,\nwith an error code.", + "location": "query", + "type": "boolean" + }, + "router": { + "description": "Name or id of the resource for this request.\nName should conform to RFC1035.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/routers/{router}/listNamedSets", + "response": { + "$ref": "RoutersListNamedSets" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, "listRoutePolicies": { "description": "Retrieves a list of router route policy subresources available to the\nspecified project.", "flatPath": "projects/{project}/regions/{region}/routers/{router}/listRoutePolicies", @@ -39071,6 +39289,56 @@ "https://www.googleapis.com/auth/compute" ] }, + "patchNamedSet": { + "description": "Patches Named Set", + "flatPath": "projects/{project}/regions/{region}/routers/{router}/patchNamedSet", + "httpMethod": "POST", + "id": "compute.routers.patchNamedSet", + "parameterOrder": [ + "project", + "region", + "router" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so\nthat if you must retry your request, the server will know to ignore the\nrequest if it has already been completed.\n\nFor example, consider a situation where you make an initial request and\nthe request times out. If you make the request again with the same\nrequest ID, the server can check if original operation with the same\nrequest ID was received, and if so, will ignore the second request. This\nprevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be\na valid UUID with the exception that zero UUID is not supported\n(00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "router": { + "description": "Name of the Router resource where Named Set is defined.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/routers/{router}/patchNamedSet", + "request": { + "$ref": "NamedSet" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "patchRoutePolicy": { "description": "Patches Route Policy", "flatPath": "projects/{project}/regions/{region}/routers/{router}/patchRoutePolicy", @@ -39217,6 +39485,56 @@ "https://www.googleapis.com/auth/compute" ] }, + "updateNamedSet": { + "description": "Updates or creates new Named Set", + "flatPath": "projects/{project}/regions/{region}/routers/{router}/updateNamedSet", + "httpMethod": "POST", + "id": "compute.routers.updateNamedSet", + "parameterOrder": [ + "project", + "region", + "router" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so\nthat if you must retry your request, the server will know to ignore the\nrequest if it has already been completed.\n\nFor example, consider a situation where you make an initial request and\nthe request times out. If you make the request again with the same\nrequest ID, the server can check if original operation with the same\nrequest ID was received, and if so, will ignore the second request. This\nprevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be\na valid UUID with the exception that zero UUID is not supported\n(00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "router": { + "description": "Name of the Router resource where Named Set is defined.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/routers/{router}/updateNamedSet", + "request": { + "$ref": "NamedSet" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "updateRoutePolicy": { "description": "Updates or creates new Route Policy", "flatPath": "projects/{project}/regions/{region}/routers/{router}/updateRoutePolicy", @@ -47903,7 +48221,7 @@ } } }, - "revision": "20260625", + "revision": "20260629", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -48630,7 +48948,7 @@ "type": "string" }, "ipCollection": { - "description": "Reference to the source of external IPv4 addresses,\nlike a PublicDelegatedPrefix (PDP) for BYOIP.\nThe PDP must support enhanced IPv4 allocations.\n\nUse one of the following formats to specify a PDP when reserving an\nexternal IPv4 address using BYOIP.\n \n - \n Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name\n - \n Partial URL, as in\n \n \n - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name\n - regions/region/publicDelegatedPrefixes/pdp-name", + "description": "Reference to the source of IP addresses.\n\nIt supports the following cases:\n \n - \n Case 1: PublicDelegatedPrefix (PDP) for BYOIP external IPv4\n addresses. The PDP must support enhanced IPv4 allocations.\n - \n Case 2: Internal Range for global internal addresses.\n\n\n\nUse one of the following formats to specify the resource:\n\nFor a Public Delegated Prefix:\n \n - \n Full resource URL:https://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp\n - Partial URL:\n - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name\n - regions/region/publicDelegatedPrefixes/pdp-name\n \n\n\nFor an Internal Range:\n \n - Full URL:https://networkconnectivity.googleapis.com/v1/projects/project/locations/global/internalRanges/internal-range\n - Partial URL:projects/project/locations/global/internalRanges/internal-range", "type": "string" }, "ipVersion": { @@ -58758,7 +59076,7 @@ "id": "FirewallPolicyRule", "properties": { "action": { - "description": "The Action to perform when the client connection triggers the rule.\nValid actions for firewall rules are: \"allow\", \"deny\",\n\"apply_security_profile_group\" and \"goto_next\".\nValid actions for packet mirroring rules are: \"mirror\", \"do_not_mirror\"\nand \"goto_next\".", + "description": "The Action to perform when the client connection triggers the rule.\nValid actions for firewall rules are: \"allow\", \"deny\",\n\"apply_security_profile_group\" and \"goto_next\" (\n\"apply_security_profile_group\" can be specified only for global\nnetwork firewall policies or hierarchical firewall policies).\nValid actions for packet mirroring rules are: \"mirror\", \"do_not_mirror\"\nand \"goto_next\".", "type": "string" }, "description": { @@ -58811,7 +59129,7 @@ "type": "integer" }, "securityProfileGroup": { - "description": "A fully-qualified URL of a SecurityProfile resource instance.\nExample:\nhttps://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group\nMust be specified if action is one of 'apply_security_profile_group' or\n'mirror'. Cannot be specified for other actions.", + "description": "A fully-qualified URL of a SecurityProfileGroup resource instance.\nExample:\nhttps://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group\nMust be specified if action is one of 'apply_security_profile_group' or\n'mirror'. Cannot be specified for other actions. Can be specified only\nfor global network firewall policies or hierarchical firewall policies.", "type": "string" }, "targetForwardingRules": { @@ -65890,6 +66208,20 @@ "readOnly": true, "type": "string" }, + "localSsdEncryptionMode": { + "description": "Specifies which method should be used for encrypting the\nLocal SSDs attached to the VM.", + "enum": [ + "EPHEMERAL_KEY_ENCRYPTION", + "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED", + "STANDARD_ENCRYPTION" + ], + "enumDescriptions": [ + "The given VM will opt-in for using ephemeral key for\nencryption of Local SSDs.\nThe Local SSDs will not be able to recover data in case of VM\ncrash.", + "The given VM will be encrypted using keys managed by the cloud\ninfrastructure and the keys will be deleted when the VM is\ndeleted.", + "The given VM will be encrypted using keys managed by the cloud\ninfrastructure and the keys will be deleted when the VM is\ndeleted." + ], + "type": "string" + }, "machineType": { "description": "Full or partial URL of the machine type resource to use for this instance,\nin the format:zones/zone/machineTypes/machine-type. This is provided by the client\nwhen the instance is created. For example, the following is a valid partial\nurl to a predefined\nmachine type:\n\nzones/us-central1-f/machineTypes/n1-standard-1\n\n\nTo create acustom\nmachine type, provide a URL to a machine type in the following format,\nwhere CPUS is 1 or an even number up to 32 (2,\n4, 6, ... 24, etc), and MEMORY is the total\nmemory for this instance. Memory must be a multiple of 256 MB and must\nbe supplied in MB (e.g. 5 GB of memory is 5120 MB):\n\nzones/zone/machineTypes/custom-CPUS-MEMORY\n\n\nFor example: zones/us-central1-f/machineTypes/custom-4-5120\nFor a full list of restrictions, read theSpecifications\nfor custom machine types.", "type": "string" @@ -67455,6 +67787,13 @@ "readOnly": true, "type": "string" }, + "instances": { + "description": "The names of instances to be created by this resize request. The number of\nnames specified determines the number of instances to create. The group's\ntarget size will be increased by this number. This field cannot be used\ntogether with 'resize_by'.", + "items": { + "$ref": "PerInstanceConfig" + }, + "type": "array" + }, "kind": { "default": "compute#instanceGroupManagerResizeRequest", "description": "Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.", @@ -69727,6 +70066,20 @@ "description": "Labels to apply to instances that are created from these properties.", "type": "object" }, + "localSsdEncryptionMode": { + "description": "Specifies which method should be used for encrypting the\nLocal SSDs attached to the VM.", + "enum": [ + "EPHEMERAL_KEY_ENCRYPTION", + "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED", + "STANDARD_ENCRYPTION" + ], + "enumDescriptions": [ + "The given VM will opt-in for using ephemeral key for\nencryption of Local SSDs.\nThe Local SSDs will not be able to recover data in case of VM\ncrash.", + "The given VM will be encrypted using keys managed by the cloud\ninfrastructure and the keys will be deleted when the VM is\ndeleted.", + "The given VM will be encrypted using keys managed by the cloud\ninfrastructure and the keys will be deleted when the VM is\ndeleted." + ], + "type": "string" + }, "machineType": { "annotations": { "required": [ @@ -77225,6 +77578,16 @@ "description": "Output only. [Output Only] Instance properties selected for this instance resulting from\nInstanceFlexibilityPolicy.", "readOnly": true }, + "scheduling": { + "$ref": "ManagedInstanceScheduling", + "description": "Output only. Information about the termination timestamp of the instance, if applicable.", + "readOnly": true + }, + "shutdownDetails": { + "$ref": "ManagedInstanceShutdownDetails", + "description": "Output only. Specifies the graceful shutdown details if the instance is in\n`PENDING_STOP` state or there is a programmed stop scheduled.", + "readOnly": true + }, "version": { "$ref": "ManagedInstanceVersion", "description": "Output only. [Output Only] Intended version of this instance.", @@ -77329,6 +77692,41 @@ }, "type": "object" }, + "ManagedInstanceScheduling": { + "id": "ManagedInstanceScheduling", + "properties": { + "gracefulShutdownTimestamp": { + "description": "Output only. The timestamp at which the underlying instance will be\ntriggered for graceful shutdown if it is configured. This is in RFC3339 text format.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "terminationTimestamp": { + "description": "Output only. The timestamp at which the managed instance will be terminated. This is\nin RFC3339 text\nformat.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "ManagedInstanceShutdownDetails": { + "id": "ManagedInstanceShutdownDetails", + "properties": { + "maxDuration": { + "$ref": "Duration", + "description": "Output only. The duration for graceful shutdown. Only applicable when the instance is\nin `PENDING_STOP` state.", + "readOnly": true + }, + "requestTimestamp": { + "description": "Output only. Past timestamp indicating the beginning of `PENDING_STOP` state of\ninstance in RFC3339\ntext format.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ManagedInstanceVersion": { "id": "ManagedInstanceVersion", "properties": { @@ -77453,6 +77851,44 @@ }, "type": "object" }, + "NamedSet": { + "id": "NamedSet", + "properties": { + "description": { + "description": "An optional description of named set.", + "type": "string" + }, + "elements": { + "description": "CEL expressions that are comparable to constructs of this set's type\n(see Policy Language).", + "items": { + "$ref": "Expr" + }, + "type": "array" + }, + "fingerprint": { + "description": "A fingerprint for the Named Set being applied to this Router, which is\nessentially a hash of the Named Set used for optimistic locking.\nThe fingerprint is initially generated by Compute Engine and changes\nafter every request to modify or update the Named Set. You must always\nprovide an up-to-date fingerprint hash in order to update or change\nlabels.\n\nTo see the latest fingerprint, make a getNamedSet() request\nto retrieve a Named Set.", + "format": "byte", + "type": "string" + }, + "name": { + "description": "This set's name, which must be a resource ID segment and unique within all\nnamed sets owned by the Router. Name should conform to RFC1035.", + "type": "string" + }, + "type": { + "description": "This named set's type", + "enum": [ + "NAMED_SET_TYPE_COMMUNITY", + "NAMED_SET_TYPE_PREFIX" + ], + "enumDescriptions": [ + "The Named Set is a Community Named Set.", + "The Named Set is a Prefix Named Set." + ], + "type": "string" + } + }, + "type": "object" + }, "NatIpInfo": { "description": "Contains NAT IP information of a NAT config (i.e. usage status, mode).", "id": "NatIpInfo", @@ -77710,14 +78146,14 @@ "type": "string" }, "producerAcceptLists": { - "description": "Projects that are allowed to connect to this network attachment.\nThe project can be specified using its id or number.", + "description": "Projects or service class ids that are allowed to connect to this network\nattachment. The project can be specified using its id or number. Service\nclass id can be specified as \"serviceclasses/{service_class_id}\".", "items": { "type": "string" }, "type": "array" }, "producerRejectLists": { - "description": "Projects that are not allowed to connect to this network attachment.\nThe project can be specified using its id or number.", + "description": "Projects or service class ids that are not allowed to connect to this\nnetwork attachment. The project can be specified using its id or number.\nService class id can be specified as \"serviceclasses/{service_class_id}\".", "items": { "type": "string" }, @@ -95519,6 +95955,19 @@ }, "type": "object" }, + "RoutersGetNamedSetResponse": { + "id": "RoutersGetNamedSetResponse", + "properties": { + "etag": { + "description": "end_interface: MixerGetResponseWithEtagBuilder", + "type": "string" + }, + "resource": { + "$ref": "NamedSet" + } + }, + "type": "object" + }, "RoutersGetRoutePolicyResponse": { "id": "RoutersGetRoutePolicyResponse", "properties": { @@ -95695,6 +96144,173 @@ }, "type": "object" }, + "RoutersListNamedSets": { + "id": "RoutersListNamedSets", + "properties": { + "etag": { + "type": "string" + }, + "id": { + "description": "[Output Only] The unique identifier for the resource. This identifier is\ndefined by the server.", + "type": "string" + }, + "kind": { + "default": "compute#routersListNamedSets", + "description": "Output only. [Output Only] Type of resource. Alwayscompute#routersListNamedSets for lists of named sets.", + "readOnly": true, + "type": "string" + }, + "nextPageToken": { + "description": "[Output Only] This token allows you to get the next page of results for\nlist requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for\nthe query parameter pageToken in the next list request.\nSubsequent list requests will have their own nextPageToken to\ncontinue paging through the results.", + "type": "string" + }, + "result": { + "description": "[Output Only] A list of named sets.", + "items": { + "$ref": "NamedSet" + }, + "type": "array" + }, + "selfLink": { + "description": "Output only. [Output Only] Server-defined URL for this resource.", + "readOnly": true, + "type": "string" + }, + "unreachables": { + "description": "Output only. [Output Only] Unreachable resources.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "warning": { + "description": "[Output Only] Informational warning message.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute\nEngine returns NO_RESULTS_ON_PAGE if there\nare no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "LIST_OVERHEAD_QUOTA_EXCEED", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "QUOTA_INFO_UNAVAILABLE", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed\noperation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as\ndeprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as\nexperimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden.\nDeprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is\nnot of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "Resource can't be retrieved due to list overhead quota exceed\nwhich captures the amount of resources filtered out by\nuser-defined list filter.", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the\nnetwork.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an\nipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the\nsame network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite\nthe mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "Quota information is not available to client requests (e.g:\nregions.list).", + "The user attempted to use a resource that requires a TOS they have not\naccepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted\nbecause they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but\nits application does not make a lot of sense, because it allows only\nsingle instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key:\nvalue format. For example:\n\n\"data\": [\n {\n \"key\": \"scope\",\n \"value\": \"zones/us-east1-d\"\n }", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being\nreturned. For example, for warnings where there are no results in a list\nrequest for a particular zone, this key might be scope and\nthe key value might be the zone name. Other examples might be a key\nindicating a deprecated resource and a suggested replacement, or a\nwarning about invalid network settings (for example, if an instance\nattempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, "RoutersListRoutePolicies": { "id": "RoutersListRoutePolicies", "properties": { @@ -100782,7 +101398,6 @@ "id": "SslPolicyReference", "properties": { "sslPolicy": { - "description": "URL of the SSL policy resource. Set this to empty string to clear any\nexisting SSL policy associated with the target proxy resource.", "type": "string" } }, @@ -103075,6 +103690,23 @@ "description": "The range of IP addresses belonging to this subnetwork secondary range.\nProvide this property when you create the subnetwork. Ranges must be\nunique and non-overlapping with all primary and secondary IP ranges\nwithin a network. Both IPv4 and IPv6 ranges are supported. For IPv4,\nthe range can be any range listed in theValid\nranges list.\n\nFor IPv6:\nThe range must have a /64 prefix length.\nThe range must be omitted, for auto-allocation from Google-defined ULA\nIPv6 range.\nFor BYOGUA internal IPv6 secondary range, the range may be specified\nalong with the `ipCollection` field.\nIf an `ipCollection` is specified, the requested ip_cidr_range must lie\nwithin the range of the PDP referenced by the `ipCollection` field for\nallocation.\nIf `ipCollection` field is specified, but ip_cidr_range is not,\nthe range is auto-allocated from the PDP referenced by the `ipCollection`\nfield.", "type": "string" }, + "ipCollection": { + "description": "Reference to a Public Delegated Prefix (PDP) for BYOIP.\nThis field should be specified for configuring BYOGUA internal IPv6\nsecondary range.\nWhen specified along with the ip_cidr_range, the ip_cidr_range must lie\nwithin the PDP referenced by the `ipCollection` field.\nWhen specified without the ip_cidr_range, the range is auto-allocated\nfrom the PDP referenced by the `ipCollection` field.", + "type": "string" + }, + "ipVersion": { + "enum": [ + "IPV4", + "IPV6", + "IP_VERSION_UNSPECIFIED" + ], + "enumDescriptions": [ + "", + "", + "Treated as IPV4 for backward-compatibility." + ], + "type": "string" + }, "rangeName": { "description": "The name associated with this subnetwork secondary range, used when adding\nan alias IP/IPv6 range to a VM instance.\nThe name must be 1-63 characters long, and comply withRFC1035.\nThe name must be unique within the subnetwork.", "type": "string" diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index b91bfb2fb8f..0f1b99c48c3 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -2581,24 +2581,39 @@ type Address struct { // identifier is // defined by the server. Id uint64 `json:"id,omitempty,string"` - // IpCollection: Reference to the source of external IPv4 addresses, - // like a PublicDelegatedPrefix (PDP) for BYOIP. - // The PDP must support enhanced IPv4 allocations. + // IpCollection: Reference to the source of IP addresses. // - // Use one of the following formats to specify a PDP when reserving an - // external IPv4 address using BYOIP. + // It supports the following cases: // // - - // Full resource URL, as - // inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/pub - // licDelegatedPrefixes/pdp-name + // Case 1: PublicDelegatedPrefix (PDP) for BYOIP external IPv4 + // addresses. The PDP must support enhanced IPv4 allocations. // - - // Partial URL, as in + // Case 2: Internal Range for global internal addresses. // // - // - - // projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name - // - regions/region/publicDelegatedPrefixes/pdp-name + // + // Use one of the following formats to specify the resource: + // + // For a Public Delegated Prefix: + // + // - + // Full resource + // URL:https://www.googleapis.com/compute/v1/projects/projectId/regions/region/p + // ublicDelegatedPrefixes/pdp + // - Partial URL: + // - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name + // - regions/region/publicDelegatedPrefixes/pdp-name + // + // + // + // For an Internal Range: + // + // - Full + // URL:https://networkconnectivity.googleapis.com/v1/projects/project/locations/ + // global/internalRanges/internal-range + // - Partial + // URL:projects/project/locations/global/internalRanges/internal-range IpCollection string `json:"ipCollection,omitempty"` // IpVersion: The IP version that will be used by this address. Valid options // areIPV4 or IPV6. @@ -17429,7 +17444,10 @@ type FirewallPolicyRule struct { // rule. // Valid actions for firewall rules are: "allow", // "deny", - // "apply_security_profile_group" and "goto_next". + // "apply_security_profile_group" and "goto_next" + // ( + // "apply_security_profile_group" can be specified only for global + // network firewall policies or hierarchical firewall policies). // Valid actions for packet mirroring rules are: "mirror", "do_not_mirror" // and "goto_next". Action string `json:"action,omitempty"` @@ -17476,13 +17494,15 @@ type FirewallPolicyRule struct { // a single firewall policy // rule. RuleTupleCount int64 `json:"ruleTupleCount,omitempty"` - // SecurityProfileGroup: A fully-qualified URL of a SecurityProfile resource + // SecurityProfileGroup: A fully-qualified URL of a SecurityProfileGroup + // resource // instance. // Example: // https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group // Must be specified if action is one of 'apply_security_profile_group' // or - // 'mirror'. Cannot be specified for other actions. + // 'mirror'. Cannot be specified for other actions. Can be specified only + // for global network firewall policies or hierarchical firewall policies. SecurityProfileGroup string `json:"securityProfileGroup,omitempty"` // TargetForwardingRules: A list of forwarding rules to which this rule // applies. @@ -27036,6 +27056,25 @@ type Instance struct { // LastSuspendedTimestamp: Output only. [Output Only] Last suspended timestamp // inRFC3339 text format. LastSuspendedTimestamp string `json:"lastSuspendedTimestamp,omitempty"` + // LocalSsdEncryptionMode: Specifies which method should be used for encrypting + // the + // Local SSDs attached to the VM. + // + // Possible values: + // "EPHEMERAL_KEY_ENCRYPTION" - The given VM will opt-in for using ephemeral + // key for + // encryption of Local SSDs. + // The Local SSDs will not be able to recover data in case of VM + // crash. + // "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED" - The given VM will be encrypted + // using keys managed by the cloud + // infrastructure and the keys will be deleted when the VM is + // deleted. + // "STANDARD_ENCRYPTION" - The given VM will be encrypted using keys managed + // by the cloud + // infrastructure and the keys will be deleted when the VM is + // deleted. + LocalSsdEncryptionMode string `json:"localSsdEncryptionMode,omitempty"` // MachineType: Full or partial URL of the machine type resource to use for // this instance, // in the format:zones/zone/machineTypes/machine-type. This is provided by the @@ -28921,6 +28960,14 @@ type InstanceGroupManagerResizeRequest struct { // generates this // identifier. Id uint64 `json:"id,omitempty,string"` + // Instances: The names of instances to be created by this resize request. The + // number of + // names specified determines the number of instances to create. The + // group's + // target size will be increased by this number. This field cannot be + // used + // together with 'resize_by'. + Instances []*PerInstanceConfig `json:"instances,omitempty"` // Kind: Output only. The resource type, which is // alwayscompute#instanceGroupManagerResizeRequest for resize requests. Kind string `json:"kind,omitempty"` @@ -32137,6 +32184,25 @@ type InstanceProperties struct { KeyRevocationActionType string `json:"keyRevocationActionType,omitempty"` // Labels: Labels to apply to instances that are created from these properties. Labels map[string]string `json:"labels,omitempty"` + // LocalSsdEncryptionMode: Specifies which method should be used for encrypting + // the + // Local SSDs attached to the VM. + // + // Possible values: + // "EPHEMERAL_KEY_ENCRYPTION" - The given VM will opt-in for using ephemeral + // key for + // encryption of Local SSDs. + // The Local SSDs will not be able to recover data in case of VM + // crash. + // "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED" - The given VM will be encrypted + // using keys managed by the cloud + // infrastructure and the keys will be deleted when the VM is + // deleted. + // "STANDARD_ENCRYPTION" - The given VM will be encrypted using keys managed + // by the cloud + // infrastructure and the keys will be deleted when the VM is + // deleted. + LocalSsdEncryptionMode string `json:"localSsdEncryptionMode,omitempty"` // MachineType: The machine type to use for instances that are created from // these // properties. @@ -41520,6 +41586,13 @@ type ManagedInstance struct { // from // InstanceFlexibilityPolicy. PropertiesFromFlexibilityPolicy *ManagedInstancePropertiesFromFlexibilityPolicy `json:"propertiesFromFlexibilityPolicy,omitempty"` + // Scheduling: Output only. Information about the termination timestamp of the + // instance, if applicable. + Scheduling *ManagedInstanceScheduling `json:"scheduling,omitempty"` + // ShutdownDetails: Output only. Specifies the graceful shutdown details if the + // instance is in + // `PENDING_STOP` state or there is a programmed stop scheduled. + ShutdownDetails *ManagedInstanceShutdownDetails `json:"shutdownDetails,omitempty"` // Version: Output only. [Output Only] Intended version of this instance. Version *ManagedInstanceVersion `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CurrentAction") to @@ -41715,6 +41788,63 @@ func (s ManagedInstancePropertiesFromFlexibilityPolicy) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type ManagedInstanceScheduling struct { + // GracefulShutdownTimestamp: Output only. The timestamp at which the + // underlying instance will be + // triggered for graceful shutdown if it is configured. This is in RFC3339 text + // format. + GracefulShutdownTimestamp string `json:"gracefulShutdownTimestamp,omitempty"` + // TerminationTimestamp: Output only. The timestamp at which the managed + // instance will be terminated. This is + // in RFC3339 text + // format. + TerminationTimestamp string `json:"terminationTimestamp,omitempty"` + // ForceSendFields is a list of field names (e.g. "GracefulShutdownTimestamp") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GracefulShutdownTimestamp") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ManagedInstanceScheduling) MarshalJSON() ([]byte, error) { + type NoMethod ManagedInstanceScheduling + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type ManagedInstanceShutdownDetails struct { + // MaxDuration: Output only. The duration for graceful shutdown. Only + // applicable when the instance is + // in `PENDING_STOP` state. + MaxDuration *Duration `json:"maxDuration,omitempty"` + // RequestTimestamp: Output only. Past timestamp indicating the beginning of + // `PENDING_STOP` state of + // instance in RFC3339 + // text format. + RequestTimestamp string `json:"requestTimestamp,omitempty"` + // ForceSendFields is a list of field names (e.g. "MaxDuration") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MaxDuration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ManagedInstanceShutdownDetails) MarshalJSON() ([]byte, error) { + type NoMethod ManagedInstanceShutdownDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type ManagedInstanceVersion struct { // InstanceTemplate: Output only. [Output Only] The intended template of the // instance. This field is empty @@ -41935,6 +42065,54 @@ func (s NamedPort) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type NamedSet struct { + // Description: An optional description of named set. + Description string `json:"description,omitempty"` + // Elements: CEL expressions that are comparable to constructs of this set's + // type + // (see Policy Language). + Elements []*Expr `json:"elements,omitempty"` + // Fingerprint: A fingerprint for the Named Set being applied to this Router, + // which is + // essentially a hash of the Named Set used for optimistic locking. + // The fingerprint is initially generated by Compute Engine and changes + // after every request to modify or update the Named Set. You must + // always + // provide an up-to-date fingerprint hash in order to update or + // change + // labels. + // + // To see the latest fingerprint, make a getNamedSet() request + // to retrieve a Named Set. + Fingerprint string `json:"fingerprint,omitempty"` + // Name: This set's name, which must be a resource ID segment and unique within + // all + // named sets owned by the Router. Name should conform to RFC1035. + Name string `json:"name,omitempty"` + // Type: This named set's type + // + // Possible values: + // "NAMED_SET_TYPE_COMMUNITY" - The Named Set is a Community Named Set. + // "NAMED_SET_TYPE_PREFIX" - The Named Set is a Prefix Named Set. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s NamedSet) MarshalJSON() ([]byte, error) { + type NoMethod NamedSet + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // NatIpInfo: Contains NAT IP information of a NAT config (i.e. usage status, // mode). type NatIpInfo struct { @@ -42220,13 +42398,17 @@ type NetworkAttachment struct { // belongs // to the same network as all the subnetworks. Network string `json:"network,omitempty"` - // ProducerAcceptLists: Projects that are allowed to connect to this network - // attachment. - // The project can be specified using its id or number. + // ProducerAcceptLists: Projects or service class ids that are allowed to + // connect to this network + // attachment. The project can be specified using its id or number. + // Service + // class id can be specified as "serviceclasses/{service_class_id}". ProducerAcceptLists []string `json:"producerAcceptLists,omitempty"` - // ProducerRejectLists: Projects that are not allowed to connect to this - // network attachment. - // The project can be specified using its id or number. + // ProducerRejectLists: Projects or service class ids that are not allowed to + // connect to this + // network attachment. The project can be specified using its id or + // number. + // Service class id can be specified as "serviceclasses/{service_class_id}". ProducerRejectLists []string `json:"producerRejectLists,omitempty"` // Region: Output only. [Output Only] URL of the region where the network // attachment resides. @@ -63699,6 +63881,31 @@ func (s RouterStatusResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type RoutersGetNamedSetResponse struct { + // Etag: end_interface: MixerGetResponseWithEtagBuilder + Etag string `json:"etag,omitempty"` + Resource *NamedSet `json:"resource,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RoutersGetNamedSetResponse) MarshalJSON() ([]byte, error) { + type NoMethod RoutersGetNamedSetResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type RoutersGetRoutePolicyResponse struct { Resource *RoutePolicy `json:"resource,omitempty"` @@ -63907,6 +64114,191 @@ func (s RoutersListBgpRoutesWarningData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type RoutersListNamedSets struct { + Etag string `json:"etag,omitempty"` + // Id: [Output Only] The unique identifier for the resource. This identifier + // is + // defined by the server. + Id string `json:"id,omitempty"` + // Kind: Output only. [Output Only] Type of resource. + // Alwayscompute#routersListNamedSets for lists of named sets. + Kind string `json:"kind,omitempty"` + // NextPageToken: [Output Only] This token allows you to get the next page of + // results for + // list requests. If the number of results is larger thanmaxResults, 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. + NextPageToken string `json:"nextPageToken,omitempty"` + // Result: [Output Only] A list of named sets. + Result []*NamedSet `json:"result,omitempty"` + // SelfLink: Output only. [Output Only] Server-defined URL for this resource. + SelfLink string `json:"selfLink,omitempty"` + // Unreachables: Output only. [Output Only] Unreachable resources. + Unreachables []string `json:"unreachables,omitempty"` + // Warning: [Output Only] Informational warning message. + Warning *RoutersListNamedSetsWarning `json:"warning,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RoutersListNamedSets) MarshalJSON() ([]byte, error) { + type NoMethod RoutersListNamedSets + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// RoutersListNamedSetsWarning: [Output Only] Informational warning message. +type RoutersListNamedSetsWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, + // Compute + // Engine returns NO_RESULTS_ON_PAGE if there + // are no results in the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made + // by a failed + // operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources + // has a type marked as + // deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is + // larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as + // experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. + // Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected + // kernel, which is deprecated. + // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend + // service is associated with a health check that is + // not of type HTTP/HTTPS/HTTP2. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list + // overhead quota exceed + // which captures the amount of resources filtered out by + // user-defined list filter. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not + // assigned to an instance on the + // network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip + // forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance + // URL refers to an instance that does not have an + // ipv6 interface on the same network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to + // an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL + // refers to an instance that is not on the + // same network as the route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a + // status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue + // the process despite + // the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing + // due to errors + // "QUOTA_INFO_UNAVAILABLE" - Quota information is not available to client + // requests (e.g: + // regions.list). + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that + // requires a TOS they have not + // accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is + // in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete + // could not be deleted + // because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance + // group manager is valid as such, but + // its application does not make a lot of sense, because it allows only + // single instance in instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are + // present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + // Data: [Output Only] Metadata about this warning in key: + // value format. For example: + // + // "data": [ + // { + // "key": "scope", + // "value": "zones/us-east1-d" + // } + Data []*RoutersListNamedSetsWarningData `json:"data,omitempty"` + // Message: [Output Only] A human-readable description of the warning code. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Code") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RoutersListNamedSetsWarning) MarshalJSON() ([]byte, error) { + type NoMethod RoutersListNamedSetsWarning + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type RoutersListNamedSetsWarningData struct { + // Key: [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). + Key string `json:"key,omitempty"` + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RoutersListNamedSetsWarningData) MarshalJSON() ([]byte, error) { + type NoMethod RoutersListNamedSetsWarningData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type RoutersListRoutePolicies struct { Etag string `json:"etag,omitempty"` // Id: [Output Only] The unique identifier for the resource. This identifier @@ -70422,9 +70814,6 @@ func (s SslPolicyWarningsData) MarshalJSON() ([]byte, error) { } type SslPolicyReference struct { - // SslPolicy: URL of the SSL policy resource. Set this to empty string to clear - // any - // existing SSL policy associated with the target proxy resource. SslPolicy string `json:"sslPolicy,omitempty"` // ForceSendFields is a list of field names (e.g. "SslPolicy") to // unconditionally include in API requests. By default, fields with empty or @@ -73085,6 +73474,21 @@ type SubnetworkSecondaryRange struct { // `ipCollection` // field. IpCidrRange string `json:"ipCidrRange,omitempty"` + // IpCollection: Reference to a Public Delegated Prefix (PDP) for BYOIP. + // This field should be specified for configuring BYOGUA internal + // IPv6 + // secondary range. + // When specified along with the ip_cidr_range, the ip_cidr_range must + // lie + // within the PDP referenced by the `ipCollection` field. + // When specified without the ip_cidr_range, the range is auto-allocated + // from the PDP referenced by the `ipCollection` field. + IpCollection string `json:"ipCollection,omitempty"` + // Possible values: + // "IPV4" + // "IPV6" + // "IP_VERSION_UNSPECIFIED" - Treated as IPV4 for backward-compatibility. + IpVersion string `json:"ipVersion,omitempty"` // RangeName: The name associated with this subnetwork secondary range, used // when adding // an alias IP/IPv6 range to a VM instance. diff --git a/compute/v1/compute2-gen.go b/compute/v1/compute2-gen.go index 68bb6a499df..61dcd04befc 100644 --- a/compute/v1/compute2-gen.go +++ b/compute/v1/compute2-gen.go @@ -7120,8 +7120,12 @@ type BackendServicesListUsableCall struct { header_ http.Header } -// ListUsable: Retrieves a list of all usable backend services in the specified -// project. +// ListUsable: Retrieves a list of all usable backend services for Application +// Load +// Balancers and Proxy Network Load Balancers in the specified project. +// Backend services for external and internal passthrough Network +// Load +// Balancers are not included in the response. // // - project: Project ID for this request. func (r *BackendServicesService) ListUsable(project string) *BackendServicesListUsableCall { @@ -31944,6 +31948,15 @@ func (r *InstanceGroupManagersService) Delete(project string, zone string, insta return c } +// NoGracefulShutdown sets the optional parameter "noGracefulShutdown": When +// set, graceful shutdown is skipped for instance deletion even if +// it's +// configured for the instances. +func (c *InstanceGroupManagersDeleteCall) NoGracefulShutdown(noGracefulShutdown bool) *InstanceGroupManagersDeleteCall { + c.urlParams_.Set("noGracefulShutdown", fmt.Sprint(noGracefulShutdown)) + return c +} + // RequestId sets the optional parameter "requestId": 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 @@ -32093,6 +32106,15 @@ func (r *InstanceGroupManagersService) DeleteInstances(project string, zone stri return c } +// NoGracefulShutdown sets the optional parameter "noGracefulShutdown": When +// set, graceful shutdown is skipped for instance deletion even if +// it's +// configured for the instances. +func (c *InstanceGroupManagersDeleteInstancesCall) NoGracefulShutdown(noGracefulShutdown bool) *InstanceGroupManagersDeleteInstancesCall { + c.urlParams_.Set("noGracefulShutdown", fmt.Sprint(noGracefulShutdown)) + return c +} + // RequestId sets the optional parameter "requestId": 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 @@ -33989,6 +34011,15 @@ func (r *InstanceGroupManagersService) RecreateInstances(project string, zone st return c } +// NoGracefulShutdown sets the optional parameter "noGracefulShutdown": When +// set, graceful shutdown is skipped for instance recreation even if +// it's +// configured for the instances. +func (c *InstanceGroupManagersRecreateInstancesCall) NoGracefulShutdown(noGracefulShutdown bool) *InstanceGroupManagersRecreateInstancesCall { + c.urlParams_.Set("noGracefulShutdown", fmt.Sprint(noGracefulShutdown)) + return c +} + // RequestId sets the optional parameter "requestId": 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 @@ -34911,6 +34942,15 @@ func (r *InstanceGroupManagersService) StopInstances(project string, zone string return c } +// NoGracefulShutdown sets the optional parameter "noGracefulShutdown": When +// set, graceful shutdown is skipped for instance stopping even if +// it's +// configured for the instances. +func (c *InstanceGroupManagersStopInstancesCall) NoGracefulShutdown(noGracefulShutdown bool) *InstanceGroupManagersStopInstancesCall { + c.urlParams_.Set("noGracefulShutdown", fmt.Sprint(noGracefulShutdown)) + return c +} + // RequestId sets the optional parameter "requestId": 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 @@ -82445,9 +82485,12 @@ type RegionBackendServicesListUsableCall struct { header_ http.Header } -// ListUsable: Retrieves a list of all usable backend services in the specified -// project in -// the given region. +// ListUsable: Retrieves a list of all usable backend services for Application +// Load +// Balancers and Proxy Network Load Balancers in the specified project in +// the +// given region. Backend services for external and internal passthrough +// Network Load Balancers are not included in the response. // // - project: Project ID for this request. // - region: Name of the region scoping this request. diff --git a/compute/v1/compute3-gen.go b/compute/v1/compute3-gen.go index f6dbed536f0..03a4af66605 100644 --- a/compute/v1/compute3-gen.go +++ b/compute/v1/compute3-gen.go @@ -11074,6 +11074,15 @@ func (r *RegionInstanceGroupManagersService) Delete(project string, region strin return c } +// NoGracefulShutdown sets the optional parameter "noGracefulShutdown": When +// set, graceful shutdown is skipped for instance deletion even if +// it's +// configured for the instances. +func (c *RegionInstanceGroupManagersDeleteCall) NoGracefulShutdown(noGracefulShutdown bool) *RegionInstanceGroupManagersDeleteCall { + c.urlParams_.Set("noGracefulShutdown", fmt.Sprint(noGracefulShutdown)) + return c +} + // RequestId sets the optional parameter "requestId": 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 @@ -11222,6 +11231,15 @@ func (r *RegionInstanceGroupManagersService) DeleteInstances(project string, reg return c } +// NoGracefulShutdown sets the optional parameter "noGracefulShutdown": When +// set, graceful shutdown is skipped for instance deletion even if +// it's +// configured for the instances. +func (c *RegionInstanceGroupManagersDeleteInstancesCall) NoGracefulShutdown(noGracefulShutdown bool) *RegionInstanceGroupManagersDeleteInstancesCall { + c.urlParams_.Set("noGracefulShutdown", fmt.Sprint(noGracefulShutdown)) + return c +} + // RequestId sets the optional parameter "requestId": 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 @@ -13097,6 +13115,15 @@ func (r *RegionInstanceGroupManagersService) RecreateInstances(project string, r return c } +// NoGracefulShutdown sets the optional parameter "noGracefulShutdown": When +// set, graceful shutdown is skipped for instance recreation even if +// it's +// configured for the instances. +func (c *RegionInstanceGroupManagersRecreateInstancesCall) NoGracefulShutdown(noGracefulShutdown bool) *RegionInstanceGroupManagersRecreateInstancesCall { + c.urlParams_.Set("noGracefulShutdown", fmt.Sprint(noGracefulShutdown)) + return c +} + // RequestId sets the optional parameter "requestId": 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 @@ -13989,6 +14016,15 @@ func (r *RegionInstanceGroupManagersService) StopInstances(project string, regio return c } +// NoGracefulShutdown sets the optional parameter "noGracefulShutdown": When +// set, graceful shutdown is skipped for instance stopping even if +// it's +// configured for the instances. +func (c *RegionInstanceGroupManagersStopInstancesCall) NoGracefulShutdown(noGracefulShutdown bool) *RegionInstanceGroupManagersStopInstancesCall { + c.urlParams_.Set("noGracefulShutdown", fmt.Sprint(noGracefulShutdown)) + return c +} + // RequestId sets the optional parameter "requestId": 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 @@ -40075,6 +40111,140 @@ func (c *RoutersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) return ret, nil } +type RoutersDeleteNamedSetCall struct { + s *Service + project string + region string + router string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// DeleteNamedSet: Deletes Named Set +// +// - project: Project ID for this request. +// - region: Name of the region for this request. +// - router: Name of the Router resource where Named Set is defined. +func (r *RoutersService) DeleteNamedSet(project string, region string, router string) *RoutersDeleteNamedSetCall { + c := &RoutersDeleteNamedSetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.router = router + return c +} + +// NamedSet sets the optional parameter "namedSet": The Named Set name for this +// request. Name must conform to RFC1035 +func (c *RoutersDeleteNamedSetCall) NamedSet(namedSet string) *RoutersDeleteNamedSetCall { + c.urlParams_.Set("namedSet", namedSet) + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *RoutersDeleteNamedSetCall) RequestId(requestId string) *RoutersDeleteNamedSetCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RoutersDeleteNamedSetCall) Fields(s ...googleapi.Field) *RoutersDeleteNamedSetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RoutersDeleteNamedSetCall) Context(ctx context.Context) *RoutersDeleteNamedSetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RoutersDeleteNamedSetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RoutersDeleteNamedSetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/routers/{router}/deleteNamedSet") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "router": c.router, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.routers.deleteNamedSet", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.routers.deleteNamedSet" call. +// 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 *RoutersDeleteNamedSetCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.routers.deleteNamedSet", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type RoutersDeleteRoutePolicyCall struct { s *Service project string @@ -40326,6 +40496,134 @@ func (c *RoutersGetCall) Do(opts ...googleapi.CallOption) (*Router, error) { return ret, nil } +type RoutersGetNamedSetCall struct { + s *Service + project string + region string + router string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetNamedSet: Returns specified Named Set +// +// - project: Project ID for this request. +// - region: Name of the region for this request. +// - router: Name of the Router resource to query for the named set. The name +// should +// +// conform to RFC1035. +func (r *RoutersService) GetNamedSet(project string, region string, router string) *RoutersGetNamedSetCall { + c := &RoutersGetNamedSetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.router = router + return c +} + +// NamedSet sets the optional parameter "namedSet": The Named Set name for this +// request. Name must conform to RFC1035 +func (c *RoutersGetNamedSetCall) NamedSet(namedSet string) *RoutersGetNamedSetCall { + c.urlParams_.Set("namedSet", namedSet) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RoutersGetNamedSetCall) Fields(s ...googleapi.Field) *RoutersGetNamedSetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *RoutersGetNamedSetCall) IfNoneMatch(entityTag string) *RoutersGetNamedSetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RoutersGetNamedSetCall) Context(ctx context.Context) *RoutersGetNamedSetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RoutersGetNamedSetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RoutersGetNamedSetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/routers/{router}/getNamedSet") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "router": c.router, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.routers.getNamedSet", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.routers.getNamedSet" call. +// Any non-2xx status code is an error. Response headers are in either +// *RoutersGetNamedSetResponse.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 *RoutersGetNamedSetCall) Do(opts ...googleapi.CallOption) (*RoutersGetNamedSetResponse, 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 := &RoutersGetNamedSetResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.routers.getNamedSet", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type RoutersGetNatIpInfoCall struct { s *Service project string @@ -41695,7 +41993,7 @@ func (c *RoutersListBgpRoutesCall) Pages(ctx context.Context, f func(*RoutersLis } } -type RoutersListRoutePoliciesCall struct { +type RoutersListNamedSetsCall struct { s *Service project string region string @@ -41706,16 +42004,16 @@ type RoutersListRoutePoliciesCall struct { header_ http.Header } -// ListRoutePolicies: Retrieves a list of router route policy subresources -// available to the +// ListNamedSets: Retrieves a list of router named set subresources available +// to the // specified project. // // - project: Project ID for this request. // - region: Name of the region for this request. // - router: Name or id of the resource for this request. // Name should conform to RFC1035. -func (r *RoutersService) ListRoutePolicies(project string, region string, router string) *RoutersListRoutePoliciesCall { - c := &RoutersListRoutePoliciesCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *RoutersService) ListNamedSets(project string, region string, router string) *RoutersListNamedSetsCall { + c := &RoutersListNamedSetsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.region = region c.router = router @@ -41789,7 +42087,7 @@ func (r *RoutersService) ListRoutePolicies(project string, region string, router // // You cannot combine constraints on multiple fields using regular // expressions. -func (c *RoutersListRoutePoliciesCall) Filter(filter string) *RoutersListRoutePoliciesCall { +func (c *RoutersListNamedSetsCall) Filter(filter string) *RoutersListNamedSetsCall { c.urlParams_.Set("filter", filter) return c } @@ -41801,7 +42099,7 @@ func (c *RoutersListRoutePoliciesCall) Filter(filter string) *RoutersListRoutePo // the next page of results in subsequent list requests. Acceptable values // are // `0` to `500`, inclusive. (Default: `500`) -func (c *RoutersListRoutePoliciesCall) MaxResults(maxResults int64) *RoutersListRoutePoliciesCall { +func (c *RoutersListNamedSetsCall) MaxResults(maxResults int64) *RoutersListNamedSetsCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c } @@ -41821,7 +42119,7 @@ func (c *RoutersListRoutePoliciesCall) MaxResults(maxResults int64) *RoutersList // // Currently, only sorting by `name` or // `creationTimestamp desc` is supported. -func (c *RoutersListRoutePoliciesCall) OrderBy(orderBy string) *RoutersListRoutePoliciesCall { +func (c *RoutersListNamedSetsCall) OrderBy(orderBy string) *RoutersListNamedSetsCall { c.urlParams_.Set("orderBy", orderBy) return c } @@ -41830,7 +42128,7 @@ func (c *RoutersListRoutePoliciesCall) OrderBy(orderBy string) *RoutersListRoute // use. Set `pageToken` to the // `nextPageToken` returned by a previous list request to get // the next page of results. -func (c *RoutersListRoutePoliciesCall) PageToken(pageToken string) *RoutersListRoutePoliciesCall { +func (c *RoutersListNamedSetsCall) PageToken(pageToken string) *RoutersListNamedSetsCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -41845,7 +42143,7 @@ func (c *RoutersListRoutePoliciesCall) PageToken(pageToken string) *RoutersListR // single zone scope either returns all resources in the zone or no // resources, // with an error code. -func (c *RoutersListRoutePoliciesCall) ReturnPartialSuccess(returnPartialSuccess bool) *RoutersListRoutePoliciesCall { +func (c *RoutersListNamedSetsCall) ReturnPartialSuccess(returnPartialSuccess bool) *RoutersListNamedSetsCall { c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) return c } @@ -41853,7 +42151,7 @@ func (c *RoutersListRoutePoliciesCall) ReturnPartialSuccess(returnPartialSuccess // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *RoutersListRoutePoliciesCall) Fields(s ...googleapi.Field) *RoutersListRoutePoliciesCall { +func (c *RoutersListNamedSetsCall) Fields(s ...googleapi.Field) *RoutersListNamedSetsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -41861,34 +42159,34 @@ func (c *RoutersListRoutePoliciesCall) Fields(s ...googleapi.Field) *RoutersList // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *RoutersListRoutePoliciesCall) IfNoneMatch(entityTag string) *RoutersListRoutePoliciesCall { +func (c *RoutersListNamedSetsCall) IfNoneMatch(entityTag string) *RoutersListNamedSetsCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *RoutersListRoutePoliciesCall) Context(ctx context.Context) *RoutersListRoutePoliciesCall { +func (c *RoutersListNamedSetsCall) Context(ctx context.Context) *RoutersListNamedSetsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *RoutersListRoutePoliciesCall) Header() http.Header { +func (c *RoutersListNamedSetsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RoutersListRoutePoliciesCall) doRequest(alt string) (*http.Response, error) { +func (c *RoutersListNamedSetsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/routers/{router}/listRoutePolicies") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/routers/{router}/listNamedSets") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -41900,15 +42198,285 @@ func (c *RoutersListRoutePoliciesCall) doRequest(alt string) (*http.Response, er "region": c.region, "router": c.router, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.routers.listRoutePolicies", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.routers.listNamedSets", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.routers.listRoutePolicies" call. +// Do executes the "compute.routers.listNamedSets" call. // Any non-2xx status code is an error. Response headers are in either -// *RoutersListRoutePolicies.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 +// *RoutersListNamedSets.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 *RoutersListNamedSetsCall) Do(opts ...googleapi.CallOption) (*RoutersListNamedSets, 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 := &RoutersListNamedSets{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.routers.listNamedSets", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *RoutersListNamedSetsCall) Pages(ctx context.Context, f func(*RoutersListNamedSets) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type RoutersListRoutePoliciesCall struct { + s *Service + project string + region string + router string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ListRoutePolicies: Retrieves a list of router route policy subresources +// available to the +// specified project. +// +// - project: Project ID for this request. +// - region: Name of the region for this request. +// - router: Name or id of the resource for this request. +// Name should conform to RFC1035. +func (r *RoutersService) ListRoutePolicies(project string, region string, router string) *RoutersListRoutePoliciesCall { + c := &RoutersListRoutePoliciesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.router = router + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most +// Compute resources support two types of filter expressions: +// expressions that support regular expressions and expressions that follow +// API improvement proposal AIP-160. +// These two types of filter expressions cannot be mixed in one request. +// +// If you want to use AIP-160, your 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 `:*` 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 onresource 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) +// ``` +// +// If you want to use a regular expression, use the `eq` (equal) or `ne` +// (not equal) operator against a single un-parenthesized expression with +// or +// without quotes or against multiple parenthesized expressions. +// Examples: +// +// `fieldname eq unquoted literal` +// `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" +// `(fieldname1 eq literal) (fieldname2 ne "literal")` +// +// The literal value is interpreted as a regular expression using GoogleRE2 +// library syntax. +// The literal value must match the entire field. +// +// For example, to filter for instances that do not end with name +// "instance", +// you would use `name ne .*instance`. +// +// You cannot combine constraints on multiple fields using regular +// expressions. +func (c *RoutersListRoutePoliciesCall) Filter(filter string) *RoutersListRoutePoliciesCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": 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`) +func (c *RoutersListRoutePoliciesCall) MaxResults(maxResults int64) *RoutersListRoutePoliciesCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": 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. +func (c *RoutersListRoutePoliciesCall) OrderBy(orderBy string) *RoutersListRoutePoliciesCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the +// `nextPageToken` returned by a previous list request to get +// the next page of results. +func (c *RoutersListRoutePoliciesCall) PageToken(pageToken string) *RoutersListRoutePoliciesCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in +// case +// of failure. The default value is false. +// +// For example, when partial success behavior is enabled, aggregatedList for +// a +// single zone scope either returns all resources in the zone or no +// resources, +// with an error code. +func (c *RoutersListRoutePoliciesCall) ReturnPartialSuccess(returnPartialSuccess bool) *RoutersListRoutePoliciesCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RoutersListRoutePoliciesCall) Fields(s ...googleapi.Field) *RoutersListRoutePoliciesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *RoutersListRoutePoliciesCall) IfNoneMatch(entityTag string) *RoutersListRoutePoliciesCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RoutersListRoutePoliciesCall) Context(ctx context.Context) *RoutersListRoutePoliciesCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RoutersListRoutePoliciesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RoutersListRoutePoliciesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/routers/{router}/listRoutePolicies") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "router": c.router, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.routers.listRoutePolicies", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.routers.listRoutePolicies" call. +// Any non-2xx status code is an error. Response headers are in either +// *RoutersListRoutePolicies.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 *RoutersListRoutePoliciesCall) Do(opts ...googleapi.CallOption) (*RoutersListRoutePolicies, error) { gensupport.SetOptions(c.urlParams_, opts...) @@ -42102,6 +42670,139 @@ func (c *RoutersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) return ret, nil } +type RoutersPatchNamedSetCall struct { + s *Service + project string + region string + router string + namedset *NamedSet + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// PatchNamedSet: Patches Named Set +// +// - project: Project ID for this request. +// - region: Name of the region for this request. +// - router: Name of the Router resource where Named Set is defined. +func (r *RoutersService) PatchNamedSet(project string, region string, router string, namedset *NamedSet) *RoutersPatchNamedSetCall { + c := &RoutersPatchNamedSetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.router = router + c.namedset = namedset + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *RoutersPatchNamedSetCall) RequestId(requestId string) *RoutersPatchNamedSetCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RoutersPatchNamedSetCall) Fields(s ...googleapi.Field) *RoutersPatchNamedSetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RoutersPatchNamedSetCall) Context(ctx context.Context) *RoutersPatchNamedSetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RoutersPatchNamedSetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RoutersPatchNamedSetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.namedset) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/routers/{router}/patchNamedSet") + 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{ + "project": c.project, + "region": c.region, + "router": c.router, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.routers.patchNamedSet", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.routers.patchNamedSet" call. +// 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 *RoutersPatchNamedSetCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.routers.patchNamedSet", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type RoutersPatchRoutePolicyCall struct { s *Service project string @@ -42488,6 +43189,139 @@ func (c *RoutersUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) return ret, nil } +type RoutersUpdateNamedSetCall struct { + s *Service + project string + region string + router string + namedset *NamedSet + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateNamedSet: Updates or creates new Named Set +// +// - project: Project ID for this request. +// - region: Name of the region for this request. +// - router: Name of the Router resource where Named Set is defined. +func (r *RoutersService) UpdateNamedSet(project string, region string, router string, namedset *NamedSet) *RoutersUpdateNamedSetCall { + c := &RoutersUpdateNamedSetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.router = router + c.namedset = namedset + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *RoutersUpdateNamedSetCall) RequestId(requestId string) *RoutersUpdateNamedSetCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RoutersUpdateNamedSetCall) Fields(s ...googleapi.Field) *RoutersUpdateNamedSetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RoutersUpdateNamedSetCall) Context(ctx context.Context) *RoutersUpdateNamedSetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RoutersUpdateNamedSetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RoutersUpdateNamedSetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.namedset) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/routers/{router}/updateNamedSet") + 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{ + "project": c.project, + "region": c.region, + "router": c.router, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "compute.routers.updateNamedSet", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.routers.updateNamedSet" call. +// 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 *RoutersUpdateNamedSetCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "compute.routers.updateNamedSet", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type RoutersUpdateRoutePolicyCall struct { s *Service project string diff --git a/config/v1/config-api.json b/config/v1/config-api.json index a8dd2201164..19ce197c759 100644 --- a/config/v1/config-api.json +++ b/config/v1/config-api.json @@ -1788,7 +1788,7 @@ } } }, - "revision": "20260610", + "revision": "20260623", "rootUrl": "https://config.googleapis.com/", "schemas": { "ApplyResults": { @@ -2262,6 +2262,11 @@ "$ref": "ApplyResults", "description": "Outputs and artifacts from applying a deployment." }, + "applyResultsAvailable": { + "description": "Output only. Indicating if early apply results are available.", + "readOnly": true, + "type": "boolean" + }, "build": { "description": "Output only. Cloud Build instance UUID associated with this operation.", "readOnly": true, diff --git a/config/v1/config-gen.go b/config/v1/config-gen.go index 0bd4e598768..f1975b5afdf 100644 --- a/config/v1/config-gen.go +++ b/config/v1/config-gen.go @@ -833,6 +833,9 @@ func (s DeploymentGroupRevision) MarshalJSON() ([]byte, error) { type DeploymentOperationMetadata struct { // ApplyResults: Outputs and artifacts from applying a deployment. ApplyResults *ApplyResults `json:"applyResults,omitempty"` + // ApplyResultsAvailable: Output only. Indicating if early apply results are + // available. + ApplyResultsAvailable bool `json:"applyResultsAvailable,omitempty"` // Build: Output only. Cloud Build instance UUID associated with this // operation. Build string `json:"build,omitempty"` diff --git a/container/v1/container-api.json b/container/v1/container-api.json index d7d8e8ad88e..a0c887f5f70 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -236,6 +236,35 @@ "https://www.googleapis.com/auth/container.read-only" ] }, + "completeControlPlaneUpgrade": { + "description": "CompleteControlPlaneUpgrade completes the rollback-safe upgrade by performing the step two upgrade for a specific cluster.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeControlPlaneUpgrade", + "httpMethod": "POST", + "id": "container.projects.locations.clusters.completeControlPlaneUpgrade", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name (project, location, cluster) of the cluster to complete upgrade. Specified in the format `projects/*/locations/*/clusters/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:completeControlPlaneUpgrade", + "request": { + "$ref": "CompleteControlPlaneUpgradeRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/container" + ] + }, "completeIpRotation": { "description": "Completes master IP rotation.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeIpRotation", @@ -1445,6 +1474,35 @@ "https://www.googleapis.com/auth/container" ] }, + "completeControlPlaneUpgrade": { + "description": "CompleteControlPlaneUpgrade completes the rollback-safe upgrade by performing the step two upgrade for a specific cluster.", + "flatPath": "v1/projects/{projectsId}/zones/{zonesId}/clusters/{clustersId}:completeControlPlaneUpgrade", + "httpMethod": "POST", + "id": "container.projects.zones.clusters.completeControlPlaneUpgrade", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name (project, location, cluster) of the cluster to complete upgrade. Specified in the format `projects/*/locations/*/clusters/*`.", + "location": "path", + "pattern": "^projects/[^/]+/zones/[^/]+/clusters/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:completeControlPlaneUpgrade", + "request": { + "$ref": "CompleteControlPlaneUpgradeRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/container" + ] + }, "completeIpRotation": { "description": "Completes master IP rotation.", "flatPath": "v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation", @@ -2753,7 +2811,7 @@ } } }, - "revision": "20260616", + "revision": "20260626", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3667,6 +3725,11 @@ "readOnly": true, "type": "string" }, + "currentEmulatedVersion": { + "description": "Output only. The current emulated version of the master endpoint. The version is in minor version format, e.g. 1.30. No value or empty string means the cluster has no emulated version.", + "readOnly": true, + "type": "string" + }, "currentMasterVersion": { "description": "Output only. The current software version of the master endpoint.", "readOnly": true, @@ -3911,6 +3974,10 @@ "$ref": "ResourceUsageExportConfig", "description": "Configuration for exporting resource usages. Resource usage export is disabled when this config is unspecified." }, + "rollbackSafeUpgrade": { + "$ref": "RollbackSafeUpgrade", + "description": "Optional. The rollback safe upgrade information of the cluster. This field is used when user manually triggers a rollback safe upgrade." + }, "satisfiesPzi": { "description": "Output only. Reserved for future use.", "readOnly": true, @@ -4213,6 +4280,10 @@ "$ref": "DNSConfig", "description": "DNSConfig contains clusterDNS config for this cluster." }, + "desiredEmulatedVersion": { + "description": "Optional. The desired emulated version for the cluster.", + "type": "string" + }, "desiredEnableCiliumClusterwideNetworkPolicy": { "description": "Enable/Disable Cilium Clusterwide Network Policy for the cluster.", "type": "boolean" @@ -4430,6 +4501,10 @@ "$ref": "ResourceUsageExportConfig", "description": "The desired configuration for exporting resource usage." }, + "desiredRollbackSafeUpgrade": { + "$ref": "RollbackSafeUpgrade", + "description": "Optional. The desired rollback safe upgrade configuration." + }, "desiredSecretManagerConfig": { "$ref": "SecretManagerConfig", "description": "Enable/Disable Secret Manager Config." @@ -4564,6 +4639,11 @@ }, "type": "array" }, + "rollbackSafeUpgradeStatus": { + "$ref": "RollbackSafeUpgradeStatus", + "description": "Output only. The cluster's rollback-safe upgrade status.", + "readOnly": true + }, "upgradeDetails": { "description": "The list of past auto upgrades.", "items": { @@ -4574,6 +4654,17 @@ }, "type": "object" }, + "CompleteControlPlaneUpgradeRequest": { + "description": "CompleteControlPlaneUpgradeRequest sets the name of target cluster to complete upgrade.", + "id": "CompleteControlPlaneUpgradeRequest", + "properties": { + "version": { + "description": "Optional. API request version that initiates this operation.", + "type": "string" + } + }, + "type": "object" + }, "CompleteIPRotationRequest": { "description": "CompleteIPRotationRequest moves the cluster master back into single-IP mode.", "id": "CompleteIPRotationRequest", @@ -8763,6 +8854,49 @@ }, "type": "object" }, + "RollbackSafeUpgrade": { + "description": "RollbackSafeUpgrade is the configuration for the rollback safe upgrade.", + "id": "RollbackSafeUpgrade", + "properties": { + "controlPlaneSoakDuration": { + "description": "Optional. A user-defined period for the cluster remains in the rollbackable state. ex: {seconds: 21600}.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "RollbackSafeUpgradeStatus": { + "description": "RollbackSafeUpgradeStatus contains the rollback-safe upgrade status of a cluster.", + "id": "RollbackSafeUpgradeStatus", + "properties": { + "controlPlaneUpgradeRollbackEndTime": { + "description": "Output only. The rollback-safe mode expiration time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "mode": { + "description": "Output only. The mode of the rollback-safe upgrade.", + "enum": [ + "MODE_UNSPECIFIED", + "KCP_MINOR_UPGRADE_ROLLBACK_SAFE_MODE" + ], + "enumDescriptions": [ + "MODE_UNSPECIFIED means it's in regular upgrade mode.", + "KCP_MINOR_UPGRADE_ROLLBACK_SAFE_MODE means it's in rollback-safe mode after a KCP minor version step-one upgrade." + ], + "readOnly": true, + "type": "string" + }, + "previousVersion": { + "description": "Output only. The GKE version that the cluster previously used before step-one upgrade.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "RotationConfig": { "description": "RotationConfig is config for secret manager auto rotation.", "id": "RotationConfig", @@ -10099,6 +10233,11 @@ "format": "google-datetime", "type": "string" }, + "initialEmulatedVersion": { + "description": "Output only. The emulated version before the upgrade.", + "readOnly": true, + "type": "string" + }, "initialVersion": { "description": "The version before the upgrade.", "type": "string" @@ -10141,6 +10280,11 @@ "readOnly": true, "type": "string" }, + "targetEmulatedVersion": { + "description": "Output only. The emulated version after the upgrade.", + "readOnly": true, + "type": "string" + }, "targetVersion": { "description": "The version after the upgrade.", "type": "string" @@ -10152,6 +10296,11 @@ "description": "UpgradeEvent is a notification sent to customers by the cluster server when a resource is upgrading.", "id": "UpgradeEvent", "properties": { + "currentEmulatedVersion": { + "description": "Output only. The current emulated version before the upgrade.", + "readOnly": true, + "type": "string" + }, "currentVersion": { "description": "The current version before the upgrade.", "type": "string" @@ -10183,6 +10332,11 @@ ], "type": "string" }, + "targetEmulatedVersion": { + "description": "Output only. The target emulated version for the upgrade.", + "readOnly": true, + "type": "string" + }, "targetVersion": { "description": "The target version for the upgrade.", "type": "string" @@ -10194,6 +10348,11 @@ "description": "UpgradeInfoEvent is a notification sent to customers about the upgrade information of a resource.", "id": "UpgradeInfoEvent", "properties": { + "currentEmulatedVersion": { + "description": "Output only. The current emulated version before the upgrade.", + "readOnly": true, + "type": "string" + }, "currentVersion": { "description": "The current version before the upgrade.", "type": "string" @@ -10287,6 +10446,11 @@ "readOnly": true, "type": "string" }, + "targetEmulatedVersion": { + "description": "Output only. The target emulated version for the upgrade.", + "readOnly": true, + "type": "string" + }, "targetVersion": { "description": "The target version for the upgrade.", "type": "string" diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index 7f1456ca3c1..daf3f0a47af 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -1478,6 +1478,10 @@ type Cluster struct { // CreateTime: Output only. The time the cluster was created, in RFC3339 // (https://www.ietf.org/rfc/rfc3339.txt) text format. CreateTime string `json:"createTime,omitempty"` + // CurrentEmulatedVersion: Output only. The current emulated version of the + // master endpoint. The version is in minor version format, e.g. 1.30. No value + // or empty string means the cluster has no emulated version. + CurrentEmulatedVersion string `json:"currentEmulatedVersion,omitempty"` // CurrentMasterVersion: Output only. The current software version of the // master endpoint. CurrentMasterVersion string `json:"currentMasterVersion,omitempty"` @@ -1688,6 +1692,10 @@ type Cluster struct { // ResourceUsageExportConfig: Configuration for exporting resource usages. // Resource usage export is disabled when this config is unspecified. ResourceUsageExportConfig *ResourceUsageExportConfig `json:"resourceUsageExportConfig,omitempty"` + // RollbackSafeUpgrade: Optional. The rollback safe upgrade information of the + // cluster. This field is used when user manually triggers a rollback safe + // upgrade. + RollbackSafeUpgrade *RollbackSafeUpgrade `json:"rollbackSafeUpgrade,omitempty"` // SatisfiesPzi: Output only. Reserved for future use. SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` // SatisfiesPzs: Output only. Reserved for future use. @@ -1960,6 +1968,9 @@ type ClusterUpdate struct { DesiredDisableL4LbFirewallReconciliation bool `json:"desiredDisableL4LbFirewallReconciliation,omitempty"` // DesiredDnsConfig: DNSConfig contains clusterDNS config for this cluster. DesiredDnsConfig *DNSConfig `json:"desiredDnsConfig,omitempty"` + // DesiredEmulatedVersion: Optional. The desired emulated version for the + // cluster. + DesiredEmulatedVersion string `json:"desiredEmulatedVersion,omitempty"` // DesiredEnableCiliumClusterwideNetworkPolicy: Enable/Disable Cilium // Clusterwide Network Policy for the cluster. DesiredEnableCiliumClusterwideNetworkPolicy bool `json:"desiredEnableCiliumClusterwideNetworkPolicy,omitempty"` @@ -2152,6 +2163,9 @@ type ClusterUpdate struct { // DesiredResourceUsageExportConfig: The desired configuration for exporting // resource usage. DesiredResourceUsageExportConfig *ResourceUsageExportConfig `json:"desiredResourceUsageExportConfig,omitempty"` + // DesiredRollbackSafeUpgrade: Optional. The desired rollback safe upgrade + // configuration. + DesiredRollbackSafeUpgrade *RollbackSafeUpgrade `json:"desiredRollbackSafeUpgrade,omitempty"` // DesiredSecretManagerConfig: Enable/Disable Secret Manager Config. DesiredSecretManagerConfig *SecretManagerConfig `json:"desiredSecretManagerConfig,omitempty"` // DesiredSecretSyncConfig: Configuration for sync Secret Manager secrets as @@ -2261,6 +2275,9 @@ type ClusterUpgradeInfo struct { // "SYSTEM_CONFIG" - SYSTEM_CONFIG indicates the cluster upgrade is paused by // system config. PausedReason []string `json:"pausedReason,omitempty"` + // RollbackSafeUpgradeStatus: Output only. The cluster's rollback-safe upgrade + // status. + RollbackSafeUpgradeStatus *RollbackSafeUpgradeStatus `json:"rollbackSafeUpgradeStatus,omitempty"` // UpgradeDetails: The list of past auto upgrades. UpgradeDetails []*UpgradeDetails `json:"upgradeDetails,omitempty"` @@ -2284,6 +2301,29 @@ func (s ClusterUpgradeInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// CompleteControlPlaneUpgradeRequest: CompleteControlPlaneUpgradeRequest sets +// the name of target cluster to complete upgrade. +type CompleteControlPlaneUpgradeRequest struct { + // Version: Optional. API request version that initiates this operation. + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "Version") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Version") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CompleteControlPlaneUpgradeRequest) MarshalJSON() ([]byte, error) { + type NoMethod CompleteControlPlaneUpgradeRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // CompleteIPRotationRequest: CompleteIPRotationRequest moves the cluster // master back into single-IP mode. type CompleteIPRotationRequest struct { @@ -8026,6 +8066,67 @@ func (s RollbackNodePoolUpgradeRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// RollbackSafeUpgrade: RollbackSafeUpgrade is the configuration for the +// rollback safe upgrade. +type RollbackSafeUpgrade struct { + // ControlPlaneSoakDuration: Optional. A user-defined period for the cluster + // remains in the rollbackable state. ex: {seconds: 21600}. + ControlPlaneSoakDuration string `json:"controlPlaneSoakDuration,omitempty"` + // ForceSendFields is a list of field names (e.g. "ControlPlaneSoakDuration") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ControlPlaneSoakDuration") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RollbackSafeUpgrade) MarshalJSON() ([]byte, error) { + type NoMethod RollbackSafeUpgrade + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// RollbackSafeUpgradeStatus: RollbackSafeUpgradeStatus contains the +// rollback-safe upgrade status of a cluster. +type RollbackSafeUpgradeStatus struct { + // ControlPlaneUpgradeRollbackEndTime: Output only. The rollback-safe mode + // expiration time. + ControlPlaneUpgradeRollbackEndTime string `json:"controlPlaneUpgradeRollbackEndTime,omitempty"` + // Mode: Output only. The mode of the rollback-safe upgrade. + // + // Possible values: + // "MODE_UNSPECIFIED" - MODE_UNSPECIFIED means it's in regular upgrade mode. + // "KCP_MINOR_UPGRADE_ROLLBACK_SAFE_MODE" - + // KCP_MINOR_UPGRADE_ROLLBACK_SAFE_MODE means it's in rollback-safe mode after + // a KCP minor version step-one upgrade. + Mode string `json:"mode,omitempty"` + // PreviousVersion: Output only. The GKE version that the cluster previously + // used before step-one upgrade. + PreviousVersion string `json:"previousVersion,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "ControlPlaneUpgradeRollbackEndTime") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. + // "ControlPlaneUpgradeRollbackEndTime") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for + // more details. + NullFields []string `json:"-"` +} + +func (s RollbackSafeUpgradeStatus) MarshalJSON() ([]byte, error) { + type NoMethod RollbackSafeUpgradeStatus + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // RotationConfig: RotationConfig is config for secret manager auto rotation. type RotationConfig struct { // Enabled: Whether the rotation is enabled. @@ -9748,6 +9849,9 @@ func (s UpgradeAvailableEvent) MarshalJSON() ([]byte, error) { type UpgradeDetails struct { // EndTime: The end timestamp of the upgrade. EndTime string `json:"endTime,omitempty"` + // InitialEmulatedVersion: Output only. The emulated version before the + // upgrade. + InitialEmulatedVersion string `json:"initialEmulatedVersion,omitempty"` // InitialVersion: The version before the upgrade. InitialVersion string `json:"initialVersion,omitempty"` // StartTime: The start timestamp of the upgrade. @@ -9768,6 +9872,8 @@ type UpgradeDetails struct { // "CANCELED" - Upgrade has been canceled. // "RUNNING" - Upgrade is running. State string `json:"state,omitempty"` + // TargetEmulatedVersion: Output only. The emulated version after the upgrade. + TargetEmulatedVersion string `json:"targetEmulatedVersion,omitempty"` // TargetVersion: The version after the upgrade. TargetVersion string `json:"targetVersion,omitempty"` // ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally @@ -9791,6 +9897,9 @@ func (s UpgradeDetails) MarshalJSON() ([]byte, error) { // UpgradeEvent: UpgradeEvent is a notification sent to customers by the // cluster server when a resource is upgrading. type UpgradeEvent struct { + // CurrentEmulatedVersion: Output only. The current emulated version before the + // upgrade. + CurrentEmulatedVersion string `json:"currentEmulatedVersion,omitempty"` // CurrentVersion: The current version before the upgrade. CurrentVersion string `json:"currentVersion,omitempty"` // Operation: The operation associated with this upgrade. @@ -9808,17 +9917,20 @@ type UpgradeEvent struct { // "MASTER" - Master / control plane // "NODE_POOL" - Node pool ResourceType string `json:"resourceType,omitempty"` + // TargetEmulatedVersion: Output only. The target emulated version for the + // upgrade. + TargetEmulatedVersion string `json:"targetEmulatedVersion,omitempty"` // TargetVersion: The target version for the upgrade. TargetVersion string `json:"targetVersion,omitempty"` - // ForceSendFields is a list of field names (e.g. "CurrentVersion") to + // ForceSendFields is a list of field names (e.g. "CurrentEmulatedVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CurrentVersion") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "CurrentEmulatedVersion") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -9831,6 +9943,9 @@ func (s UpgradeEvent) MarshalJSON() ([]byte, error) { // UpgradeInfoEvent: UpgradeInfoEvent is a notification sent to customers about // the upgrade information of a resource. type UpgradeInfoEvent struct { + // CurrentEmulatedVersion: Output only. The current emulated version before the + // upgrade. + CurrentEmulatedVersion string `json:"currentEmulatedVersion,omitempty"` // CurrentVersion: The current version before the upgrade. CurrentVersion string `json:"currentVersion,omitempty"` // Description: A brief description of the event. @@ -9886,17 +10001,20 @@ type UpgradeInfoEvent struct { // "FAILED" - FAILED indicates the upgrade has failed. // "CANCELED" - CANCELED indicates the upgrade has canceled. State string `json:"state,omitempty"` + // TargetEmulatedVersion: Output only. The target emulated version for the + // upgrade. + TargetEmulatedVersion string `json:"targetEmulatedVersion,omitempty"` // TargetVersion: The target version for the upgrade. TargetVersion string `json:"targetVersion,omitempty"` - // ForceSendFields is a list of field names (e.g. "CurrentVersion") to + // ForceSendFields is a list of field names (e.g. "CurrentEmulatedVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CurrentVersion") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "CurrentEmulatedVersion") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -10694,6 +10812,112 @@ func (c *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) Do(opts ...go return ret, nil } +type ProjectsLocationsClustersCompleteControlPlaneUpgradeCall struct { + s *Service + name string + completecontrolplaneupgraderequest *CompleteControlPlaneUpgradeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// CompleteControlPlaneUpgrade: CompleteControlPlaneUpgrade completes the +// rollback-safe upgrade by performing the step two upgrade for a specific +// cluster. +// +// - name: The name (project, location, cluster) of the cluster to complete +// upgrade. Specified in the format `projects/*/locations/*/clusters/*`. +func (r *ProjectsLocationsClustersService) CompleteControlPlaneUpgrade(name string, completecontrolplaneupgraderequest *CompleteControlPlaneUpgradeRequest) *ProjectsLocationsClustersCompleteControlPlaneUpgradeCall { + c := &ProjectsLocationsClustersCompleteControlPlaneUpgradeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.completecontrolplaneupgraderequest = completecontrolplaneupgraderequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsClustersCompleteControlPlaneUpgradeCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCompleteControlPlaneUpgradeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsClustersCompleteControlPlaneUpgradeCall) Context(ctx context.Context) *ProjectsLocationsClustersCompleteControlPlaneUpgradeCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsClustersCompleteControlPlaneUpgradeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsClustersCompleteControlPlaneUpgradeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.completecontrolplaneupgraderequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:completeControlPlaneUpgrade") + 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, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "container.projects.locations.clusters.completeControlPlaneUpgrade", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "container.projects.locations.clusters.completeControlPlaneUpgrade" call. +// 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 *ProjectsLocationsClustersCompleteControlPlaneUpgradeCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "container.projects.locations.clusters.completeControlPlaneUpgrade", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsClustersCompleteIpRotationCall struct { s *Service name string @@ -14794,6 +15018,112 @@ func (c *ProjectsZonesClustersAddonsCall) Do(opts ...googleapi.CallOption) (*Ope return ret, nil } +type ProjectsZonesClustersCompleteControlPlaneUpgradeCall struct { + s *Service + name string + completecontrolplaneupgraderequest *CompleteControlPlaneUpgradeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// CompleteControlPlaneUpgrade: CompleteControlPlaneUpgrade completes the +// rollback-safe upgrade by performing the step two upgrade for a specific +// cluster. +// +// - name: The name (project, location, cluster) of the cluster to complete +// upgrade. Specified in the format `projects/*/locations/*/clusters/*`. +func (r *ProjectsZonesClustersService) CompleteControlPlaneUpgrade(name string, completecontrolplaneupgraderequest *CompleteControlPlaneUpgradeRequest) *ProjectsZonesClustersCompleteControlPlaneUpgradeCall { + c := &ProjectsZonesClustersCompleteControlPlaneUpgradeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.completecontrolplaneupgraderequest = completecontrolplaneupgraderequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsZonesClustersCompleteControlPlaneUpgradeCall) Fields(s ...googleapi.Field) *ProjectsZonesClustersCompleteControlPlaneUpgradeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsZonesClustersCompleteControlPlaneUpgradeCall) Context(ctx context.Context) *ProjectsZonesClustersCompleteControlPlaneUpgradeCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsZonesClustersCompleteControlPlaneUpgradeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsZonesClustersCompleteControlPlaneUpgradeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.completecontrolplaneupgraderequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:completeControlPlaneUpgrade") + 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, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "container.projects.zones.clusters.completeControlPlaneUpgrade", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "container.projects.zones.clusters.completeControlPlaneUpgrade" call. +// 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 *ProjectsZonesClustersCompleteControlPlaneUpgradeCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "container.projects.zones.clusters.completeControlPlaneUpgrade", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsZonesClustersCompleteIpRotationCall struct { s *Service projectId string diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 7778556b2ac..97a0eedfbd6 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2837,7 +2837,7 @@ } } }, - "revision": "20260616", + "revision": "20260630", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -4447,6 +4447,10 @@ "$ref": "DNSConfig", "description": "DNSConfig contains clusterDNS config for this cluster." }, + "desiredEmulatedVersion": { + "description": "Optional. The desired emulated version for the cluster.", + "type": "string" + }, "desiredEnableCiliumClusterwideNetworkPolicy": { "description": "Enable/Disable Cilium Clusterwide Network Policy for the cluster.", "type": "boolean" @@ -5452,6 +5456,21 @@ }, "type": "object" }, + "DiskIoScheduler": { + "description": "DiskIoScheduler contains the configuration for the disk IO scheduler.", + "id": "DiskIoScheduler", + "properties": { + "nodeAttachedDiskIoScheduler": { + "description": "Optional. Configures the IO scheduler for the attached disks. Supported values are `mq-deadline`, `bfq`, `kyber`, `none`.", + "type": "string" + }, + "nodeSystemIoScheduler": { + "description": "Optional. Configures the IO scheduler for the boot disk or ephemeral lssd that runs node system workloads. Supported values are `mq-deadline`, `bfq`, `kyber`, `none`.", + "type": "string" + } + }, + "type": "object" + }, "DisruptionBudget": { "description": "DisruptionBudget defines the upgrade disruption budget for the cluster control plane.", "id": "DisruptionBudget", @@ -6553,6 +6572,25 @@ }, "type": "object" }, + "KubeletCertInfo": { + "description": "Contains expiry information about the kubelet certificate.", + "id": "KubeletCertInfo", + "properties": { + "nonTpmBootstrapCertExpireTime": { + "description": "Output only.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "tpmBootstrapCertExpireTime": { + "description": "Output only.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "KubernetesDashboard": { "description": "Configuration for the Kubernetes Dashboard.", "id": "KubernetesDashboard", @@ -6601,6 +6639,10 @@ "$ref": "CustomNodeInit", "description": "Optional. Allow users to run arbitrary bash script or container on the node." }, + "diskIoScheduler": { + "$ref": "DiskIoScheduler", + "description": "Optional. Controls the configuration for the disk IO scheduler." + }, "hugepages": { "$ref": "HugepagesConfig", "description": "Optional. Amounts for 2M and 1G hugepages" @@ -6609,6 +6651,10 @@ "$ref": "NodeKernelModuleLoading", "description": "Optional. Configuration for kernel module loading on nodes. When enabled, the node pool will be provisioned with a Container-Optimized OS image that enforces kernel module signature verification." }, + "nodeVfioConfig": { + "$ref": "NodeVfioConfig", + "description": "Optional. Contains VFIO-related configurations for this node." + }, "swapConfig": { "$ref": "SwapConfig", "description": "Optional. Enables and configures swap space on nodes. If omitted, swap is disabled." @@ -6617,7 +6663,7 @@ "additionalProperties": { "type": "string" }, - "description": "The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.rmem_default net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.neigh.default.gc_thresh1 net.ipv4.neigh.default.gc_thresh2 net.ipv4.neigh.default.gc_thresh3 net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse net.ipv4.tcp_mtu_probing net.ipv4.tcp_max_orphans net.ipv4.tcp_max_tw_buckets net.ipv4.tcp_syn_retries net.ipv4.tcp_ecn net.ipv4.tcp_congestion_control net.netfilter.nf_conntrack_max net.netfilter.nf_conntrack_buckets net.netfilter.nf_conntrack_tcp_timeout_close_wait net.netfilter.nf_conntrack_tcp_timeout_time_wait net.netfilter.nf_conntrack_tcp_timeout_established net.netfilter.nf_conntrack_acct kernel.keys.maxkeys kernel.keys.maxbytes kernel.shmmni kernel.shmmax kernel.shmall kernel.perf_event_paranoid kernel.sched_rt_runtime_us kernel.softlockup_panic kernel.yama.ptrace_scope kernel.kptr_restrict kernel.dmesg_restrict kernel.sysrq fs.aio-max-nr fs.file-max fs.inotify.max_user_instances fs.inotify.max_user_watches fs.nr_open vm.dirty_background_ratio vm.dirty_background_bytes vm.dirty_expire_centisecs vm.dirty_ratio vm.dirty_bytes vm.dirty_writeback_centisecs vm.max_map_count vm.overcommit_memory vm.overcommit_ratio vm.vfs_cache_pressure vm.swappiness vm.watermark_scale_factor vm.min_free_kbytes", + "description": "The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. The following parameters are supported. net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.rmem_default net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.neigh.default.gc_thresh1 net.ipv4.neigh.default.gc_thresh2 net.ipv4.neigh.default.gc_thresh3 net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse net.ipv4.tcp_mtu_probing net.ipv4.tcp_max_orphans net.ipv4.tcp_max_tw_buckets net.ipv4.tcp_syn_retries net.ipv4.tcp_ecn net.ipv4.tcp_congestion_control net.netfilter.nf_conntrack_max net.netfilter.nf_conntrack_buckets net.netfilter.nf_conntrack_tcp_timeout_close_wait net.netfilter.nf_conntrack_tcp_timeout_time_wait net.netfilter.nf_conntrack_tcp_timeout_established net.netfilter.nf_conntrack_acct kernel.keys.maxkeys kernel.keys.maxbytes kernel.shmmni kernel.shmmax kernel.shmall kernel.core_pattern kernel.perf_event_paranoid kernel.sched_rt_runtime_us kernel.softlockup_panic kernel.yama.ptrace_scope kernel.kptr_restrict kernel.dmesg_restrict kernel.sysrq fs.aio-max-nr fs.file-max fs.inotify.max_user_instances fs.inotify.max_user_watches fs.nr_open vm.dirty_background_ratio vm.dirty_background_bytes vm.dirty_expire_centisecs vm.dirty_ratio vm.dirty_bytes vm.dirty_writeback_centisecs vm.max_map_count vm.overcommit_memory vm.overcommit_ratio vm.vfs_cache_pressure vm.swappiness vm.watermark_scale_factor vm.min_free_kbytes", "type": "object" }, "transparentHugepageDefrag": { @@ -8082,6 +8128,11 @@ "readOnly": true, "type": "array" }, + "kubeletCertInfo": { + "$ref": "KubeletCertInfo", + "description": "Output only. Contains expiry information about the kubelet certificate.", + "readOnly": true + }, "locations": { "description": "The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the NodePool's nodes should be located. If this value is unspecified during node pool creation, the [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) value will be used, instead. Warning: changing node pool locations will result in nodes being added and/or removed.", "items": { @@ -8426,6 +8477,18 @@ }, "type": "object" }, + "NodeVfioConfig": { + "description": "Configuration settings for VFIO (Virtual Function I/O) on a node. VFIO allows safe, unprivileged, userspace drivers to access I/O devices.", + "id": "NodeVfioConfig", + "properties": { + "dmaEntryLimit": { + "description": "Optional. Specifies the maximum number of DMA entries (pages) that can be mapped by the VFIO IOMMU type 1 driver for a container. This limit affects the total amount of host memory that can be pinned for direct device access, which is often critical for high-performance devices like TPUs and GPUs. This setting corresponds to the kernel parameter at: `/sys/module/vfio_iommu_type1/parameters/dma_entry_limit`. The default value in the kernel is `65535`. Higher values may be needed for workloads mapping large memory regions. Supported values are integers between `65535` and `4194304`.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "NotificationConfig": { "description": "NotificationConfig is the configuration of notifications.", "id": "NotificationConfig", @@ -10419,7 +10482,7 @@ "type": "object" }, "TopologyManager": { - "description": "TopologyManager defines the configuration options for Topology Manager feature. See https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/", + "description": "TopologyManager defines the configuration options for the [`kubelet` Topology Manager component](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/). For more information about the supported machine types and versions for the Topology Manager in GKE, see [Customizing node system configuration](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-system-config#kubelet-resource-managers).", "id": "TopologyManager", "properties": { "policy": { diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 4396dbfddf0..70eb6272383 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -2117,6 +2117,9 @@ type ClusterUpdate struct { DesiredDisableL4LbFirewallReconciliation bool `json:"desiredDisableL4LbFirewallReconciliation,omitempty"` // DesiredDnsConfig: DNSConfig contains clusterDNS config for this cluster. DesiredDnsConfig *DNSConfig `json:"desiredDnsConfig,omitempty"` + // DesiredEmulatedVersion: Optional. The desired emulated version for the + // cluster. + DesiredEmulatedVersion string `json:"desiredEmulatedVersion,omitempty"` // DesiredEnableCiliumClusterwideNetworkPolicy: Enable/Disable Cilium // Clusterwide Network Policy for the cluster. DesiredEnableCiliumClusterwideNetworkPolicy bool `json:"desiredEnableCiliumClusterwideNetworkPolicy,omitempty"` @@ -3348,6 +3351,34 @@ func (s DesiredEnterpriseConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// DiskIoScheduler: DiskIoScheduler contains the configuration for the disk IO +// scheduler. +type DiskIoScheduler struct { + // NodeAttachedDiskIoScheduler: Optional. Configures the IO scheduler for the + // attached disks. Supported values are `mq-deadline`, `bfq`, `kyber`, `none`. + NodeAttachedDiskIoScheduler string `json:"nodeAttachedDiskIoScheduler,omitempty"` + // NodeSystemIoScheduler: Optional. Configures the IO scheduler for the boot + // disk or ephemeral lssd that runs node system workloads. Supported values are + // `mq-deadline`, `bfq`, `kyber`, `none`. + NodeSystemIoScheduler string `json:"nodeSystemIoScheduler,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "NodeAttachedDiskIoScheduler") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NodeAttachedDiskIoScheduler") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DiskIoScheduler) MarshalJSON() ([]byte, error) { + type NoMethod DiskIoScheduler + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // DisruptionBudget: DisruptionBudget defines the upgrade disruption budget for // the cluster control plane. type DisruptionBudget struct { @@ -4927,6 +4958,30 @@ func (s KalmConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// KubeletCertInfo: Contains expiry information about the kubelet certificate. +type KubeletCertInfo struct { + // NonTpmBootstrapCertExpireTime: Output only. + NonTpmBootstrapCertExpireTime string `json:"nonTpmBootstrapCertExpireTime,omitempty"` + // TpmBootstrapCertExpireTime: Output only. + TpmBootstrapCertExpireTime string `json:"tpmBootstrapCertExpireTime,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "NonTpmBootstrapCertExpireTime") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NonTpmBootstrapCertExpireTime") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s KubeletCertInfo) MarshalJSON() ([]byte, error) { + type NoMethod KubeletCertInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // KubernetesDashboard: Configuration for the Kubernetes Dashboard. type KubernetesDashboard struct { // Disabled: Whether the Kubernetes Dashboard is enabled for this cluster. @@ -4994,6 +5049,9 @@ type LinuxNodeConfig struct { // CustomNodeInit: Optional. Allow users to run arbitrary bash script or // container on the node. CustomNodeInit *CustomNodeInit `json:"customNodeInit,omitempty"` + // DiskIoScheduler: Optional. Controls the configuration for the disk IO + // scheduler. + DiskIoScheduler *DiskIoScheduler `json:"diskIoScheduler,omitempty"` // Hugepages: Optional. Amounts for 2M and 1G hugepages Hugepages *HugepagesConfig `json:"hugepages,omitempty"` // NodeKernelModuleLoading: Optional. Configuration for kernel module loading @@ -5001,6 +5059,9 @@ type LinuxNodeConfig struct { // Container-Optimized OS image that enforces kernel module signature // verification. NodeKernelModuleLoading *NodeKernelModuleLoading `json:"nodeKernelModuleLoading,omitempty"` + // NodeVfioConfig: Optional. Contains VFIO-related configurations for this + // node. + NodeVfioConfig *NodeVfioConfig `json:"nodeVfioConfig,omitempty"` // SwapConfig: Optional. Enables and configures swap space on nodes. If // omitted, swap is disabled. SwapConfig *SwapConfig `json:"swapConfig,omitempty"` @@ -5019,11 +5080,12 @@ type LinuxNodeConfig struct { // net.netfilter.nf_conntrack_tcp_timeout_time_wait // net.netfilter.nf_conntrack_tcp_timeout_established // net.netfilter.nf_conntrack_acct kernel.keys.maxkeys kernel.keys.maxbytes - // kernel.shmmni kernel.shmmax kernel.shmall kernel.perf_event_paranoid - // kernel.sched_rt_runtime_us kernel.softlockup_panic kernel.yama.ptrace_scope - // kernel.kptr_restrict kernel.dmesg_restrict kernel.sysrq fs.aio-max-nr - // fs.file-max fs.inotify.max_user_instances fs.inotify.max_user_watches - // fs.nr_open vm.dirty_background_ratio vm.dirty_background_bytes + // kernel.shmmni kernel.shmmax kernel.shmall kernel.core_pattern + // kernel.perf_event_paranoid kernel.sched_rt_runtime_us + // kernel.softlockup_panic kernel.yama.ptrace_scope kernel.kptr_restrict + // kernel.dmesg_restrict kernel.sysrq fs.aio-max-nr fs.file-max + // fs.inotify.max_user_instances fs.inotify.max_user_watches fs.nr_open + // vm.dirty_background_ratio vm.dirty_background_bytes // vm.dirty_expire_centisecs vm.dirty_ratio vm.dirty_bytes // vm.dirty_writeback_centisecs vm.max_map_count vm.overcommit_memory // vm.overcommit_ratio vm.vfs_cache_pressure vm.swappiness @@ -6917,6 +6979,9 @@ type NodePool struct { // associated with this node pool. During the node pool blue-green upgrade // operation, the URLs contain both blue and green resources. InstanceGroupUrls []string `json:"instanceGroupUrls,omitempty"` + // KubeletCertInfo: Output only. Contains expiry information about the kubelet + // certificate. + KubeletCertInfo *KubeletCertInfo `json:"kubeletCertInfo,omitempty"` // Locations: The list of Google Compute Engine zones // (https://cloud.google.com/compute/docs/zones#available) in which the // NodePool's nodes should be located. If this value is unspecified during node @@ -7329,6 +7394,38 @@ func (s NodeTaints) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// NodeVfioConfig: Configuration settings for VFIO (Virtual Function I/O) on a +// node. VFIO allows safe, unprivileged, userspace drivers to access I/O +// devices. +type NodeVfioConfig struct { + // DmaEntryLimit: Optional. Specifies the maximum number of DMA entries (pages) + // that can be mapped by the VFIO IOMMU type 1 driver for a container. This + // limit affects the total amount of host memory that can be pinned for direct + // device access, which is often critical for high-performance devices like + // TPUs and GPUs. This setting corresponds to the kernel parameter at: + // `/sys/module/vfio_iommu_type1/parameters/dma_entry_limit`. The default value + // in the kernel is `65535`. Higher values may be needed for workloads mapping + // large memory regions. Supported values are integers between `65535` and + // `4194304`. + DmaEntryLimit int64 `json:"dmaEntryLimit,omitempty"` + // ForceSendFields is a list of field names (e.g. "DmaEntryLimit") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DmaEntryLimit") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s NodeVfioConfig) MarshalJSON() ([]byte, error) { + type NoMethod NodeVfioConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // NotificationConfig: NotificationConfig is the configuration of // notifications. type NotificationConfig struct { @@ -10072,9 +10169,12 @@ func (s TimeWindow) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TopologyManager: TopologyManager defines the configuration options for -// Topology Manager feature. See -// https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/ +// TopologyManager: TopologyManager defines the configuration options for the +// `kubelet` Topology Manager component +// (https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/). For +// more information about the supported machine types and versions for the +// Topology Manager in GKE, see Customizing node system configuration +// (https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-system-config#kubelet-resource-managers). type TopologyManager struct { // Policy: Configures the strategy for resource alignment. Allowed values are: // * none: the default policy, and does not perform any topology alignment. * diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index da4099cc701..9dcec9619b8 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -8038,7 +8038,7 @@ } } }, - "revision": "20260619", + "revision": "20260623", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -10022,6 +10022,11 @@ "description": "Optional. Immutable. The resource name of the parent DataDomain. Empty if this is a top-level DataDomain. Format: projects/{project_id_or_number}/locations/{location}/dataDomains/{parent_data_domain_id} This field is immutable after creation.", "type": "string" }, + "policyMember": { + "$ref": "GoogleIamV1ResourcePolicyMember", + "description": "Output only. Output-only policy member strings of this resource.", + "readOnly": true + }, "uid": { "description": "Output only. System-generated globally unique ID for the DataDomain.", "readOnly": true, @@ -16734,6 +16739,23 @@ }, "type": "object" }, + "GoogleIamV1ResourcePolicyMember": { + "description": "Output-only policy member strings of a Google Cloud resource's built-in identity.", + "id": "GoogleIamV1ResourcePolicyMember", + "properties": { + "iamPolicyNamePrincipal": { + "description": "Output only. IAM policy binding member referring to a Google Cloud resource by user-assigned name (https://google.aip.dev/122). If a resource is deleted and recreated with the same name, the binding will be applicable to the new resource.Example: principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter", + "readOnly": true, + "type": "string" + }, + "iamPolicyUidPrincipal": { + "description": "Output only. IAM policy binding member referring to a Google Cloud resource by system-assigned unique identifier (https://google.aip.dev/148#uid). If a resource is deleted and recreated with the same name, the binding will not be applicable to the new resourceExample: principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleIamV1SetIamPolicyRequest": { "description": "Request message for SetIamPolicy method.", "id": "GoogleIamV1SetIamPolicyRequest", diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index c5781e76a22..c07462ff87f 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -2881,6 +2881,9 @@ type GoogleCloudDataplexV1DataDomain struct { // projects/{project_id_or_number}/locations/{location}/dataDomains/{parent_data // _domain_id} This field is immutable after creation. ParentDataDomain string `json:"parentDataDomain,omitempty"` + // PolicyMember: Output only. Output-only policy member strings of this + // resource. + PolicyMember *GoogleIamV1ResourcePolicyMember `json:"policyMember,omitempty"` // Uid: Output only. System-generated globally unique ID for the DataDomain. Uid string `json:"uid,omitempty"` // UpdateTime: Output only. The time at which the DataDomain was last updated. @@ -11223,6 +11226,42 @@ func (s GoogleIamV1Policy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleIamV1ResourcePolicyMember: Output-only policy member strings of a +// Google Cloud resource's built-in identity. +type GoogleIamV1ResourcePolicyMember struct { + // IamPolicyNamePrincipal: Output only. IAM policy binding member referring to + // a Google Cloud resource by user-assigned name (https://google.aip.dev/122). + // If a resource is deleted and recreated with the same name, the binding will + // be applicable to the new resource.Example: + // principal://parametermanager.googleapis.com/projects/12345/name/locations/us- + // central1-a/parameters/my-parameter + IamPolicyNamePrincipal string `json:"iamPolicyNamePrincipal,omitempty"` + // IamPolicyUidPrincipal: Output only. IAM policy binding member referring to a + // Google Cloud resource by system-assigned unique identifier + // (https://google.aip.dev/148#uid). If a resource is deleted and recreated + // with the same name, the binding will not be applicable to the new + // resourceExample: + // principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-c + // entral1-a/parameters/a918fed5 + IamPolicyUidPrincipal string `json:"iamPolicyUidPrincipal,omitempty"` + // ForceSendFields is a list of field names (e.g. "IamPolicyNamePrincipal") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "IamPolicyNamePrincipal") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleIamV1ResourcePolicyMember) MarshalJSON() ([]byte, error) { + type NoMethod GoogleIamV1ResourcePolicyMember + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleIamV1SetIamPolicyRequest: Request message for SetIamPolicy method. type GoogleIamV1SetIamPolicyRequest struct { // Policy: REQUIRED: The complete policy to be applied to the resource. The diff --git a/datastream/v1/datastream-api.json b/datastream/v1/datastream-api.json index 5363790784c..b3fb917f45a 100644 --- a/datastream/v1/datastream-api.json +++ b/datastream/v1/datastream-api.json @@ -196,11 +196,6 @@ "endpointUrl": "https://datastream.us-central1.rep.googleapis.com/", "location": "us-central1" }, - { - "description": "Regional Endpoint", - "endpointUrl": "https://datastream.us-central2.rep.googleapis.com/", - "location": "us-central2" - }, { "description": "Regional Endpoint", "endpointUrl": "https://datastream.us-east1.rep.googleapis.com/", @@ -245,11 +240,6 @@ "description": "Regional Endpoint", "endpointUrl": "https://datastream.us-west4.rep.googleapis.com/", "location": "us-west4" - }, - { - "description": "Regional Endpoint", - "endpointUrl": "https://datastream.us-west8.rep.googleapis.com/", - "location": "us-west8" } ], "fullyEncodeReservedExpansion": true, @@ -1503,7 +1493,7 @@ } } }, - "revision": "20260617", + "revision": "20260623", "rootUrl": "https://datastream.googleapis.com/", "schemas": { "AppendOnly": { diff --git a/datastream/v1alpha1/datastream-api.json b/datastream/v1alpha1/datastream-api.json index 84067474f1e..bd1617740c9 100644 --- a/datastream/v1alpha1/datastream-api.json +++ b/datastream/v1alpha1/datastream-api.json @@ -196,11 +196,6 @@ "endpointUrl": "https://datastream.us-central1.rep.googleapis.com/", "location": "us-central1" }, - { - "description": "Regional Endpoint", - "endpointUrl": "https://datastream.us-central2.rep.googleapis.com/", - "location": "us-central2" - }, { "description": "Regional Endpoint", "endpointUrl": "https://datastream.us-east1.rep.googleapis.com/", @@ -245,11 +240,6 @@ "description": "Regional Endpoint", "endpointUrl": "https://datastream.us-west4.rep.googleapis.com/", "location": "us-west4" - }, - { - "description": "Regional Endpoint", - "endpointUrl": "https://datastream.us-west8.rep.googleapis.com/", - "location": "us-west8" } ], "fullyEncodeReservedExpansion": true, @@ -1472,7 +1462,7 @@ } } }, - "revision": "20260426", + "revision": "20260623", "rootUrl": "https://datastream.googleapis.com/", "schemas": { "AvroFileFormat": { diff --git a/developerknowledge/v1/developerknowledge-api.json b/developerknowledge/v1/developerknowledge-api.json index 3fb48e96f85..5e0ce8a7d37 100644 --- a/developerknowledge/v1/developerknowledge-api.json +++ b/developerknowledge/v1/developerknowledge-api.json @@ -130,7 +130,7 @@ ], "enumDescriptions": [ "The default / unset value. See each API method for its default value if DocumentView is not specified.", - "Includes only the basic metadata fields: - `name` - `uri` - `data_source` - `title` - `description` - `update_time` - `view` This is the default of view for DeveloperKnowledge.SearchDocumentChunks.", + "Includes only the basic metadata fields: - `name` - `uri` - `data_source` - `title` - `description` - `update_time` - `view` - `content_length_bytes` This is the default of view for DeveloperKnowledge.SearchDocumentChunks.", "Includes all Document fields.", "Includes the `DOCUMENT_VIEW_BASIC` fields and the `content` field. This is the default of view for DeveloperKnowledge.GetDocument and DeveloperKnowledge.BatchGetDocuments." ], @@ -172,7 +172,7 @@ ], "enumDescriptions": [ "The default / unset value. See each API method for its default value if DocumentView is not specified.", - "Includes only the basic metadata fields: - `name` - `uri` - `data_source` - `title` - `description` - `update_time` - `view` This is the default of view for DeveloperKnowledge.SearchDocumentChunks.", + "Includes only the basic metadata fields: - `name` - `uri` - `data_source` - `title` - `description` - `update_time` - `view` - `content_length_bytes` This is the default of view for DeveloperKnowledge.SearchDocumentChunks.", "Includes all Document fields.", "Includes the `DOCUMENT_VIEW_BASIC` fields and the `content` field. This is the default of view for DeveloperKnowledge.GetDocument and DeveloperKnowledge.BatchGetDocuments." ], @@ -196,12 +196,12 @@ "parameterOrder": [], "parameters": { "filter": { - "description": "Optional. Applies a strict filter to the search results. The expression supports a subset of the syntax described at https://google.aip.dev/160. While `SearchDocumentChunks` returns DocumentChunks, the filter is applied to `DocumentChunk.document` fields. Supported fields for filtering: * `data_source` (STRING): The source of the document, e.g. `docs.cloud.google.com`. See https://developers.google.com/knowledge/reference/corpus-reference for the complete list of data sources in the corpus. * `update_time` (TIMESTAMP): The timestamp of when the document was last meaningfully updated. A meaningful update is one that changes document's markdown content or metadata. * `uri` (STRING): The document URI, e.g. `https://docs.cloud.google.com/bigquery/docs/tables`. STRING fields support `=` (equals) and `!=` (not equals) operators for **exact match** on the whole string. Partial match, prefix match, and regexp match are not supported. TIMESTAMP fields support `=`, `\u003c`, `\u003c=`, `\u003e`, and `\u003e=` operators. Timestamps must be in RFC-3339 format, e.g., `\"2025-01-01T00:00:00Z\"`. You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical operators. `OR` has higher precedence than `AND`. Use parentheses for explicit precedence grouping. Examples: * `data_source = \"docs.cloud.google.com\" OR data_source = \"firebase.google.com\"` * `data_source != \"firebase.google.com\"` * `update_time \u003c \"2024-01-01T00:00:00Z\"` * `update_time \u003e= \"2025-01-22T00:00:00Z\" AND (data_source = \"developer.chrome.com\" OR data_source = \"web.dev\")` * `uri = \"https://docs.cloud.google.com/release-notes\"` The `filter` string must not exceed 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` error.", + "description": "Optional. Applies a strict filter to the search results. The expression supports a subset of the syntax described at https://google.aip.dev/160. While `SearchDocumentChunks` returns DocumentChunks, the filter is applied to `DocumentChunk.document` fields. Supported fields for filtering: * `content_length_bytes` (INTEGER): The length of the `Document.content` field in bytes. * `data_source` (STRING): The source of the document, e.g. `docs.cloud.google.com`. See https://developers.google.com/knowledge/reference/corpus-reference for the complete list of data sources in the corpus. * `update_time` (TIMESTAMP): The timestamp of when the document was last meaningfully updated. A meaningful update is one that changes document's markdown content or metadata. * `uri` (STRING): The document URI, e.g. `https://docs.cloud.google.com/bigquery/docs/tables`. INTEGER fields support `=`, `\u003c`, `\u003c=`, `\u003e`, and `\u003e=` operators. STRING fields support `=` (equals) and `!=` (not equals) operators for **exact match** on the whole string. Partial match, prefix match, and regexp match are not supported. TIMESTAMP fields support `=`, `\u003c`, `\u003c=`, `\u003e`, and `\u003e=` operators. Timestamps must be in RFC-3339 format, e.g., `\"2025-01-01T00:00:00Z\"`. You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical operators. `OR` has higher precedence than `AND`. Use parentheses for explicit precedence grouping. Examples: * Filter by `Document.content_length_bytes`: `content_length_bytes \u003c 50000` * `data_source = \"docs.cloud.google.com\" OR data_source = \"firebase.google.com\"` * `data_source != \"firebase.google.com\"` * `update_time \u003c \"2024-01-01T00:00:00Z\"` * `update_time \u003e= \"2025-01-22T00:00:00Z\" AND (data_source = \"developer.chrome.com\" OR data_source = \"web.dev\")` * `uri = \"https://docs.cloud.google.com/release-notes\"` The `filter` string must not exceed 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` error.", "location": "query", "type": "string" }, "pageSize": { - "description": "Optional. Specifies the maximum number of results to return. The service may return fewer than this value. If unspecified, at most 5 results will be returned. The maximum value is 20; values above 20 will result in an INVALID_ARGUMENT error.", + "description": "Optional. Specifies the maximum number of results to return. The service may return fewer than this value. If unspecified, at most 5 results will be returned. The maximum value is 100; values above 100 will be coerced to 100.", "format": "int32", "location": "query", "type": "integer" @@ -228,7 +228,7 @@ } } }, - "revision": "20260524", + "revision": "20260705", "rootUrl": "https://developerknowledge.googleapis.com/", "schemas": { "BatchGetDocumentsResponse": { @@ -254,6 +254,12 @@ "readOnly": true, "type": "string" }, + "contentLengthBytes": { + "description": "Output only. The length of the `content` field in bytes.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, "dataSource": { "description": "Output only. Specifies the data source of the document. Example data source: `firebase.google.com`", "readOnly": true, @@ -294,7 +300,7 @@ ], "enumDescriptions": [ "The default / unset value. See each API method for its default value if DocumentView is not specified.", - "Includes only the basic metadata fields: - `name` - `uri` - `data_source` - `title` - `description` - `update_time` - `view` This is the default of view for DeveloperKnowledge.SearchDocumentChunks.", + "Includes only the basic metadata fields: - `name` - `uri` - `data_source` - `title` - `description` - `update_time` - `view` - `content_length_bytes` This is the default of view for DeveloperKnowledge.SearchDocumentChunks.", "Includes all Document fields.", "Includes the `DOCUMENT_VIEW_BASIC` fields and the `content` field. This is the default of view for DeveloperKnowledge.GetDocument and DeveloperKnowledge.BatchGetDocuments." ], diff --git a/developerknowledge/v1/developerknowledge-gen.go b/developerknowledge/v1/developerknowledge-gen.go index 6affcc7c061..56673fe2abc 100644 --- a/developerknowledge/v1/developerknowledge-gen.go +++ b/developerknowledge/v1/developerknowledge-gen.go @@ -195,6 +195,8 @@ type Document struct { // Content: Output only. Contains the full content of the document in Markdown // format. Content string `json:"content,omitempty"` + // ContentLengthBytes: Output only. The length of the `content` field in bytes. + ContentLengthBytes int64 `json:"contentLengthBytes,omitempty"` // DataSource: Output only. Specifies the data source of the document. Example // data source: `firebase.google.com` DataSource string `json:"dataSource,omitempty"` @@ -218,8 +220,9 @@ type Document struct { // "DOCUMENT_VIEW_UNSPECIFIED" - The default / unset value. See each API // method for its default value if DocumentView is not specified. // "DOCUMENT_VIEW_BASIC" - Includes only the basic metadata fields: - `name` - // - `uri` - `data_source` - `title` - `description` - `update_time` - `view` - // This is the default of view for DeveloperKnowledge.SearchDocumentChunks. + // - `uri` - `data_source` - `title` - `description` - `update_time` - `view` - + // `content_length_bytes` This is the default of view for + // DeveloperKnowledge.SearchDocumentChunks. // "DOCUMENT_VIEW_FULL" - Includes all Document fields. // "DOCUMENT_VIEW_CONTENT" - Includes the `DOCUMENT_VIEW_BASIC` fields and // the `content` field. This is the default of view for @@ -357,8 +360,9 @@ func (c *DocumentsBatchGetCall) Names(names ...string) *DocumentsBatchGetCall { // // "DOCUMENT_VIEW_BASIC" - Includes only the basic metadata fields: - `name` // -// - `uri` - `data_source` - `title` - `description` - `update_time` - `view` -// This is the default of view for DeveloperKnowledge.SearchDocumentChunks. +// - `uri` - `data_source` - `title` - `description` - `update_time` - `view` - +// `content_length_bytes` This is the default of view for +// DeveloperKnowledge.SearchDocumentChunks. // // "DOCUMENT_VIEW_FULL" - Includes all Document fields. // "DOCUMENT_VIEW_CONTENT" - Includes the `DOCUMENT_VIEW_BASIC` fields and @@ -491,8 +495,9 @@ func (r *DocumentsService) Get(name string) *DocumentsGetCall { // // "DOCUMENT_VIEW_BASIC" - Includes only the basic metadata fields: - `name` // -// - `uri` - `data_source` - `title` - `description` - `update_time` - `view` -// This is the default of view for DeveloperKnowledge.SearchDocumentChunks. +// - `uri` - `data_source` - `title` - `description` - `update_time` - `view` - +// `content_length_bytes` This is the default of view for +// DeveloperKnowledge.SearchDocumentChunks. // // "DOCUMENT_VIEW_FULL" - Includes all Document fields. // "DOCUMENT_VIEW_CONTENT" - Includes the `DOCUMENT_VIEW_BASIC` fields and @@ -618,25 +623,28 @@ func (r *DocumentsService) SearchDocumentChunks() *DocumentsSearchDocumentChunks // search results. The expression supports a subset of the syntax described at // https://google.aip.dev/160. While `SearchDocumentChunks` returns // DocumentChunks, the filter is applied to `DocumentChunk.document` fields. -// Supported fields for filtering: * `data_source` (STRING): The source of the -// document, e.g. `docs.cloud.google.com`. See +// Supported fields for filtering: * `content_length_bytes` (INTEGER): The +// length of the `Document.content` field in bytes. * `data_source` (STRING): +// The source of the document, e.g. `docs.cloud.google.com`. See // https://developers.google.com/knowledge/reference/corpus-reference for the // complete list of data sources in the corpus. * `update_time` (TIMESTAMP): // The timestamp of when the document was last meaningfully updated. A // meaningful update is one that changes document's markdown content or // metadata. * `uri` (STRING): The document URI, e.g. -// `https://docs.cloud.google.com/bigquery/docs/tables`. STRING fields support -// `=` (equals) and `!=` (not equals) operators for **exact match** on the -// whole string. Partial match, prefix match, and regexp match are not -// supported. TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators. -// Timestamps must be in RFC-3339 format, e.g., "2025-01-01T00:00:00Z". You -// can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical -// operators. `OR` has higher precedence than `AND`. Use parentheses for -// explicit precedence grouping. Examples: * `data_source = -// "docs.cloud.google.com" OR data_source = "firebase.google.com" * -// `data_source != "firebase.google.com" * `update_time < -// "2024-01-01T00:00:00Z" * `update_time >= "2025-01-22T00:00:00Z" AND -// (data_source = "developer.chrome.com" OR data_source = "web.dev")` * `uri = +// `https://docs.cloud.google.com/bigquery/docs/tables`. INTEGER fields support +// `=`, `<`, `<=`, `>`, and `>=` operators. STRING fields support `=` (equals) +// and `!=` (not equals) operators for **exact match** on the whole string. +// Partial match, prefix match, and regexp match are not supported. TIMESTAMP +// fields support `=`, `<`, `<=`, `>`, and `>=` operators. Timestamps must be +// in RFC-3339 format, e.g., "2025-01-01T00:00:00Z". You can combine +// expressions using `AND`, `OR`, and `NOT` (or `-`) logical operators. `OR` +// has higher precedence than `AND`. Use parentheses for explicit precedence +// grouping. Examples: * Filter by `Document.content_length_bytes`: +// `content_length_bytes < 50000` * `data_source = "docs.cloud.google.com" OR +// data_source = "firebase.google.com" * `data_source != +// "firebase.google.com" * `update_time < "2024-01-01T00:00:00Z" * +// `update_time >= "2025-01-22T00:00:00Z" AND (data_source = +// "developer.chrome.com" OR data_source = "web.dev")` * `uri = // "https://docs.cloud.google.com/release-notes" The `filter` string must not // exceed 500 characters; values longer than 500 characters will result in an // `INVALID_ARGUMENT` error. @@ -647,8 +655,8 @@ func (c *DocumentsSearchDocumentChunksCall) Filter(filter string) *DocumentsSear // PageSize sets the optional parameter "pageSize": Specifies the maximum // number of results to return. The service may return fewer than this value. -// If unspecified, at most 5 results will be returned. The maximum value is 20; -// values above 20 will result in an INVALID_ARGUMENT error. +// If unspecified, at most 5 results will be returned. The maximum value is +// 100; values above 100 will be coerced to 100. func (c *DocumentsSearchDocumentChunksCall) PageSize(pageSize int64) *DocumentsSearchDocumentChunksCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c diff --git a/developerknowledge/v1alpha/developerknowledge-api.json b/developerknowledge/v1alpha/developerknowledge-api.json index feaa99c0f7e..6f2bf508502 100644 --- a/developerknowledge/v1alpha/developerknowledge-api.json +++ b/developerknowledge/v1alpha/developerknowledge-api.json @@ -130,7 +130,7 @@ ], "enumDescriptions": [ "The default / unset value. See each API method for its default value if DocumentView is not specified.", - "Includes only the basic metadata fields: - `name` - `uri` - `data_source` - `title` - `description` - `update_time` - `view` This is the default of view for DeveloperKnowledge.SearchDocumentChunks.", + "Includes only the basic metadata fields: - `name` - `uri` - `data_source` - `title` - `description` - `update_time` - `view` - `content_length_bytes` This is the default of view for DeveloperKnowledge.SearchDocumentChunks.", "Includes all Document fields.", "Includes the `DOCUMENT_VIEW_BASIC` fields and the `content` field. This is the default of view for DeveloperKnowledge.GetDocument and DeveloperKnowledge.BatchGetDocuments." ], @@ -172,7 +172,7 @@ ], "enumDescriptions": [ "The default / unset value. See each API method for its default value if DocumentView is not specified.", - "Includes only the basic metadata fields: - `name` - `uri` - `data_source` - `title` - `description` - `update_time` - `view` This is the default of view for DeveloperKnowledge.SearchDocumentChunks.", + "Includes only the basic metadata fields: - `name` - `uri` - `data_source` - `title` - `description` - `update_time` - `view` - `content_length_bytes` This is the default of view for DeveloperKnowledge.SearchDocumentChunks.", "Includes all Document fields.", "Includes the `DOCUMENT_VIEW_BASIC` fields and the `content` field. This is the default of view for DeveloperKnowledge.GetDocument and DeveloperKnowledge.BatchGetDocuments." ], @@ -196,12 +196,12 @@ "parameterOrder": [], "parameters": { "filter": { - "description": "Optional. Applies a strict filter to the search results. The expression supports a subset of the syntax described at https://google.aip.dev/160. While `SearchDocumentChunks` returns DocumentChunks, the filter is applied to `DocumentChunk.document` fields. Supported fields for filtering: * `data_source` (STRING): The source of the document, e.g. `docs.cloud.google.com`. See https://developers.google.com/knowledge/reference/corpus-reference for the complete list of data sources in the corpus. * `update_time` (TIMESTAMP): The timestamp of when the document was last meaningfully updated. A meaningful update is one that changes document's markdown content or metadata. * `uri` (STRING): The document URI, e.g. `https://docs.cloud.google.com/bigquery/docs/tables`. STRING fields support `=` (equals) and `!=` (not equals) operators for **exact match** on the whole string. Partial match, prefix match, and regexp match are not supported. TIMESTAMP fields support `=`, `\u003c`, `\u003c=`, `\u003e`, and `\u003e=` operators. Timestamps must be in RFC-3339 format, e.g., `\"2025-01-01T00:00:00Z\"`. You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical operators. `OR` has higher precedence than `AND`. Use parentheses for explicit precedence grouping. Examples: * `data_source = \"docs.cloud.google.com\" OR data_source = \"firebase.google.com\"` * `data_source != \"firebase.google.com\"` * `update_time \u003c \"2024-01-01T00:00:00Z\"` * `update_time \u003e= \"2025-01-22T00:00:00Z\" AND (data_source = \"developer.chrome.com\" OR data_source = \"web.dev\")` * `uri = \"https://docs.cloud.google.com/release-notes\"` The `filter` string must not exceed 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` error.", + "description": "Optional. Applies a strict filter to the search results. The expression supports a subset of the syntax described at https://google.aip.dev/160. While `SearchDocumentChunks` returns DocumentChunks, the filter is applied to `DocumentChunk.document` fields. Supported fields for filtering: * `content_length_bytes` (INTEGER): The length of the `Document.content` field in bytes. * `data_source` (STRING): The source of the document, e.g. `docs.cloud.google.com`. See https://developers.google.com/knowledge/reference/corpus-reference for the complete list of data sources in the corpus. * `update_time` (TIMESTAMP): The timestamp of when the document was last meaningfully updated. A meaningful update is one that changes document's markdown content or metadata. * `uri` (STRING): The document URI, e.g. `https://docs.cloud.google.com/bigquery/docs/tables`. INTEGER fields support `=`, `\u003c`, `\u003c=`, `\u003e`, and `\u003e=` operators. STRING fields support `=` (equals) and `!=` (not equals) operators for **exact match** on the whole string. Partial match, prefix match, and regexp match are not supported. TIMESTAMP fields support `=`, `\u003c`, `\u003c=`, `\u003e`, and `\u003e=` operators. Timestamps must be in RFC-3339 format, e.g., `\"2025-01-01T00:00:00Z\"`. You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical operators. `OR` has higher precedence than `AND`. Use parentheses for explicit precedence grouping. Examples: * Filter by `Document.content_length_bytes`: `content_length_bytes \u003c 50000` * `data_source = \"docs.cloud.google.com\" OR data_source = \"firebase.google.com\"` * `data_source != \"firebase.google.com\"` * `update_time \u003c \"2024-01-01T00:00:00Z\"` * `update_time \u003e= \"2025-01-22T00:00:00Z\" AND (data_source = \"developer.chrome.com\" OR data_source = \"web.dev\")` * `uri = \"https://docs.cloud.google.com/release-notes\"` The `filter` string must not exceed 500 characters; values longer than 500 characters will result in an `INVALID_ARGUMENT` error.", "location": "query", "type": "string" }, "pageSize": { - "description": "Optional. Specifies the maximum number of results to return. The service may return fewer than this value. If unspecified, at most 5 results will be returned. The maximum value is 20; values above 20 will result in an INVALID_ARGUMENT error.", + "description": "Optional. Specifies the maximum number of results to return. The service may return fewer than this value. If unspecified, at most 5 results will be returned. The maximum value is 100; values above 100 will be coerced to 100.", "format": "int32", "location": "query", "type": "integer" @@ -250,7 +250,7 @@ } } }, - "revision": "20260524", + "revision": "20260705", "rootUrl": "https://developerknowledge.googleapis.com/", "schemas": { "Answer": { @@ -377,6 +377,12 @@ "readOnly": true, "type": "string" }, + "contentLengthBytes": { + "description": "Output only. The length of the `content` field in bytes.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, "dataSource": { "description": "Output only. Specifies the data source of the document. Example data source: `firebase.google.com`", "readOnly": true, @@ -417,7 +423,7 @@ ], "enumDescriptions": [ "The default / unset value. See each API method for its default value if DocumentView is not specified.", - "Includes only the basic metadata fields: - `name` - `uri` - `data_source` - `title` - `description` - `update_time` - `view` This is the default of view for DeveloperKnowledge.SearchDocumentChunks.", + "Includes only the basic metadata fields: - `name` - `uri` - `data_source` - `title` - `description` - `update_time` - `view` - `content_length_bytes` This is the default of view for DeveloperKnowledge.SearchDocumentChunks.", "Includes all Document fields.", "Includes the `DOCUMENT_VIEW_BASIC` fields and the `content` field. This is the default of view for DeveloperKnowledge.GetDocument and DeveloperKnowledge.BatchGetDocuments." ], diff --git a/developerknowledge/v1alpha/developerknowledge-gen.go b/developerknowledge/v1alpha/developerknowledge-gen.go index 50dbc7a0d4d..a8ada59691e 100644 --- a/developerknowledge/v1alpha/developerknowledge-gen.go +++ b/developerknowledge/v1alpha/developerknowledge-gen.go @@ -357,6 +357,8 @@ type Document struct { // Content: Output only. Contains the full content of the document in Markdown // format. Content string `json:"content,omitempty"` + // ContentLengthBytes: Output only. The length of the `content` field in bytes. + ContentLengthBytes int64 `json:"contentLengthBytes,omitempty"` // DataSource: Output only. Specifies the data source of the document. Example // data source: `firebase.google.com` DataSource string `json:"dataSource,omitempty"` @@ -380,8 +382,9 @@ type Document struct { // "DOCUMENT_VIEW_UNSPECIFIED" - The default / unset value. See each API // method for its default value if DocumentView is not specified. // "DOCUMENT_VIEW_BASIC" - Includes only the basic metadata fields: - `name` - // - `uri` - `data_source` - `title` - `description` - `update_time` - `view` - // This is the default of view for DeveloperKnowledge.SearchDocumentChunks. + // - `uri` - `data_source` - `title` - `description` - `update_time` - `view` - + // `content_length_bytes` This is the default of view for + // DeveloperKnowledge.SearchDocumentChunks. // "DOCUMENT_VIEW_FULL" - Includes all Document fields. // "DOCUMENT_VIEW_CONTENT" - Includes the `DOCUMENT_VIEW_BASIC` fields and // the `content` field. This is the default of view for @@ -542,8 +545,9 @@ func (c *DocumentsBatchGetCall) Names(names ...string) *DocumentsBatchGetCall { // // "DOCUMENT_VIEW_BASIC" - Includes only the basic metadata fields: - `name` // -// - `uri` - `data_source` - `title` - `description` - `update_time` - `view` -// This is the default of view for DeveloperKnowledge.SearchDocumentChunks. +// - `uri` - `data_source` - `title` - `description` - `update_time` - `view` - +// `content_length_bytes` This is the default of view for +// DeveloperKnowledge.SearchDocumentChunks. // // "DOCUMENT_VIEW_FULL" - Includes all Document fields. // "DOCUMENT_VIEW_CONTENT" - Includes the `DOCUMENT_VIEW_BASIC` fields and @@ -676,8 +680,9 @@ func (r *DocumentsService) Get(name string) *DocumentsGetCall { // // "DOCUMENT_VIEW_BASIC" - Includes only the basic metadata fields: - `name` // -// - `uri` - `data_source` - `title` - `description` - `update_time` - `view` -// This is the default of view for DeveloperKnowledge.SearchDocumentChunks. +// - `uri` - `data_source` - `title` - `description` - `update_time` - `view` - +// `content_length_bytes` This is the default of view for +// DeveloperKnowledge.SearchDocumentChunks. // // "DOCUMENT_VIEW_FULL" - Includes all Document fields. // "DOCUMENT_VIEW_CONTENT" - Includes the `DOCUMENT_VIEW_BASIC` fields and @@ -803,25 +808,28 @@ func (r *DocumentsService) SearchDocumentChunks() *DocumentsSearchDocumentChunks // search results. The expression supports a subset of the syntax described at // https://google.aip.dev/160. While `SearchDocumentChunks` returns // DocumentChunks, the filter is applied to `DocumentChunk.document` fields. -// Supported fields for filtering: * `data_source` (STRING): The source of the -// document, e.g. `docs.cloud.google.com`. See +// Supported fields for filtering: * `content_length_bytes` (INTEGER): The +// length of the `Document.content` field in bytes. * `data_source` (STRING): +// The source of the document, e.g. `docs.cloud.google.com`. See // https://developers.google.com/knowledge/reference/corpus-reference for the // complete list of data sources in the corpus. * `update_time` (TIMESTAMP): // The timestamp of when the document was last meaningfully updated. A // meaningful update is one that changes document's markdown content or // metadata. * `uri` (STRING): The document URI, e.g. -// `https://docs.cloud.google.com/bigquery/docs/tables`. STRING fields support -// `=` (equals) and `!=` (not equals) operators for **exact match** on the -// whole string. Partial match, prefix match, and regexp match are not -// supported. TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators. -// Timestamps must be in RFC-3339 format, e.g., "2025-01-01T00:00:00Z". You -// can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical -// operators. `OR` has higher precedence than `AND`. Use parentheses for -// explicit precedence grouping. Examples: * `data_source = -// "docs.cloud.google.com" OR data_source = "firebase.google.com" * -// `data_source != "firebase.google.com" * `update_time < -// "2024-01-01T00:00:00Z" * `update_time >= "2025-01-22T00:00:00Z" AND -// (data_source = "developer.chrome.com" OR data_source = "web.dev")` * `uri = +// `https://docs.cloud.google.com/bigquery/docs/tables`. INTEGER fields support +// `=`, `<`, `<=`, `>`, and `>=` operators. STRING fields support `=` (equals) +// and `!=` (not equals) operators for **exact match** on the whole string. +// Partial match, prefix match, and regexp match are not supported. TIMESTAMP +// fields support `=`, `<`, `<=`, `>`, and `>=` operators. Timestamps must be +// in RFC-3339 format, e.g., "2025-01-01T00:00:00Z". You can combine +// expressions using `AND`, `OR`, and `NOT` (or `-`) logical operators. `OR` +// has higher precedence than `AND`. Use parentheses for explicit precedence +// grouping. Examples: * Filter by `Document.content_length_bytes`: +// `content_length_bytes < 50000` * `data_source = "docs.cloud.google.com" OR +// data_source = "firebase.google.com" * `data_source != +// "firebase.google.com" * `update_time < "2024-01-01T00:00:00Z" * +// `update_time >= "2025-01-22T00:00:00Z" AND (data_source = +// "developer.chrome.com" OR data_source = "web.dev")` * `uri = // "https://docs.cloud.google.com/release-notes" The `filter` string must not // exceed 500 characters; values longer than 500 characters will result in an // `INVALID_ARGUMENT` error. @@ -832,8 +840,8 @@ func (c *DocumentsSearchDocumentChunksCall) Filter(filter string) *DocumentsSear // PageSize sets the optional parameter "pageSize": Specifies the maximum // number of results to return. The service may return fewer than this value. -// If unspecified, at most 5 results will be returned. The maximum value is 20; -// values above 20 will result in an INVALID_ARGUMENT error. +// If unspecified, at most 5 results will be returned. The maximum value is +// 100; values above 100 will be coerced to 100. func (c *DocumentsSearchDocumentChunksCall) PageSize(pageSize int64) *DocumentsSearchDocumentChunksCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index 1a658d01ac7..5b9a6619278 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -8780,7 +8780,7 @@ } } }, - "revision": "20260616", + "revision": "20260701", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -16211,6 +16211,9 @@ "enableAutomaticPunctuation": { "type": "boolean" }, + "enableVoiceActivityEvents": { + "type": "boolean" + }, "enableWordInfo": { "type": "boolean" }, @@ -18279,6 +18282,13 @@ "GoogleCloudDialogflowV2SearchKnowledgeDebugInfo": { "id": "GoogleCloudDialogflowV2SearchKnowledgeDebugInfo", "properties": { + "cesDebugInfo": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "type": "object" + }, "datastoreResponseReason": { "enum": [ "DATASTORE_RESPONSE_REASON_UNSPECIFIED", @@ -18945,9 +18955,17 @@ "enum": [ "MESSAGE_TYPE_UNSPECIFIED", "TRANSCRIPT", - "END_OF_SINGLE_UTTERANCE" + "DTMF_DIGITS", + "END_OF_SINGLE_UTTERANCE", + "PARTIAL_DTMF_DIGITS", + "SPEECH_ACTIVITY_BEGIN", + "SPEECH_ACTIVITY_END" ], "enumDescriptions": [ + "", + "", + "", + "", "", "", "" @@ -22999,13 +23017,17 @@ "TRANSCRIPT", "END_OF_SINGLE_UTTERANCE", "DTMF_DIGITS", - "PARTIAL_DTMF_DIGITS" + "PARTIAL_DTMF_DIGITS", + "SPEECH_ACTIVITY_BEGIN", + "SPEECH_ACTIVITY_END" ], "enumDescriptions": [ "", "", "", "", + "", + "", "" ], "type": "string" diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index f54faefae03..ca523ea3a34 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -9364,6 +9364,7 @@ type GoogleCloudDialogflowV2InputAudioConfig struct { AudioEncoding string `json:"audioEncoding,omitempty"` DisableNoSpeechRecognizedEvent bool `json:"disableNoSpeechRecognizedEvent,omitempty"` EnableAutomaticPunctuation bool `json:"enableAutomaticPunctuation,omitempty"` + EnableVoiceActivityEvents bool `json:"enableVoiceActivityEvents,omitempty"` EnableWordInfo bool `json:"enableWordInfo,omitempty"` LanguageCode string `json:"languageCode,omitempty"` Model string `json:"model,omitempty"` @@ -11633,6 +11634,7 @@ func (s GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource) MarshalJSON() } type GoogleCloudDialogflowV2SearchKnowledgeDebugInfo struct { + CesDebugInfo googleapi.RawMessage `json:"cesDebugInfo,omitempty"` // Possible values: // "DATASTORE_RESPONSE_REASON_UNSPECIFIED" // "NONE" @@ -11648,15 +11650,15 @@ type GoogleCloudDialogflowV2SearchKnowledgeDebugInfo struct { IngestedContextReferenceDebugInfo *GoogleCloudDialogflowV2IngestedContextReferenceDebugInfo `json:"ingestedContextReferenceDebugInfo,omitempty"` SearchKnowledgeBehavior *GoogleCloudDialogflowV2SearchKnowledgeDebugInfoSearchKnowledgeBehavior `json:"searchKnowledgeBehavior,omitempty"` ServiceLatency *GoogleCloudDialogflowV2ServiceLatency `json:"serviceLatency,omitempty"` - // ForceSendFields is a list of field names (e.g. "DatastoreResponseReason") to + // ForceSendFields is a list of field names (e.g. "CesDebugInfo") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DatastoreResponseReason") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "CesDebugInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -12459,7 +12461,11 @@ type GoogleCloudDialogflowV2StreamingRecognitionResult struct { // Possible values: // "MESSAGE_TYPE_UNSPECIFIED" // "TRANSCRIPT" + // "DTMF_DIGITS" // "END_OF_SINGLE_UTTERANCE" + // "PARTIAL_DTMF_DIGITS" + // "SPEECH_ACTIVITY_BEGIN" + // "SPEECH_ACTIVITY_END" MessageType string `json:"messageType,omitempty"` SpeechEndOffset string `json:"speechEndOffset,omitempty"` SpeechWordInfo []*GoogleCloudDialogflowV2SpeechWordInfo `json:"speechWordInfo,omitempty"` @@ -17005,6 +17011,8 @@ type GoogleCloudDialogflowV2beta1StreamingRecognitionResult struct { // "END_OF_SINGLE_UTTERANCE" // "DTMF_DIGITS" // "PARTIAL_DTMF_DIGITS" + // "SPEECH_ACTIVITY_BEGIN" + // "SPEECH_ACTIVITY_END" MessageType string `json:"messageType,omitempty"` SpeechEndOffset string `json:"speechEndOffset,omitempty"` SpeechWordInfo []*GoogleCloudDialogflowV2beta1SpeechWordInfo `json:"speechWordInfo,omitempty"` diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index a417eb7bc75..c62327ad0b1 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -8431,7 +8431,7 @@ } } }, - "revision": "20260622", + "revision": "20260701", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -14884,9 +14884,17 @@ "enum": [ "MESSAGE_TYPE_UNSPECIFIED", "TRANSCRIPT", - "END_OF_SINGLE_UTTERANCE" + "DTMF_DIGITS", + "END_OF_SINGLE_UTTERANCE", + "PARTIAL_DTMF_DIGITS", + "SPEECH_ACTIVITY_BEGIN", + "SPEECH_ACTIVITY_END" ], "enumDescriptions": [ + "", + "", + "", + "", "", "", "" @@ -18338,6 +18346,9 @@ "enableAutomaticPunctuation": { "type": "boolean" }, + "enableVoiceActivityEvents": { + "type": "boolean" + }, "enableWordInfo": { "type": "boolean" }, @@ -20851,6 +20862,13 @@ "GoogleCloudDialogflowV2beta1SearchKnowledgeDebugInfo": { "id": "GoogleCloudDialogflowV2beta1SearchKnowledgeDebugInfo", "properties": { + "cesDebugInfo": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "type": "object" + }, "datastoreResponseReason": { "enum": [ "DATASTORE_RESPONSE_REASON_UNSPECIFIED", @@ -21471,13 +21489,17 @@ "TRANSCRIPT", "END_OF_SINGLE_UTTERANCE", "DTMF_DIGITS", - "PARTIAL_DTMF_DIGITS" + "PARTIAL_DTMF_DIGITS", + "SPEECH_ACTIVITY_BEGIN", + "SPEECH_ACTIVITY_END" ], "enumDescriptions": [ "", "", "", "", + "", + "", "" ], "type": "string" diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index b6c716d19e7..0691211265c 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -8259,7 +8259,11 @@ type GoogleCloudDialogflowV2StreamingRecognitionResult struct { // Possible values: // "MESSAGE_TYPE_UNSPECIFIED" // "TRANSCRIPT" + // "DTMF_DIGITS" // "END_OF_SINGLE_UTTERANCE" + // "PARTIAL_DTMF_DIGITS" + // "SPEECH_ACTIVITY_BEGIN" + // "SPEECH_ACTIVITY_END" MessageType string `json:"messageType,omitempty"` SpeechEndOffset string `json:"speechEndOffset,omitempty"` SpeechWordInfo []*GoogleCloudDialogflowV2SpeechWordInfo `json:"speechWordInfo,omitempty"` @@ -12017,6 +12021,7 @@ type GoogleCloudDialogflowV2beta1InputAudioConfig struct { DefaultNoSpeechTimeout string `json:"defaultNoSpeechTimeout,omitempty"` DisableNoSpeechRecognizedEvent bool `json:"disableNoSpeechRecognizedEvent,omitempty"` EnableAutomaticPunctuation bool `json:"enableAutomaticPunctuation,omitempty"` + EnableVoiceActivityEvents bool `json:"enableVoiceActivityEvents,omitempty"` EnableWordInfo bool `json:"enableWordInfo,omitempty"` LanguageCode string `json:"languageCode,omitempty"` Model string `json:"model,omitempty"` @@ -14798,6 +14803,7 @@ func (s GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource) MarshalJS } type GoogleCloudDialogflowV2beta1SearchKnowledgeDebugInfo struct { + CesDebugInfo googleapi.RawMessage `json:"cesDebugInfo,omitempty"` // Possible values: // "DATASTORE_RESPONSE_REASON_UNSPECIFIED" // "NONE" @@ -14813,15 +14819,15 @@ type GoogleCloudDialogflowV2beta1SearchKnowledgeDebugInfo struct { IngestedContextReferenceDebugInfo *GoogleCloudDialogflowV2beta1IngestedContextReferenceDebugInfo `json:"ingestedContextReferenceDebugInfo,omitempty"` SearchKnowledgeBehavior *GoogleCloudDialogflowV2beta1SearchKnowledgeDebugInfoSearchKnowledgeBehavior `json:"searchKnowledgeBehavior,omitempty"` ServiceLatency *GoogleCloudDialogflowV2beta1ServiceLatency `json:"serviceLatency,omitempty"` - // ForceSendFields is a list of field names (e.g. "DatastoreResponseReason") to + // ForceSendFields is a list of field names (e.g. "CesDebugInfo") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DatastoreResponseReason") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "CesDebugInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -15534,6 +15540,8 @@ type GoogleCloudDialogflowV2beta1StreamingRecognitionResult struct { // "END_OF_SINGLE_UTTERANCE" // "DTMF_DIGITS" // "PARTIAL_DTMF_DIGITS" + // "SPEECH_ACTIVITY_BEGIN" + // "SPEECH_ACTIVITY_END" MessageType string `json:"messageType,omitempty"` SpeechEndOffset string `json:"speechEndOffset,omitempty"` SpeechWordInfo []*GoogleCloudDialogflowV2beta1SpeechWordInfo `json:"speechWordInfo,omitempty"` diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index edcbfeec73e..cdfb5960ced 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -5031,7 +5031,7 @@ } } }, - "revision": "20260616", + "revision": "20260701", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3Action": { @@ -15702,9 +15702,17 @@ "enum": [ "MESSAGE_TYPE_UNSPECIFIED", "TRANSCRIPT", - "END_OF_SINGLE_UTTERANCE" + "DTMF_DIGITS", + "END_OF_SINGLE_UTTERANCE", + "PARTIAL_DTMF_DIGITS", + "SPEECH_ACTIVITY_BEGIN", + "SPEECH_ACTIVITY_END" ], "enumDescriptions": [ + "", + "", + "", + "", "", "", "" @@ -18603,13 +18611,17 @@ "TRANSCRIPT", "END_OF_SINGLE_UTTERANCE", "DTMF_DIGITS", - "PARTIAL_DTMF_DIGITS" + "PARTIAL_DTMF_DIGITS", + "SPEECH_ACTIVITY_BEGIN", + "SPEECH_ACTIVITY_END" ], "enumDescriptions": [ "", "", "", "", + "", + "", "" ], "type": "string" diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index 8c776384d72..0d4d9c66f01 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -12770,7 +12770,11 @@ type GoogleCloudDialogflowV2StreamingRecognitionResult struct { // Possible values: // "MESSAGE_TYPE_UNSPECIFIED" // "TRANSCRIPT" + // "DTMF_DIGITS" // "END_OF_SINGLE_UTTERANCE" + // "PARTIAL_DTMF_DIGITS" + // "SPEECH_ACTIVITY_BEGIN" + // "SPEECH_ACTIVITY_END" MessageType string `json:"messageType,omitempty"` SpeechEndOffset string `json:"speechEndOffset,omitempty"` SpeechWordInfo []*GoogleCloudDialogflowV2SpeechWordInfo `json:"speechWordInfo,omitempty"` @@ -16027,6 +16031,8 @@ type GoogleCloudDialogflowV2beta1StreamingRecognitionResult struct { // "END_OF_SINGLE_UTTERANCE" // "DTMF_DIGITS" // "PARTIAL_DTMF_DIGITS" + // "SPEECH_ACTIVITY_BEGIN" + // "SPEECH_ACTIVITY_END" MessageType string `json:"messageType,omitempty"` SpeechEndOffset string `json:"speechEndOffset,omitempty"` SpeechWordInfo []*GoogleCloudDialogflowV2beta1SpeechWordInfo `json:"speechWordInfo,omitempty"` diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index 866d2d80ee0..4a72a187655 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -5151,7 +5151,7 @@ } } }, - "revision": "20260616", + "revision": "20260701", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -16747,9 +16747,17 @@ "enum": [ "MESSAGE_TYPE_UNSPECIFIED", "TRANSCRIPT", - "END_OF_SINGLE_UTTERANCE" + "DTMF_DIGITS", + "END_OF_SINGLE_UTTERANCE", + "PARTIAL_DTMF_DIGITS", + "SPEECH_ACTIVITY_BEGIN", + "SPEECH_ACTIVITY_END" ], "enumDescriptions": [ + "", + "", + "", + "", "", "", "" @@ -19648,13 +19656,17 @@ "TRANSCRIPT", "END_OF_SINGLE_UTTERANCE", "DTMF_DIGITS", - "PARTIAL_DTMF_DIGITS" + "PARTIAL_DTMF_DIGITS", + "SPEECH_ACTIVITY_BEGIN", + "SPEECH_ACTIVITY_END" ], "enumDescriptions": [ "", "", "", "", + "", + "", "" ], "type": "string" diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index e4800b3ed47..05089f478de 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -13721,7 +13721,11 @@ type GoogleCloudDialogflowV2StreamingRecognitionResult struct { // Possible values: // "MESSAGE_TYPE_UNSPECIFIED" // "TRANSCRIPT" + // "DTMF_DIGITS" // "END_OF_SINGLE_UTTERANCE" + // "PARTIAL_DTMF_DIGITS" + // "SPEECH_ACTIVITY_BEGIN" + // "SPEECH_ACTIVITY_END" MessageType string `json:"messageType,omitempty"` SpeechEndOffset string `json:"speechEndOffset,omitempty"` SpeechWordInfo []*GoogleCloudDialogflowV2SpeechWordInfo `json:"speechWordInfo,omitempty"` @@ -16978,6 +16982,8 @@ type GoogleCloudDialogflowV2beta1StreamingRecognitionResult struct { // "END_OF_SINGLE_UTTERANCE" // "DTMF_DIGITS" // "PARTIAL_DTMF_DIGITS" + // "SPEECH_ACTIVITY_BEGIN" + // "SPEECH_ACTIVITY_END" MessageType string `json:"messageType,omitempty"` SpeechEndOffset string `json:"speechEndOffset,omitempty"` SpeechWordInfo []*GoogleCloudDialogflowV2beta1SpeechWordInfo `json:"speechWordInfo,omitempty"` diff --git a/discoveryengine/v1beta/discoveryengine-api.json b/discoveryengine/v1beta/discoveryengine-api.json index 9370bf960f4..6d69eeac7d5 100644 --- a/discoveryengine/v1beta/discoveryengine-api.json +++ b/discoveryengine/v1beta/discoveryengine-api.json @@ -9524,7 +9524,7 @@ } } }, - "revision": "20260620", + "revision": "20260706", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiDistribution": { @@ -11240,6 +11240,14 @@ "$ref": "GoogleTypeDateTime", "description": "Defines the scheduled time for the next data synchronization. This field requires hour , minute, and time_zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). This is utilized when the data connector has a refresh interval greater than 1 day. When the hours or minutes are not specified, we will assume a sync time of 0:00. The user must provide a time zone to avoid ambiguity." }, + "oauthStaticIpAddresses": { + "description": "Output only. The static IP addresses used by this connector for OAuth APIs (e.g. end user authentication). These are surfaced separately from `static_ip_addresses` so that customers can apply granular firewall settings for OAuth endpoints. Only populated for connectors that have static IP enabled and are used for actions and/or federated search.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "params": { "additionalProperties": { "description": "Properties of the object.", @@ -12254,7 +12262,8 @@ "type": "string" }, "associatedAgentRegistry": { - "description": "Optional. The Agent registry containing the agents, MCP servers and tools associated with this engine. Field is required if the engine has an Agent Gateway setting.", + "description": "Output only. The Agent registry containing the agents, MCP servers and tools associated with this engine. Derived server-side from the linked Agent Gateway's registry.", + "readOnly": true, "type": "string" }, "chatEngineConfig": { @@ -12329,7 +12338,7 @@ ], "type": "string" }, - "description": "Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `disable-skills` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `deep-research`", + "description": "Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `disable-skills` * `disable-projects` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `deep-research`", "type": "object" }, "industryVertical": { @@ -12655,7 +12664,7 @@ "id": "GoogleCloudDiscoveryengineV1EngineSearchEngineConfig", "properties": { "requiredSubscriptionTier": { - "description": "Optional. The required subscription tier of this engine. They cannot be modified after engine creation. If the required subscription tier is search, user with higher license tier like assist can still access the standalone app associated with this engine.", + "description": "Optional. The required subscription tier of this engine. If the required subscription tier is search, user with higher license tier like assist can still access the standalone app associated with this engine. Web grounding feature is only available on the app if it is set as SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT.", "enum": [ "SUBSCRIPTION_TIER_UNSPECIFIED", "SUBSCRIPTION_TIER_SEARCH", @@ -14414,7 +14423,8 @@ "GOOGLE_CHAT", "GOOGLE_GROUPS", "GOOGLE_KEEP", - "GOOGLE_PEOPLE" + "GOOGLE_PEOPLE", + "GOOGLE_WORKSPACE" ], "enumDescriptions": [ "Defaults to an unspecified Workspace type.", @@ -14425,7 +14435,8 @@ "Workspace Data Store contains Chat data", "Workspace Data Store contains Groups data", "Workspace Data Store contains Keep data", - "Workspace Data Store contains People data" + "Workspace Data Store contains People data", + "Workspace Data Store contains all Workspace apps data" ], "type": "string" } @@ -14667,6 +14678,385 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationInsights": { + "description": "Evaluation insights for a program.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationInsights", + "properties": { + "insights": { + "description": "Optional. List of evaluation insights.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationInsightsAlphaEvolveEvaluationInsight" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationInsightsAlphaEvolveEvaluationInsight": { + "description": "A single evaluation insight.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationInsightsAlphaEvolveEvaluationInsight", + "properties": { + "label": { + "description": "Optional. Label of the insight.", + "type": "string" + }, + "text": { + "description": "Optional. Text of the insight.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScores": { + "description": "Contains the evaluation scores for the target metrics to optimize.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScores", + "properties": { + "scores": { + "description": "Required. List of evaluation scores.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScoresAlphaEvolveEvaluationScore" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScoresAlphaEvolveEvaluationScore": { + "description": "Score for a single metric.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScoresAlphaEvolveEvaluationScore", + "properties": { + "metric": { + "description": "Required. Name of the metric.", + "type": "string" + }, + "score": { + "description": "Required. Score of a program for this metric.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperiment": { + "description": "An experiment is a single run of the AlphaEvolve agent, an evolutionary coding agent powered by LLM for algorithm discovery and optimization.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperiment", + "properties": { + "config": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfig", + "description": "Required. Experiment configuration." + }, + "createTime": { + "description": "Output only. Time when the experiment was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "initialAlphaEvolveProgram": { + "description": "Output only. Specifies the name of the seed program used to start the experiment.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The full resource name of the experiment. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/alphaEvolveExperiments/{alpha_evolve_experiment}`", + "type": "string" + }, + "state": { + "description": "Output only. The state of the experiment.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATED", + "RUNNING", + "PAUSED", + "COMPLETED", + "FAILED" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The experiment is created.", + "The experiment is running.", + "The experiment is paused.", + "The experiment is completed.", + "The experiment has failed." + ], + "readOnly": true, + "type": "string" + }, + "stats": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentStats", + "description": "Output only. Experiment stats.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfig": { + "description": "Configuration of an experiment.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfig", + "properties": { + "evolutionSettings": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettings", + "description": "Optional. Evolution settings for the experiment." + }, + "generationSettings": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettings", + "description": "Optional. Generation settings for the experiment, controlling how new program candidates are generated, including things LLM parameters and user-provided context and prompts." + }, + "problemDescription": { + "description": "Required. Description of the problem to be solved by the experiment.", + "type": "string" + }, + "programLanguage": { + "description": "Required. Primary programming language of the code being optimized.", + "type": "string" + }, + "runSettings": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigRunSettings", + "description": "Required. Run settings for the experiment, controlling the overall behavior of the experiment run." + }, + "title": { + "description": "Required. Title of the experiment.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettings": { + "description": "Evolution settings for the experiment.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettings", + "properties": { + "parentSamplingConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettingsParentSamplingConfig", + "description": "Optional. Parent sampling configuration." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettingsParentSamplingConfig": { + "description": "Configuration for parent sampling.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettingsParentSamplingConfig", + "properties": { + "paretoSamplingConfig": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettingsParentSamplingConfigParetoSamplingConfig", + "description": "Optional. Pareto sampling configuration." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettingsParentSamplingConfigParetoSamplingConfig": { + "description": "Configuration for Pareto sampling.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettingsParentSamplingConfigParetoSamplingConfig", + "properties": { + "paretoSamplingProbability": { + "description": "Optional. Probability [0.0, 1.0] of sampling parent programs from the Pareto frontier instead of normal fitness-based sampling during candidate generation. Useful when optimizing multiple metrics simultaneously. Default 0.0 (disabled). Only effective when evaluation returns multiple metrics in scores_to_optimize.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettings": { + "description": "Generation settings for the experiment.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettings", + "properties": { + "context": { + "description": "Optional. Additional user-provided context to be used during generation.", + "type": "string" + }, + "includeFullProgramInPrompt": { + "description": "Optional. When true, the LLM prompt includes the full program text (both mutable EVOLVE-BLOCK regions and immutable boilerplate). When false (default), only the mutable EVOLVE-BLOCK regions are shown, saving context window.", + "type": "boolean" + }, + "models": { + "description": "Optional. Per-model configuration. See `ModelConfig` for details. If left unset, the server selects a default model.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettingsModelConfig" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettingsModelConfig": { + "description": "Per-model configuration. Mutually exclusive with `model_mixture` and `model`: when `models` is set, both `model_mixture` and `model` must be left unset. The same allowed-model list and at-most-2-models rule as for `model_mixture` apply. In addition, each entry may specify a per-model `temperature` for LLM sampling. Unlike `model_mixture`, weights here are *relative*: only their ratios matter (the server normalizes them), so callers may use any positive numbers without having to ensure they sum to 1.0.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettingsModelConfig", + "properties": { + "name": { + "description": "Required. Model name (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`). See `model_mixture` for the list of allowed models.", + "type": "string" + }, + "weight": { + "description": "Optional. Relative weight for this model in the mixture. Must be a finite, strictly positive value. Weights across all entries are normalized server-side, so they need not sum to 1.0. Defaults to 1.0 when unset, which is convenient when configuring a single model or an even mixture. Some Pro-tier models are capped at most 50% of the total weight; requests violating that cap are rejected with INVALID_ARGUMENT.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigRunSettings": { + "description": "Run settings for the experiment.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigRunSettings", + "properties": { + "concurrency": { + "description": "Required. Maximum number of programs that can be generated in parallel. Must be positive.", + "format": "int32", + "type": "integer" + }, + "maxDuration": { + "description": "Optional. Maximum duration of the experiment. If unset, defaults to 24 hours.", + "format": "google-duration", + "type": "string" + }, + "maxPrograms": { + "description": "Required. Maximum number of programs to generate during the experiment run. The initial program counts towards this limit. Must be greater than 1.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentStats": { + "description": "Stats about the experiment.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentStats", + "properties": { + "candidatesCount": { + "description": "Output only. Number of candidates generated.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "evaluatedCandidatesCount": { + "description": "Output only. Number of candidates evaluated.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "inputTokenCount": { + "description": "Output only. Number of billed input tokens consumed by the experiment.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "outputTokenCount": { + "description": "Output only. Number of billed output tokens consumed by the experiment.", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgram": { + "description": "Represents a single program to be used within the context of an AlphaEvolve experiment.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgram", + "properties": { + "content": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgramContent", + "description": "Optional. Content of the program." + }, + "createTime": { + "description": "Output only. Time when the program was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "evaluation": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgramEvaluation", + "description": "Optional. Evaluation results for the program." + }, + "lockToken": { + "description": "Optional. Lock token for the program.", + "type": "string" + }, + "name": { + "description": "Identifier. Unique identifier for the program. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/alphaEvolveExperiments/{alpha_evolve_experiment}/alphaEvolvePrograms/{alpha_evolve_program}`", + "type": "string" + }, + "parentPrograms": { + "description": "Output only. Optionally specifies which parent programs this program was evolved from. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/alphaEvolveExperiments/{alpha_evolve_experiment}/alphaEvolvePrograms/{alpha_evolve_program}`", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "state": { + "description": "Output only. State of the program.", + "enum": [ + "PROGRAM_STATE_UNSPECIFIED", + "INITIALIZED", + "GENERATING", + "EVALUATING", + "COMPLETED" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The program is initialized.", + "The program is in generation.", + "The program is pending evaluation.", + "The program is completed." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgramContent": { + "description": "A self-contained message containing the content of a program. Can represent a collection of files.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgramContent", + "properties": { + "description": { + "description": "Optional. Description of the program.", + "type": "string" + }, + "files": { + "description": "Required. A list of source files that make up the overall program.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveSourceFile" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgramEvaluation": { + "description": "Evaluation results for a program candidate.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgramEvaluation", + "properties": { + "insights": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationInsights", + "description": "Optional. Represents various insights about the candidate, which are not directly used as optimization target, but that can be used to improve subsequent generations, and as such can be used to construct the evolution prompt." + }, + "scores": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScores", + "description": "Optional. Contains the evaluation scores for the target metrics to optimize." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAlphaEvolveSourceFile": { + "description": "A single source file with its path, content and metadata.", + "id": "GoogleCloudDiscoveryengineV1alphaAlphaEvolveSourceFile", + "properties": { + "content": { + "description": "Required. The raw content of the file. This is a string and not bytes, because it should be ultimately processed by the LLM as text.", + "type": "string" + }, + "description": { + "description": "Optional. Additional description of the file.", + "type": "string" + }, + "path": { + "description": "Required. The relative path of the file, including the filename. e.g., \"src/main.py\", \"utils/helpers.js\", \"README.md\"", + "type": "string" + }, + "programLanguage": { + "description": "Optional. The programming language of the file.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaAnswer": { "description": "Defines an answer.", "id": "GoogleCloudDiscoveryengineV1alphaAnswer", @@ -16923,6 +17313,14 @@ "$ref": "GoogleTypeDateTime", "description": "Defines the scheduled time for the next data synchronization. This field requires hour , minute, and time_zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). This is utilized when the data connector has a refresh interval greater than 1 day. When the hours or minutes are not specified, we will assume a sync time of 0:00. The user must provide a time zone to avoid ambiguity." }, + "oauthStaticIpAddresses": { + "description": "Output only. The static IP addresses used by this connector for OAuth APIs (e.g. end user authentication). These are surfaced separately from `static_ip_addresses` so that customers can apply granular firewall settings for OAuth endpoints. Only populated for connectors that have static IP enabled and are used for actions and/or federated search.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "params": { "additionalProperties": { "description": "Properties of the object.", @@ -17763,6 +18161,11 @@ "description": "The number of end users under the user store that were successfully deleted.", "format": "int64", "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" } }, "type": "object" @@ -18051,7 +18454,8 @@ "type": "string" }, "associatedAgentRegistry": { - "description": "Optional. The Agent registry containing the agents, MCP servers and tools associated with this engine. Field is required if the engine has an Agent Gateway setting.", + "description": "Output only. The Agent registry containing the agents, MCP servers and tools associated with this engine. Derived server-side from the linked Agent Gateway's registry.", + "readOnly": true, "type": "string" }, "chatEngineConfig": { @@ -18126,7 +18530,7 @@ ], "type": "string" }, - "description": "Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `disable-skills` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `deep-research`", + "description": "Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `disable-skills` * `disable-projects` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `deep-research`", "type": "object" }, "industryVertical": { @@ -18517,7 +18921,7 @@ "id": "GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig", "properties": { "requiredSubscriptionTier": { - "description": "Optional. The required subscription tier of this engine. They cannot be modified after engine creation. If the required subscription tier is search, user with higher license tier like assist can still access the standalone app associated with this engine.", + "description": "Optional. The required subscription tier of this engine. If the required subscription tier is search, user with higher license tier like assist can still access the standalone app associated with this engine. Web grounding feature is only available on the app if it is set as SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT.", "enum": [ "SUBSCRIPTION_TIER_UNSPECIFIED", "SUBSCRIPTION_TIER_SEARCH", @@ -20518,6 +20922,25 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaResumeExperimentMetadata": { + "description": "Metadata for AlphaEvolveService.ResumeExperiment long running operation.", + "id": "GoogleCloudDiscoveryengineV1alphaResumeExperimentMetadata", + "properties": { + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The time the operation was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaSafetyRating": { "description": "Safety rating corresponding to the generated content.", "id": "GoogleCloudDiscoveryengineV1alphaSafetyRating", @@ -21877,6 +22300,36 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaStartExperimentMetadata": { + "description": "Metadata for AlphaEvolveService.StartExperiment long running operation.", + "id": "GoogleCloudDiscoveryengineV1alphaStartExperimentMetadata", + "properties": { + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The time the operation was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaStartExperimentRequest": { + "description": "Request message for AlphaEvolveService.StartExperiment.", + "id": "GoogleCloudDiscoveryengineV1alphaStartExperimentRequest", + "properties": { + "name": { + "description": "Required. Experiment to start. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/alphaEvolveExperiments/{alpha_evolve_experiment}`", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaTargetSite": { "description": "A target site for the SiteSearchEngine.", "id": "GoogleCloudDiscoveryengineV1alphaTargetSite", @@ -22278,7 +22731,8 @@ "GOOGLE_CHAT", "GOOGLE_GROUPS", "GOOGLE_KEEP", - "GOOGLE_PEOPLE" + "GOOGLE_PEOPLE", + "GOOGLE_WORKSPACE" ], "enumDescriptions": [ "Defaults to an unspecified Workspace type.", @@ -22289,7 +22743,8 @@ "Workspace Data Store contains Chat data", "Workspace Data Store contains Groups data", "Workspace Data Store contains Keep data", - "Workspace Data Store contains People data" + "Workspace Data Store contains People data", + "Workspace Data Store contains all Workspace apps data" ], "type": "string" } @@ -27157,7 +27612,8 @@ "type": "string" }, "associatedAgentRegistry": { - "description": "Optional. The Agent registry containing the agents, MCP servers and tools associated with this engine. Field is required if the engine has an Agent Gateway setting.", + "description": "Output only. The Agent registry containing the agents, MCP servers and tools associated with this engine. Derived server-side from the linked Agent Gateway's registry.", + "readOnly": true, "type": "string" }, "chatEngineConfig": { @@ -27232,7 +27688,7 @@ ], "type": "string" }, - "description": "Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `disable-skills` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `deep-research`", + "description": "Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `disable-skills` * `disable-projects` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `deep-research`", "type": "object" }, "industryVertical": { @@ -27558,7 +28014,7 @@ "id": "GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig", "properties": { "requiredSubscriptionTier": { - "description": "Optional. The required subscription tier of this engine. They cannot be modified after engine creation. If the required subscription tier is search, user with higher license tier like assist can still access the standalone app associated with this engine.", + "description": "Optional. The required subscription tier of this engine. If the required subscription tier is search, user with higher license tier like assist can still access the standalone app associated with this engine. Web grounding feature is only available on the app if it is set as SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT.", "enum": [ "SUBSCRIPTION_TIER_UNSPECIFIED", "SUBSCRIPTION_TIER_SEARCH", @@ -33648,7 +34104,8 @@ "GOOGLE_CHAT", "GOOGLE_GROUPS", "GOOGLE_KEEP", - "GOOGLE_PEOPLE" + "GOOGLE_PEOPLE", + "GOOGLE_WORKSPACE" ], "enumDescriptions": [ "Defaults to an unspecified Workspace type.", @@ -33659,7 +34116,8 @@ "Workspace Data Store contains Chat data", "Workspace Data Store contains Groups data", "Workspace Data Store contains Keep data", - "Workspace Data Store contains People data" + "Workspace Data Store contains People data", + "Workspace Data Store contains all Workspace apps data" ], "type": "string" } diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index e52f7b6e074..ce44272c507 100644 --- a/discoveryengine/v1beta/discoveryengine-gen.go +++ b/discoveryengine/v1beta/discoveryengine-gen.go @@ -3554,6 +3554,12 @@ type GoogleCloudDiscoveryengineV1DataConnector struct { // minutes are not specified, we will assume a sync time of 0:00. The user must // provide a time zone to avoid ambiguity. NextSyncTime *GoogleTypeDateTime `json:"nextSyncTime,omitempty"` + // OauthStaticIpAddresses: Output only. The static IP addresses used by this + // connector for OAuth APIs (e.g. end user authentication). These are surfaced + // separately from `static_ip_addresses` so that customers can apply granular + // firewall settings for OAuth endpoints. Only populated for connectors that + // have static IP enabled and are used for actions and/or federated search. + OauthStaticIpAddresses []string `json:"oauthStaticIpAddresses,omitempty"` // Params: Required data connector parameters in structured json format. Params googleapi.RawMessage `json:"params,omitempty"` // PrivateConnectivityProjectId: Output only. The tenant project ID associated @@ -4790,9 +4796,9 @@ type GoogleCloudDiscoveryengineV1Engine struct { // "APP_TYPE_UNSPECIFIED" - All non specified apps. // "APP_TYPE_INTRANET" - App type for intranet search and Agentspace. AppType string `json:"appType,omitempty"` - // AssociatedAgentRegistry: Optional. The Agent registry containing the agents, - // MCP servers and tools associated with this engine. Field is required if the - // engine has an Agent Gateway setting. + // AssociatedAgentRegistry: Output only. The Agent registry containing the + // agents, MCP servers and tools associated with this engine. Derived + // server-side from the linked Agent Gateway's registry. AssociatedAgentRegistry string `json:"associatedAgentRegistry,omitempty"` // ChatEngineConfig: Configurations for the Chat Engine. Only applicable if // solution_type is SOLUTION_TYPE_CHAT. @@ -4843,9 +4849,9 @@ type GoogleCloudDiscoveryengineV1Engine struct { // `disable-video-generation` * `disable-onedrive-upload` * // `disable-talk-to-content` * `disable-google-drive-upload` * // `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * - // `disable-skills` * `enable-end-user-sharing-with-groups` * - // `single-agent-orchestration` * `multi-agent-orchestration` * - // `cross-product-intelligence` * `deep-research` + // `disable-skills` * `disable-projects` * + // `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * + // `multi-agent-orchestration` * `cross-product-intelligence` * `deep-research` Features map[string]string `json:"features,omitempty"` // IndustryVertical: Optional. The industry vertical that the engine registers. // The restriction of the Engine industry vertical is based on DataStore: @@ -5322,9 +5328,10 @@ func (s GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecomme // Search Engine. type GoogleCloudDiscoveryengineV1EngineSearchEngineConfig struct { // RequiredSubscriptionTier: Optional. The required subscription tier of this - // engine. They cannot be modified after engine creation. If the required - // subscription tier is search, user with higher license tier like assist can - // still access the standalone app associated with this engine. + // engine. If the required subscription tier is search, user with higher + // license tier like assist can still access the standalone app associated with + // this engine. Web grounding feature is only available on the app if it is set + // as SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT. // // Possible values: // "SUBSCRIPTION_TIER_UNSPECIFIED" - Default value. @@ -7628,6 +7635,7 @@ type GoogleCloudDiscoveryengineV1WorkspaceConfig struct { // "GOOGLE_GROUPS" - Workspace Data Store contains Groups data // "GOOGLE_KEEP" - Workspace Data Store contains Keep data // "GOOGLE_PEOPLE" - Workspace Data Store contains People data + // "GOOGLE_WORKSPACE" - Workspace Data Store contains all Workspace apps data Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "DasherCustomerId") to // unconditionally include in API requests. By default, fields with empty or @@ -7987,6 +7995,568 @@ func (s GoogleCloudDiscoveryengineV1alphaAlertPolicyResourceConfigAlertEnrollmen return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationInsights: Evaluation +// insights for a program. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationInsights struct { + // Insights: Optional. List of evaluation insights. + Insights []*GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationInsightsAlphaEvolveEvaluationInsight `json:"insights,omitempty"` + // ForceSendFields is a list of field names (e.g. "Insights") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Insights") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationInsights) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationInsights + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationInsightsAlphaEvolveEval +// uationInsight: A single evaluation insight. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationInsightsAlphaEvolveEvaluationInsight struct { + // Label: Optional. Label of the insight. + Label string `json:"label,omitempty"` + // Text: Optional. Text of the insight. + Text string `json:"text,omitempty"` + // ForceSendFields is a list of field names (e.g. "Label") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Label") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationInsightsAlphaEvolveEvaluationInsight) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationInsightsAlphaEvolveEvaluationInsight + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScores: Contains the +// evaluation scores for the target metrics to optimize. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScores struct { + // Scores: Required. List of evaluation scores. + Scores []*GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScoresAlphaEvolveEvaluationScore `json:"scores,omitempty"` + // ForceSendFields is a list of field names (e.g. "Scores") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Scores") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScores) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScores + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScoresAlphaEvolveEvalua +// tionScore: Score for a single metric. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScoresAlphaEvolveEvaluationScore struct { + // Metric: Required. Name of the metric. + Metric string `json:"metric,omitempty"` + // Score: Required. Score of a program for this metric. + Score float64 `json:"score,omitempty"` + // ForceSendFields is a list of field names (e.g. "Metric") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Metric") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScoresAlphaEvolveEvaluationScore) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScoresAlphaEvolveEvaluationScore + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScoresAlphaEvolveEvaluationScore) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScoresAlphaEvolveEvaluationScore + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperiment: An experiment is a +// single run of the AlphaEvolve agent, an evolutionary coding agent powered by +// LLM for algorithm discovery and optimization. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperiment struct { + // Config: Required. Experiment configuration. + Config *GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfig `json:"config,omitempty"` + // CreateTime: Output only. Time when the experiment was created. + CreateTime string `json:"createTime,omitempty"` + // InitialAlphaEvolveProgram: Output only. Specifies the name of the seed + // program used to start the experiment. + InitialAlphaEvolveProgram string `json:"initialAlphaEvolveProgram,omitempty"` + // Name: Identifier. The full resource name of the experiment. Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{en + // gine}/sessions/{session}/alphaEvolveExperiments/{alpha_evolve_experiment}` + Name string `json:"name,omitempty"` + // State: Output only. The state of the experiment. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. This value is unused. + // "CREATED" - The experiment is created. + // "RUNNING" - The experiment is running. + // "PAUSED" - The experiment is paused. + // "COMPLETED" - The experiment is completed. + // "FAILED" - The experiment has failed. + State string `json:"state,omitempty"` + // Stats: Output only. Experiment stats. + Stats *GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentStats `json:"stats,omitempty"` + // ForceSendFields is a list of field names (e.g. "Config") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Config") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperiment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperiment + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfig: Configuration +// of an experiment. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfig struct { + // EvolutionSettings: Optional. Evolution settings for the experiment. + EvolutionSettings *GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettings `json:"evolutionSettings,omitempty"` + // GenerationSettings: Optional. Generation settings for the experiment, + // controlling how new program candidates are generated, including things LLM + // parameters and user-provided context and prompts. + GenerationSettings *GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettings `json:"generationSettings,omitempty"` + // ProblemDescription: Required. Description of the problem to be solved by the + // experiment. + ProblemDescription string `json:"problemDescription,omitempty"` + // ProgramLanguage: Required. Primary programming language of the code being + // optimized. + ProgramLanguage string `json:"programLanguage,omitempty"` + // RunSettings: Required. Run settings for the experiment, controlling the + // overall behavior of the experiment run. + RunSettings *GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigRunSettings `json:"runSettings,omitempty"` + // Title: Required. Title of the experiment. + Title string `json:"title,omitempty"` + // ForceSendFields is a list of field names (e.g. "EvolutionSettings") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EvolutionSettings") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettings +// : Evolution settings for the experiment. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettings struct { + // ParentSamplingConfig: Optional. Parent sampling configuration. + ParentSamplingConfig *GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettingsParentSamplingConfig `json:"parentSamplingConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "ParentSamplingConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ParentSamplingConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettings) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettings + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettings +// ParentSamplingConfig: Configuration for parent sampling. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettingsParentSamplingConfig struct { + // ParetoSamplingConfig: Optional. Pareto sampling configuration. + ParetoSamplingConfig *GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettingsParentSamplingConfigParetoSamplingConfig `json:"paretoSamplingConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "ParetoSamplingConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ParetoSamplingConfig") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettingsParentSamplingConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettingsParentSamplingConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettings +// ParentSamplingConfigParetoSamplingConfig: Configuration for Pareto sampling. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettingsParentSamplingConfigParetoSamplingConfig struct { + // ParetoSamplingProbability: Optional. Probability [0.0, 1.0] of sampling + // parent programs from the Pareto frontier instead of normal fitness-based + // sampling during candidate generation. Useful when optimizing multiple + // metrics simultaneously. Default 0.0 (disabled). Only effective when + // evaluation returns multiple metrics in scores_to_optimize. + ParetoSamplingProbability float64 `json:"paretoSamplingProbability,omitempty"` + // ForceSendFields is a list of field names (e.g. "ParetoSamplingProbability") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ParetoSamplingProbability") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettingsParentSamplingConfigParetoSamplingConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettingsParentSamplingConfigParetoSamplingConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettingsParentSamplingConfigParetoSamplingConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigEvolutionSettingsParentSamplingConfigParetoSamplingConfig + var s1 struct { + ParetoSamplingProbability gensupport.JSONFloat64 `json:"paretoSamplingProbability"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ParetoSamplingProbability = float64(s1.ParetoSamplingProbability) + return nil +} + +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSetting +// s: Generation settings for the experiment. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettings struct { + // Context: Optional. Additional user-provided context to be used during + // generation. + Context string `json:"context,omitempty"` + // IncludeFullProgramInPrompt: Optional. When true, the LLM prompt includes the + // full program text (both mutable EVOLVE-BLOCK regions and immutable + // boilerplate). When false (default), only the mutable EVOLVE-BLOCK regions + // are shown, saving context window. + IncludeFullProgramInPrompt bool `json:"includeFullProgramInPrompt,omitempty"` + // Models: Optional. Per-model configuration. See `ModelConfig` for details. If + // left unset, the server selects a default model. + Models []*GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettingsModelConfig `json:"models,omitempty"` + // ForceSendFields is a list of field names (e.g. "Context") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Context") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettings) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettings + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSetting +// sModelConfig: Per-model configuration. Mutually exclusive with +// `model_mixture` and `model`: when `models` is set, both `model_mixture` and +// `model` must be left unset. The same allowed-model list and at-most-2-models +// rule as for `model_mixture` apply. In addition, each entry may specify a +// per-model `temperature` for LLM sampling. Unlike `model_mixture`, weights +// here are *relative*: only their ratios matter (the server normalizes them), +// so callers may use any positive numbers without having to ensure they sum to +// 1.0. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettingsModelConfig struct { + // Name: Required. Model name (e.g. `gemini-2.5-flash`, + // `gemini-3.1-pro-preview`). See `model_mixture` for the list of allowed + // models. + Name string `json:"name,omitempty"` + // Weight: Optional. Relative weight for this model in the mixture. Must be a + // finite, strictly positive value. Weights across all entries are normalized + // server-side, so they need not sum to 1.0. Defaults to 1.0 when unset, which + // is convenient when configuring a single model or an even mixture. Some + // Pro-tier models are capped at most 50% of the total weight; requests + // violating that cap are rejected with INVALID_ARGUMENT. + Weight float64 `json:"weight,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettingsModelConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettingsModelConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettingsModelConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigGenerationSettingsModelConfig + var s1 struct { + Weight gensupport.JSONFloat64 `json:"weight"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Weight = float64(s1.Weight) + return nil +} + +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigRunSettings: Run +// settings for the experiment. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigRunSettings struct { + // Concurrency: Required. Maximum number of programs that can be generated in + // parallel. Must be positive. + Concurrency int64 `json:"concurrency,omitempty"` + // MaxDuration: Optional. Maximum duration of the experiment. If unset, + // defaults to 24 hours. + MaxDuration string `json:"maxDuration,omitempty"` + // MaxPrograms: Required. Maximum number of programs to generate during the + // experiment run. The initial program counts towards this limit. Must be + // greater than 1. + MaxPrograms int64 `json:"maxPrograms,omitempty"` + // ForceSendFields is a list of field names (e.g. "Concurrency") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Concurrency") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigRunSettings) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentConfigRunSettings + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentStats: Stats about the +// experiment. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentStats struct { + // CandidatesCount: Output only. Number of candidates generated. + CandidatesCount int64 `json:"candidatesCount,omitempty"` + // EvaluatedCandidatesCount: Output only. Number of candidates evaluated. + EvaluatedCandidatesCount int64 `json:"evaluatedCandidatesCount,omitempty"` + // InputTokenCount: Output only. Number of billed input tokens consumed by the + // experiment. + InputTokenCount int64 `json:"inputTokenCount,omitempty,string"` + // OutputTokenCount: Output only. Number of billed output tokens consumed by + // the experiment. + OutputTokenCount int64 `json:"outputTokenCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "CandidatesCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CandidatesCount") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveExperimentStats + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgram: Represents a single +// program to be used within the context of an AlphaEvolve experiment. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgram struct { + // Content: Optional. Content of the program. + Content *GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgramContent `json:"content,omitempty"` + // CreateTime: Output only. Time when the program was created. + CreateTime string `json:"createTime,omitempty"` + // Evaluation: Optional. Evaluation results for the program. + Evaluation *GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgramEvaluation `json:"evaluation,omitempty"` + // LockToken: Optional. Lock token for the program. + LockToken string `json:"lockToken,omitempty"` + // Name: Identifier. Unique identifier for the program. Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{en + // gine}/sessions/{session}/alphaEvolveExperiments/{alpha_evolve_experiment}/alp + // haEvolvePrograms/{alpha_evolve_program}` + Name string `json:"name,omitempty"` + // ParentPrograms: Output only. Optionally specifies which parent programs this + // program was evolved from. Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{en + // gine}/sessions/{session}/alphaEvolveExperiments/{alpha_evolve_experiment}/alp + // haEvolvePrograms/{alpha_evolve_program}` + ParentPrograms []string `json:"parentPrograms,omitempty"` + // State: Output only. State of the program. + // + // Possible values: + // "PROGRAM_STATE_UNSPECIFIED" - Default value. This value is unused. + // "INITIALIZED" - The program is initialized. + // "GENERATING" - The program is in generation. + // "EVALUATING" - The program is pending evaluation. + // "COMPLETED" - The program is completed. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgram) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgram + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgramContent: A self-contained +// message containing the content of a program. Can represent a collection of +// files. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgramContent struct { + // Description: Optional. Description of the program. + Description string `json:"description,omitempty"` + // Files: Required. A list of source files that make up the overall program. + Files []*GoogleCloudDiscoveryengineV1alphaAlphaEvolveSourceFile `json:"files,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgramContent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgramContent + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgramEvaluation: Evaluation +// results for a program candidate. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgramEvaluation struct { + // Insights: Optional. Represents various insights about the candidate, which + // are not directly used as optimization target, but that can be used to + // improve subsequent generations, and as such can be used to construct the + // evolution prompt. + Insights *GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationInsights `json:"insights,omitempty"` + // Scores: Optional. Contains the evaluation scores for the target metrics to + // optimize. + Scores *GoogleCloudDiscoveryengineV1alphaAlphaEvolveEvaluationScores `json:"scores,omitempty"` + // ForceSendFields is a list of field names (e.g. "Insights") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Insights") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgramEvaluation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveProgramEvaluation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaAlphaEvolveSourceFile: A single source file +// with its path, content and metadata. +type GoogleCloudDiscoveryengineV1alphaAlphaEvolveSourceFile struct { + // Content: Required. The raw content of the file. This is a string and not + // bytes, because it should be ultimately processed by the LLM as text. + Content string `json:"content,omitempty"` + // Description: Optional. Additional description of the file. + Description string `json:"description,omitempty"` + // Path: Required. The relative path of the file, including the filename. e.g., + // "src/main.py", "utils/helpers.js", "README.md" + Path string `json:"path,omitempty"` + // ProgramLanguage: Optional. The programming language of the file. + ProgramLanguage string `json:"programLanguage,omitempty"` + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaAlphaEvolveSourceFile) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaAlphaEvolveSourceFile + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaAnswer: Defines an answer. type GoogleCloudDiscoveryengineV1alphaAnswer struct { // AnswerSkippedReasons: Additional answer-skipped reasons. This provides the @@ -10678,6 +11248,12 @@ type GoogleCloudDiscoveryengineV1alphaDataConnector struct { // minutes are not specified, we will assume a sync time of 0:00. The user must // provide a time zone to avoid ambiguity. NextSyncTime *GoogleTypeDateTime `json:"nextSyncTime,omitempty"` + // OauthStaticIpAddresses: Output only. The static IP addresses used by this + // connector for OAuth APIs (e.g. end user authentication). These are surfaced + // separately from `static_ip_addresses` so that customers can apply granular + // firewall settings for OAuth endpoints. Only populated for connectors that + // have static IP enabled and are used for actions and/or federated search. + OauthStaticIpAddresses []string `json:"oauthStaticIpAddresses,omitempty"` // Params: Required data connector parameters in structured json format. Params googleapi.RawMessage `json:"params,omitempty"` // PrivateConnectivityProjectId: Output only. The tenant project ID associated @@ -11740,6 +12316,9 @@ type GoogleCloudDiscoveryengineV1alphaDeleteUserStoreMetadata struct { // SuccessCount: The number of end users under the user store that were // successfully deleted. SuccessCount int64 `json:"successCount,omitempty,string"` + // UpdateTime: Operation last update time. If the operation is done, this is + // also the finish time. + UpdateTime string `json:"updateTime,omitempty"` // ForceSendFields is a list of field names (e.g. "FailureCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -12125,9 +12704,9 @@ type GoogleCloudDiscoveryengineV1alphaEngine struct { // "APP_TYPE_UNSPECIFIED" - All non specified apps. // "APP_TYPE_INTRANET" - App type for intranet search and Agentspace. AppType string `json:"appType,omitempty"` - // AssociatedAgentRegistry: Optional. The Agent registry containing the agents, - // MCP servers and tools associated with this engine. Field is required if the - // engine has an Agent Gateway setting. + // AssociatedAgentRegistry: Output only. The Agent registry containing the + // agents, MCP servers and tools associated with this engine. Derived + // server-side from the linked Agent Gateway's registry. AssociatedAgentRegistry string `json:"associatedAgentRegistry,omitempty"` // ChatEngineConfig: Configurations for the Chat Engine. Only applicable if // solution_type is SOLUTION_TYPE_CHAT. @@ -12178,9 +12757,9 @@ type GoogleCloudDiscoveryengineV1alphaEngine struct { // `disable-video-generation` * `disable-onedrive-upload` * // `disable-talk-to-content` * `disable-google-drive-upload` * // `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * - // `disable-skills` * `enable-end-user-sharing-with-groups` * - // `single-agent-orchestration` * `multi-agent-orchestration` * - // `cross-product-intelligence` * `deep-research` + // `disable-skills` * `disable-projects` * + // `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * + // `multi-agent-orchestration` * `cross-product-intelligence` * `deep-research` Features map[string]string `json:"features,omitempty"` // IndustryVertical: Optional. The industry vertical that the engine registers. // The restriction of the Engine industry vertical is based on DataStore: @@ -12722,9 +13301,10 @@ func (s GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata) MarshalJS // for a Search Engine. type GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig struct { // RequiredSubscriptionTier: Optional. The required subscription tier of this - // engine. They cannot be modified after engine creation. If the required - // subscription tier is search, user with higher license tier like assist can - // still access the standalone app associated with this engine. + // engine. If the required subscription tier is search, user with higher + // license tier like assist can still access the standalone app associated with + // this engine. Web grounding feature is only available on the app if it is set + // as SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT. // // Possible values: // "SUBSCRIPTION_TIER_UNSPECIFIED" - Default value. @@ -15310,6 +15890,31 @@ func (s GoogleCloudDiscoveryengineV1alphaReplacePatientFilterRequest) MarshalJSO return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaResumeExperimentMetadata: Metadata for +// AlphaEvolveService.ResumeExperiment long running operation. +type GoogleCloudDiscoveryengineV1alphaResumeExperimentMetadata struct { + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // UpdateTime: Output only. The time the operation was last updated. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaResumeExperimentMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaResumeExperimentMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaSafetyRating: Safety rating corresponding // to the generated content. type GoogleCloudDiscoveryengineV1alphaSafetyRating struct { @@ -17340,6 +17945,56 @@ func (s GoogleCloudDiscoveryengineV1alphaSitemap) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaStartExperimentMetadata: Metadata for +// AlphaEvolveService.StartExperiment long running operation. +type GoogleCloudDiscoveryengineV1alphaStartExperimentMetadata struct { + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` + // UpdateTime: Output only. The time the operation was last updated. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaStartExperimentMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaStartExperimentMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDiscoveryengineV1alphaStartExperimentRequest: Request message for +// AlphaEvolveService.StartExperiment. +type GoogleCloudDiscoveryengineV1alphaStartExperimentRequest struct { + // Name: Required. Experiment to start. Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{en + // gine}/sessions/{session}/alphaEvolveExperiments/{alpha_evolve_experiment}` + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDiscoveryengineV1alphaStartExperimentRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaStartExperimentRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaTargetSite: A target site for the // SiteSearchEngine. type GoogleCloudDiscoveryengineV1alphaTargetSite struct { @@ -17875,6 +18530,7 @@ type GoogleCloudDiscoveryengineV1alphaWorkspaceConfig struct { // "GOOGLE_GROUPS" - Workspace Data Store contains Groups data // "GOOGLE_KEEP" - Workspace Data Store contains Keep data // "GOOGLE_PEOPLE" - Workspace Data Store contains People data + // "GOOGLE_WORKSPACE" - Workspace Data Store contains all Workspace apps data Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "DasherCustomerId") to // unconditionally include in API requests. By default, fields with empty or @@ -24489,9 +25145,9 @@ type GoogleCloudDiscoveryengineV1betaEngine struct { // "APP_TYPE_UNSPECIFIED" - All non specified apps. // "APP_TYPE_INTRANET" - App type for intranet search and Agentspace. AppType string `json:"appType,omitempty"` - // AssociatedAgentRegistry: Optional. The Agent registry containing the agents, - // MCP servers and tools associated with this engine. Field is required if the - // engine has an Agent Gateway setting. + // AssociatedAgentRegistry: Output only. The Agent registry containing the + // agents, MCP servers and tools associated with this engine. Derived + // server-side from the linked Agent Gateway's registry. AssociatedAgentRegistry string `json:"associatedAgentRegistry,omitempty"` // ChatEngineConfig: Configurations for the Chat Engine. Only applicable if // solution_type is SOLUTION_TYPE_CHAT. @@ -24542,9 +25198,9 @@ type GoogleCloudDiscoveryengineV1betaEngine struct { // `disable-video-generation` * `disable-onedrive-upload` * // `disable-talk-to-content` * `disable-google-drive-upload` * // `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * - // `disable-skills` * `enable-end-user-sharing-with-groups` * - // `single-agent-orchestration` * `multi-agent-orchestration` * - // `cross-product-intelligence` * `deep-research` + // `disable-skills` * `disable-projects` * + // `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * + // `multi-agent-orchestration` * `cross-product-intelligence` * `deep-research` Features map[string]string `json:"features,omitempty"` // IndustryVertical: Optional. The industry vertical that the engine registers. // The restriction of the Engine industry vertical is based on DataStore: @@ -25024,9 +25680,10 @@ func (s GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRec // a Search Engine. type GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig struct { // RequiredSubscriptionTier: Optional. The required subscription tier of this - // engine. They cannot be modified after engine creation. If the required - // subscription tier is search, user with higher license tier like assist can - // still access the standalone app associated with this engine. + // engine. If the required subscription tier is search, user with higher + // license tier like assist can still access the standalone app associated with + // this engine. Web grounding feature is only available on the app if it is set + // as SubscriptionTier.SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT. // // Possible values: // "SUBSCRIPTION_TIER_UNSPECIFIED" - Default value. @@ -33796,6 +34453,7 @@ type GoogleCloudDiscoveryengineV1betaWorkspaceConfig struct { // "GOOGLE_GROUPS" - Workspace Data Store contains Groups data // "GOOGLE_KEEP" - Workspace Data Store contains Keep data // "GOOGLE_PEOPLE" - Workspace Data Store contains People data + // "GOOGLE_WORKSPACE" - Workspace Data Store contains all Workspace apps data Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "DasherCustomerId") to // unconditionally include in API requests. By default, fields with empty or diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index 24857f01323..9ed47a1d06f 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -7823,7 +7823,7 @@ } } }, - "revision": "20260617", + "revision": "20260630", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -10607,7 +10607,7 @@ "type": "string" }, "primaryAttributionModelId": { - "description": "Optional. The attribution model to use for conversion measurement. This attribution model will determine how conversions are counted. The Primary model can be set by you for a floodlight config or group. More details [here](https://support.google.com/displayvideo/answer/7409983). Only applicable to Demand Gen line items. Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*.", + "description": "Optional. The attribution model to use for conversion measurement. This attribution model will determine how conversions are counted. The Primary model can be set by you for a floodlight config or group. More details [here](https://support.google.com/displayvideo/answer/7409983). Only applicable to Demand Gen line items.", "format": "int64", "type": "string" } @@ -15063,7 +15063,7 @@ }, "demandGenSettings": { "$ref": "DemandGenSettings", - "description": "Optional. Settings specific to Demand Gen line items. Only applicable to Demand Gen line items. Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "description": "Optional. Settings specific to Demand Gen line items. Only applicable to Demand Gen line items." }, "displayName": { "description": "Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes.", @@ -15166,7 +15166,7 @@ "YouTube video ads that aim to get more views with a variety of ad formats. Line items of this type and their targeting cannot be created or updated using the API.", "Display ads served on digital-out-of-home inventory. Line items of this type and their targeting cannot be created or updated using the API.", "Video ads served on digital-out-of-home inventory. Line items of this type and their targeting cannot be created or updated using the API.", - "Demand Gen ads. Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "Demand Gen ads." ], "type": "string" }, @@ -17985,7 +17985,7 @@ "id": "TargetingExpansionConfig", "properties": { "excludeDemographicExpansion": { - "description": "Optional. Whether to exclude demographic expansion for Optimized Targeting. This field can only be set for Demand Gen ad groups. Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*.", + "description": "Optional. Whether to exclude demographic expansion for Optimized Targeting. This field can only be set for Demand Gen ad groups.", "type": "boolean" }, "excludeFirstPartyAudience": { @@ -18290,7 +18290,7 @@ "id": "ThirdPartyMeasurementConfigs", "properties": { "brandLiftVendorConfigs": { - "description": "Optional. The third-party vendors measuring brand lift. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR` * `THIRD_PARTY_VENDOR_INTAGE` * `THIRD_PARTY_VENDOR_NIELSEN` * `THIRD_PARTY_VENDOR_MACROMILL`", + "description": "Optional. The third-party vendors measuring brand lift. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR` * `THIRD_PARTY_VENDOR_INTAGE` * `THIRD_PARTY_VENDOR_NIELSEN` * `THIRD_PARTY_VENDOR_MACROMILL` *Warning*: Starting **July 13, 2026**, this field will no longer support `THIRD_PARTY_VENDOR_NIELSEN`.", "items": { "$ref": "ThirdPartyVendorConfig" }, diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index e0b7ac7255d..f70d67b3c63 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -4330,9 +4330,7 @@ type ConversionCountingConfig struct { // conversions are counted. The Primary model can be set by you for a // floodlight config or group. More details here // (https://support.google.com/displayvideo/answer/7409983). Only applicable to - // Demand Gen line items. Retrieval and management of Demand Gen resources is - // currently rolling out. This field will be available to all partners by *June - // 24, 2026*. + // Demand Gen line items. PrimaryAttributionModelId int64 `json:"primaryAttributionModelId,omitempty,string"` // ForceSendFields is a list of field names (e.g. "FloodlightActivityConfigs") // to unconditionally include in API requests. By default, fields with empty or @@ -8708,9 +8706,7 @@ type LineItem struct { // CreativeIds: The IDs of the creatives associated with the line item. CreativeIds googleapi.Int64s `json:"creativeIds,omitempty"` // DemandGenSettings: Optional. Settings specific to Demand Gen line items. - // Only applicable to Demand Gen line items. Retrieval and management of Demand - // Gen resources is currently rolling out. This field will be available to all - // partners by *June 24, 2026*. + // Only applicable to Demand Gen line items. DemandGenSettings *DemandGenSettings `json:"demandGenSettings,omitempty"` // DisplayName: Required. The display name of the line item. Must be UTF-8 // encoded with a maximum size of 240 bytes. @@ -8826,9 +8822,7 @@ type LineItem struct { // "LINE_ITEM_TYPE_VIDEO_OUT_OF_HOME" - Video ads served on // digital-out-of-home inventory. Line items of this type and their targeting // cannot be created or updated using the API. - // "LINE_ITEM_TYPE_DEMAND_GEN" - Demand Gen ads. Retrieval and management of - // Demand Gen resources is currently rolling out. This field will be available - // to all partners by *June 24, 2026*. + // "LINE_ITEM_TYPE_DEMAND_GEN" - Demand Gen ads. LineItemType string `json:"lineItemType,omitempty"` // MobileApp: The mobile app promoted by the line item. This is applicable only // when line_item_type is either `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or @@ -12622,9 +12616,7 @@ func (s TargetFrequency) MarshalJSON() ([]byte, error) { type TargetingExpansionConfig struct { // ExcludeDemographicExpansion: Optional. Whether to exclude demographic // expansion for Optimized Targeting. This field can only be set for Demand Gen - // ad groups. Retrieval and management of Demand Gen resources is currently - // rolling out. This field will be available to all partners by *June 24, - // 2026*. + // ad groups. ExcludeDemographicExpansion bool `json:"excludeDemographicExpansion,omitempty"` // ExcludeFirstPartyAudience: Whether to exclude first-party audiences from use // in targeting expansion. This field was deprecated with the launch of @@ -12887,7 +12879,8 @@ type ThirdPartyMeasurementConfigs struct { // lift. The following third-party vendors are applicable: * // `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR` * // `THIRD_PARTY_VENDOR_INTAGE` * `THIRD_PARTY_VENDOR_NIELSEN` * - // `THIRD_PARTY_VENDOR_MACROMILL` + // `THIRD_PARTY_VENDOR_MACROMILL` *Warning*: Starting **July 13, 2026**, this + // field will no longer support `THIRD_PARTY_VENDOR_NIELSEN`. BrandLiftVendorConfigs []*ThirdPartyVendorConfig `json:"brandLiftVendorConfigs,omitempty"` // BrandSafetyVendorConfigs: Optional. The third-party vendors measuring brand // safety. The following third-party vendors are applicable: * diff --git a/displayvideo/v3/displayvideo-api.json b/displayvideo/v3/displayvideo-api.json index 81acfc7e2f5..019376accb1 100644 --- a/displayvideo/v3/displayvideo-api.json +++ b/displayvideo/v3/displayvideo-api.json @@ -377,7 +377,7 @@ "adGroupAds": { "methods": { "create": { - "description": "Creates an ad group ad. This method is only supported for Demand Gen ads. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Creates an ad group ad. This method is only supported for Demand Gen ads.", "flatPath": "v3/advertisers/{advertisersId}/adGroupAds", "httpMethod": "POST", "id": "displayvideo.advertisers.adGroupAds.create", @@ -406,7 +406,7 @@ ] }, "delete": { - "description": "Deletes an ad group ad. This method is only supported for Demand Gen ads. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Deletes an ad group ad. This method is only supported for Demand Gen ads.", "flatPath": "v3/advertisers/{advertisersId}/adGroupAds/{adGroupAdsId}", "httpMethod": "DELETE", "id": "displayvideo.advertisers.adGroupAds.delete", @@ -523,7 +523,7 @@ ] }, "patch": { - "description": "Updates an ad group ad. This method is only supported for Demand Gen ads. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Updates an ad group ad. This method is only supported for Demand Gen ads.", "flatPath": "v3/advertisers/{advertisersId}/adGroupAds/{adGroupAdsId}", "httpMethod": "PATCH", "id": "displayvideo.advertisers.adGroupAds.patch", @@ -571,7 +571,7 @@ "adGroups": { "methods": { "bulkEditAssignedTargetingOptions": { - "description": "Bulk edits targeting options for multiple ad groups. The same set of delete and create requests will be applied to all specified ad groups. Specifically, the operation will delete the assigned targeting options provided in BulkEditAdGroupAssignedTargetingOptionsRequest.delete_requests from each ad group, and then create the assigned targeting options provided in BulkEditAdGroupAssignedTargetingOptionsRequest.create_requests. This method is only supported for Demand Gen ad groups. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Bulk edits targeting options for multiple ad groups. The same set of delete and create requests will be applied to all specified ad groups. Specifically, the operation will delete the assigned targeting options provided in BulkEditAdGroupAssignedTargetingOptionsRequest.delete_requests from each ad group, and then create the assigned targeting options provided in BulkEditAdGroupAssignedTargetingOptionsRequest.create_requests. This method is only supported for Demand Gen ad groups.", "flatPath": "v3/advertisers/{advertisersId}/adGroups:bulkEditAssignedTargetingOptions", "httpMethod": "POST", "id": "displayvideo.advertisers.adGroups.bulkEditAssignedTargetingOptions", @@ -654,7 +654,7 @@ ] }, "create": { - "description": "Creates a new ad group. Returns the newly created ad group if successful. This method is only supported for Demand Gen ad groups. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Creates a new ad group. Returns the newly created ad group if successful. This method is only supported for Demand Gen ad groups.", "flatPath": "v3/advertisers/{advertisersId}/adGroups", "httpMethod": "POST", "id": "displayvideo.advertisers.adGroups.create", @@ -683,7 +683,7 @@ ] }, "delete": { - "description": "Deletes a AdGroup. Returns error code `NOT_FOUND` if the ad group does not exist. This method is only supported for Demand Gen ad groups. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Deletes a AdGroup. Returns error code `NOT_FOUND` if the ad group does not exist. This method is only supported for Demand Gen ad groups.", "flatPath": "v3/advertisers/{advertisersId}/adGroups/{adGroupsId}", "httpMethod": "DELETE", "id": "displayvideo.advertisers.adGroups.delete", @@ -800,7 +800,7 @@ ] }, "patch": { - "description": "Updates an existing ad group. Returns the updated ad group if successful. This method is only supported for Demand Gen ad groups. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Updates an existing ad group. Returns the updated ad group if successful. This method is only supported for Demand Gen ad groups.", "flatPath": "v3/advertisers/{advertisersId}/adGroups/{adGroupsId}", "httpMethod": "PATCH", "id": "displayvideo.advertisers.adGroups.patch", @@ -850,7 +850,7 @@ "assignedTargetingOptions": { "methods": { "create": { - "description": "Assigns a targeting option to an ad group. Returns the assigned targeting option if successful. This method is only supported for Demand Gen ad groups. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Assigns a targeting option to an ad group. Returns the assigned targeting option if successful. This method is only supported for Demand Gen ad groups.", "flatPath": "v3/advertisers/{advertisersId}/adGroups/{adGroupsId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions", "httpMethod": "POST", "id": "displayvideo.advertisers.adGroups.targetingTypes.assignedTargetingOptions.create", @@ -1002,7 +1002,7 @@ ] }, "delete": { - "description": "Deletes an assigned targeting option from an ad group. This method is only supported for Demand Gen ad groups with the AdGroupFormat `AD_GROUP_FORMAT_DEMAND_GEN`. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Deletes an assigned targeting option from an ad group. This method is only supported for Demand Gen ad groups with the AdGroupFormat `AD_GROUP_FORMAT_DEMAND_GEN`.", "flatPath": "v3/advertisers/{advertisersId}/adGroups/{adGroupsId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions/{assignedTargetingOptionsId}", "httpMethod": "DELETE", "id": "displayvideo.advertisers.adGroups.targetingTypes.assignedTargetingOptions.delete", @@ -5647,192 +5647,6 @@ } } }, - "firstAndThirdPartyAudiences": { - "methods": { - "create": { - "description": "Creates a FirstAndThirdPartyAudience. Only supported for the following audience_type: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID`", - "flatPath": "v3/firstAndThirdPartyAudiences", - "httpMethod": "POST", - "id": "displayvideo.firstAndThirdPartyAudiences.create", - "parameterOrder": [], - "parameters": { - "advertiserId": { - "description": "Required. The ID of the advertiser under whom the FirstAndThirdPartyAudience will be created.", - "format": "int64", - "location": "query", - "type": "string" - } - }, - "path": "v3/firstAndThirdPartyAudiences", - "request": { - "$ref": "FirstAndThirdPartyAudience" - }, - "response": { - "$ref": "FirstAndThirdPartyAudience" - }, - "scopes": [ - "https://www.googleapis.com/auth/display-video" - ] - }, - "editCustomerMatchMembers": { - "description": "Updates the member list of a Customer Match audience. Only supported for the following audience_type: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID`", - "flatPath": "v3/firstAndThirdPartyAudiences/{firstAndThirdPartyAudiencesId}:editCustomerMatchMembers", - "httpMethod": "POST", - "id": "displayvideo.firstAndThirdPartyAudiences.editCustomerMatchMembers", - "parameterOrder": [ - "firstAndThirdPartyAudienceId" - ], - "parameters": { - "firstAndThirdPartyAudienceId": { - "description": "Required. The ID of the Customer Match FirstAndThirdPartyAudience whose members will be edited.", - "format": "int64", - "location": "path", - "pattern": "^[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v3/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}:editCustomerMatchMembers", - "request": { - "$ref": "EditCustomerMatchMembersRequest" - }, - "response": { - "$ref": "EditCustomerMatchMembersResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/display-video" - ] - }, - "get": { - "description": "Gets a first and third party audience.", - "flatPath": "v3/firstAndThirdPartyAudiences/{firstAndThirdPartyAudiencesId}", - "httpMethod": "GET", - "id": "displayvideo.firstAndThirdPartyAudiences.get", - "parameterOrder": [ - "firstAndThirdPartyAudienceId" - ], - "parameters": { - "advertiserId": { - "description": "The ID of the advertiser that has access to the fetched first and third party audience.", - "format": "int64", - "location": "query", - "type": "string" - }, - "firstAndThirdPartyAudienceId": { - "description": "Required. The ID of the first and third party audience to fetch.", - "format": "int64", - "location": "path", - "pattern": "^[^/]+$", - "required": true, - "type": "string" - }, - "partnerId": { - "description": "The ID of the partner that has access to the fetched first and third party audience.", - "format": "int64", - "location": "query", - "type": "string" - } - }, - "path": "v3/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}", - "response": { - "$ref": "FirstAndThirdPartyAudience" - }, - "scopes": [ - "https://www.googleapis.com/auth/display-video" - ] - }, - "list": { - "description": "Lists first and third party audiences. The order is defined by the order_by parameter.", - "flatPath": "v3/firstAndThirdPartyAudiences", - "httpMethod": "GET", - "id": "displayvideo.firstAndThirdPartyAudiences.list", - "parameterOrder": [], - "parameters": { - "advertiserId": { - "description": "The ID of the advertiser that has access to the fetched first and third party audiences.", - "format": "int64", - "location": "query", - "type": "string" - }, - "filter": { - "description": "Allows filtering by first and third party audience fields. Supported syntax: * Filter expressions for first and third party audiences can only contain at most one restriction. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `HAS (:)` operator. Supported fields: * `displayName` Examples: * All first and third party audiences for which the display name contains \"Google\": `displayName:\"Google\"`. The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Field by which to sort the list. Acceptable values are: * `firstAndThirdPartyAudienceId` (default) * `displayName` The default sorting order is ascending. To specify descending order for a field, a suffix \"desc\" should be added to the field name. Example: `displayName desc`.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Requested page size. Must be between `1` and `5000`. If unspecified, this value defaults to `5000`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListFirstAndThirdPartyAudiences` method. If not specified, the first page of results will be returned.", - "location": "query", - "type": "string" - }, - "partnerId": { - "description": "The ID of the partner that has access to the fetched first and third party audiences.", - "format": "int64", - "location": "query", - "type": "string" - } - }, - "path": "v3/firstAndThirdPartyAudiences", - "response": { - "$ref": "ListFirstAndThirdPartyAudiencesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/display-video" - ] - }, - "patch": { - "description": "Updates an existing FirstAndThirdPartyAudience. Only supported for the following audience_type: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID`", - "flatPath": "v3/firstAndThirdPartyAudiences/{firstAndThirdPartyAudiencesId}", - "httpMethod": "PATCH", - "id": "displayvideo.firstAndThirdPartyAudiences.patch", - "parameterOrder": [ - "firstAndThirdPartyAudienceId" - ], - "parameters": { - "advertiserId": { - "description": "Required. The ID of the owner advertiser of the updated FirstAndThirdPartyAudience.", - "format": "int64", - "location": "query", - "type": "string" - }, - "firstAndThirdPartyAudienceId": { - "description": "Output only. The unique ID of the first and third party audience. Assigned by the system.", - "format": "int64", - "location": "path", - "pattern": "^[^/]+$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "Required. The mask to control which fields to update. Updates are only supported for the following fields: * `displayName` * `description` * `membershipDurationDays`", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v3/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}", - "request": { - "$ref": "FirstAndThirdPartyAudience" - }, - "response": { - "$ref": "FirstAndThirdPartyAudience" - }, - "scopes": [ - "https://www.googleapis.com/auth/display-video" - ] - } - } - }, "floodlightGroups": { "methods": { "get": { @@ -8546,7 +8360,7 @@ } } }, - "revision": "20260617", + "revision": "20260630", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActiveViewVideoViewabilityMetricConfig": { @@ -8692,7 +8506,7 @@ "Responsive ads.", "[Effective reach ad groups] (https://support.google.com/displayvideo/answer/9173684), including in-stream and bumper ads.", "Masthead Ad that is surfaced on the top slot on the YouTube homepage.", - "Demand Gen ads. Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "Demand Gen ads." ], "type": "string" }, @@ -8807,23 +8621,23 @@ }, "dcmTrackingInfo": { "$ref": "DcmTrackingInfo", - "description": "Optional. The DCM tracking ad info. Only valid for Demand Gen ads. To remove the DCM tracking ad info, please leave this field empty. Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "description": "Optional. The DCM tracking ad info. Only valid for Demand Gen ads. To remove the DCM tracking ad info, please leave this field empty." }, "demandGenCarouselAd": { "$ref": "DemandGenCarouselAd", - "description": "Details of a [Demand Gen carousel ad](//support.google.com/displayvideo/answer/15598924?\u0026sjid=11207068802760924844-NC#CarouselAd). Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "description": "Details of a [Demand Gen carousel ad](//support.google.com/displayvideo/answer/15598924?\u0026sjid=11207068802760924844-NC#CarouselAd)." }, "demandGenImageAd": { "$ref": "DemandGenImageAd", - "description": "Details of a [Demand Gen image ad](//support.google.com/displayvideo/answer/15598924?\u0026sjid=11207068802760924844-NC#ImageAd). Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "description": "Details of a [Demand Gen image ad](//support.google.com/displayvideo/answer/15598924?\u0026sjid=11207068802760924844-NC#ImageAd)." }, "demandGenProductAd": { "$ref": "DemandGenProductAd", - "description": "Details of a [Demand Gen product ad](//support.google.com/displayvideo/answer/15598924?\u0026sjid=11207068802760924844-NC#Product-onlyAd). Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "description": "Details of a [Demand Gen product ad](//support.google.com/displayvideo/answer/15598924?\u0026sjid=11207068802760924844-NC#Product-onlyAd)." }, "demandGenVideoAd": { "$ref": "DemandGenVideoAd", - "description": "Details of a [Demand Gen video ad](//support.google.com/displayvideo/answer/15598924?\u0026sjid=11207068802760924844-NC#VideoAd). Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "description": "Details of a [Demand Gen video ad](//support.google.com/displayvideo/answer/15598924?\u0026sjid=11207068802760924844-NC#VideoAd)." }, "displayName": { "description": "Required. The display name of the ad. Must be UTF-8 encoded with a maximum size of 255 bytes.", @@ -12878,99 +12692,6 @@ }, "type": "object" }, - "Consent": { - "description": "User consent status.", - "id": "Consent", - "properties": { - "adPersonalization": { - "description": "Represents consent for ad personalization.", - "enum": [ - "CONSENT_STATUS_UNSPECIFIED", - "CONSENT_STATUS_GRANTED", - "CONSENT_STATUS_DENIED" - ], - "enumDescriptions": [ - "Type value is not specified or is unknown in this version.", - "Consent is granted.", - "Consent is denied." - ], - "type": "string" - }, - "adUserData": { - "description": "Represents consent for ad user data.", - "enum": [ - "CONSENT_STATUS_UNSPECIFIED", - "CONSENT_STATUS_GRANTED", - "CONSENT_STATUS_DENIED" - ], - "enumDescriptions": [ - "Type value is not specified or is unknown in this version.", - "Consent is granted.", - "Consent is denied." - ], - "type": "string" - } - }, - "type": "object" - }, - "ContactInfo": { - "description": "Contact information defining a Customer Match audience member.", - "id": "ContactInfo", - "properties": { - "countryCode": { - "description": "Country code of the member. Must also be set with the following fields: * hashed_first_name * hashed_last_name * zip_codes", - "type": "string" - }, - "hashedEmails": { - "description": "A list of SHA256 hashed email of the member. Before hashing, remove all whitespace and make sure the string is all lowercase.", - "items": { - "type": "string" - }, - "type": "array" - }, - "hashedFirstName": { - "description": "SHA256 hashed first name of the member. Before hashing, remove all whitespace and make sure the string is all lowercase. Must also be set with the following fields: * country_code * hashed_last_name * zip_codes", - "type": "string" - }, - "hashedLastName": { - "description": "SHA256 hashed last name of the member. Before hashing, remove all whitespace and make sure the string is all lowercase. Must also be set with the following fields: * country_code * hashed_first_name * zip_codes", - "type": "string" - }, - "hashedPhoneNumbers": { - "description": "A list of SHA256 hashed phone numbers of the member. Before hashing, all phone numbers must be formatted using the [E.164 format](//en.wikipedia.org/wiki/E.164) and include the country calling code.", - "items": { - "type": "string" - }, - "type": "array" - }, - "zipCodes": { - "description": "A list of zip codes of the member. Must also be set with the following fields: * country_code * hashed_first_name * hashed_last_name", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "ContactInfoList": { - "description": "Wrapper message for a list of contact information defining Customer Match audience members.", - "id": "ContactInfoList", - "properties": { - "consent": { - "$ref": "Consent", - "description": "Input only. The consent setting for the users in contact_infos. Leaving this field unset indicates that consent is not specified. If ad_user_data or ad_personalization fields are set to `CONSENT_STATUS_DENIED`, the request will return an error." - }, - "contactInfos": { - "description": "A list of ContactInfo objects defining Customer Match audience members. The size of members after splitting the contact_infos mustn't be greater than 500,000.", - "items": { - "$ref": "ContactInfo" - }, - "type": "array" - } - }, - "type": "object" - }, "ContentDurationAssignedTargetingOptionDetails": { "description": "Details for content duration assigned targeting option. This will be populated in the content_duration_details field when targeting_type is `TARGETING_TYPE_CONTENT_DURATION`. Explicitly targeting all options is not supported. Remove all content duration targeting options to achieve this effect.", "id": "ContentDurationAssignedTargetingOptionDetails", @@ -13380,7 +13101,7 @@ "type": "string" }, "primaryAttributionModelId": { - "description": "Optional. The attribution model to use for conversion measurement. This attribution model will determine how conversions are counted. The Primary model can be set by you for a floodlight config or group. More details [here](https://support.google.com/displayvideo/answer/7409983). Only applicable to Demand Gen line items. Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*.", + "description": "Optional. The attribution model to use for conversion measurement. This attribution model will determine how conversions are counted. The Primary model can be set by you for a floodlight config or group. More details [here](https://support.google.com/displayvideo/answer/7409983). Only applicable to Demand Gen line items.", "format": "int64", "type": "string" } @@ -14745,7 +14466,7 @@ "id": "DemandGenCarouselAd", "properties": { "businessName": { - "description": "Required. The business name shown on the ad.", + "description": "Required. The business name shown on the ad. *Warning*: Starting **July 13, 2026**, this setting will no longer be required if a default value is set at the advertiser level. If left unset, the default value will be applied.", "type": "string" }, "cards": { @@ -14780,7 +14501,7 @@ }, "logo": { "$ref": "ImageAsset", - "description": "Required. The logo image used by this ad." + "description": "Required. The logo image used by this ad. *Warning*: Starting **July 13, 2026**, this setting will no longer be required if a default value is set at the advertiser level. If left unset, the default value will be applied." }, "trackingUrl": { "description": "Output only. The URL address loaded in the background for tracking purposes.", @@ -14799,7 +14520,7 @@ "id": "DemandGenImageAd", "properties": { "businessName": { - "description": "Required. The business name shown on the ad.", + "description": "Required. The business name shown on the ad. *Warning*: Starting **July 13, 2026**, this setting will no longer be required if a default value is set at the advertiser level. If left unset, the default value will be applied.", "type": "string" }, "callToAction": { @@ -14840,7 +14561,7 @@ "type": "array" }, "logoImages": { - "description": "The list of logo images shown on the ad.", + "description": "The list of logo images shown on the ad. *Warning*: Starting **July 13, 2026**, this setting will no longer be required if a default value is set at the advertiser level. If left unset, the default value will be applied.", "items": { "$ref": "ImageAsset" }, @@ -14884,7 +14605,7 @@ "id": "DemandGenProductAd", "properties": { "businessName": { - "description": "Required. The business name shown on the ad.", + "description": "Required. The business name shown on the ad. *Warning*: Starting **July 13, 2026**, this setting will no longer be required if a default value is set at the advertiser level. If left unset, the default value will be applied.", "type": "string" }, "callToAction": { @@ -14966,7 +14687,7 @@ }, "logo": { "$ref": "ImageAsset", - "description": "Required. The logo image used by this ad." + "description": "Required. The logo image used by this ad. *Warning*: Starting **July 13, 2026**, this setting will no longer be required if a default value is set at the advertiser level. If left unset, the default value will be applied." }, "trackingUrl": { "description": "Output only. The URL address loaded in the background for tracking purposes.", @@ -15005,7 +14726,7 @@ "id": "DemandGenVideoAd", "properties": { "businessName": { - "description": "Required. The business name shown on the ad.", + "description": "Required. The business name shown on the ad. *Warning*: Starting **July 13, 2026**, this setting will no longer be required if a default value is set at the advertiser level. If left unset, the default value will be applied.", "type": "string" }, "callToAction": { @@ -15101,7 +14822,7 @@ }, "logo": { "$ref": "ImageAsset", - "description": "Required. The logo image used by this ad." + "description": "Required. The logo image used by this ad. *Warning*: Starting **July 13, 2026**, this setting will no longer be required if a default value is set at the advertiser level. If left unset, the default value will be applied." }, "longHeadlines": { "description": "Required. The list of long headlines shown on the ad.", @@ -15692,46 +15413,6 @@ }, "type": "object" }, - "EditCustomerMatchMembersRequest": { - "description": "Request message for FirstAndThirdPartyAudienceService.EditCustomerMatchMembers.", - "id": "EditCustomerMatchMembersRequest", - "properties": { - "addedContactInfoList": { - "$ref": "ContactInfoList", - "description": "Input only. A list of contact information to define the members to be added." - }, - "addedMobileDeviceIdList": { - "$ref": "MobileDeviceIdList", - "description": "Input only. A list of mobile device IDs to define the members to be added." - }, - "advertiserId": { - "description": "Required. The ID of the owner advertiser of the updated Customer Match FirstAndThirdPartyAudience.", - "format": "int64", - "type": "string" - }, - "removedContactInfoList": { - "$ref": "ContactInfoList", - "description": "Input only. A list of contact information to define the members to be removed." - }, - "removedMobileDeviceIdList": { - "$ref": "MobileDeviceIdList", - "description": "Input only. A list of mobile device IDs to define the members to be removed." - } - }, - "type": "object" - }, - "EditCustomerMatchMembersResponse": { - "description": "The response of FirstAndThirdPartyAudienceService.EditCustomerMatchMembers.", - "id": "EditCustomerMatchMembersResponse", - "properties": { - "firstAndThirdPartyAudienceId": { - "description": "Required. The ID of the updated Customer Match FirstAndThirdPartyAudience.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, "EditGuaranteedOrderReadAccessorsRequest": { "description": "Request message for GuaranteedOrderService.EditGuaranteedOrderReadAccessors.", "id": "EditGuaranteedOrderReadAccessorsRequest", @@ -16694,165 +16375,6 @@ }, "type": "object" }, - "FirstAndThirdPartyAudience": { - "description": "Describes a first or third party audience list used for targeting. First party audiences are created via usage of client data. Third party audiences are provided by Third Party data providers and can only be licensed to customers.", - "id": "FirstAndThirdPartyAudience", - "properties": { - "activeDisplayAudienceSize": { - "description": "Output only. The estimated audience size for the Display network in the past month. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only returned in GET request.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "appId": { - "description": "The app_id matches with the type of the mobile_device_ids being uploaded. Only applicable to audience_type `CUSTOMER_MATCH_DEVICE_ID`", - "type": "string" - }, - "audienceSource": { - "description": "Output only. The source of the audience.", - "enum": [ - "AUDIENCE_SOURCE_UNSPECIFIED", - "DISPLAY_VIDEO_360", - "CAMPAIGN_MANAGER", - "AD_MANAGER", - "SEARCH_ADS_360", - "YOUTUBE", - "ADS_DATA_HUB" - ], - "enumDescriptions": [ - "Default value when audience source is not specified or is unknown.", - "Originated from Display \u0026 Video 360.", - "Originated from Campaign Manager 360.", - "Originated from Google Ad Manager.", - "Originated from Search Ads 360.", - "Originated from Youtube.", - "Originated from Ads Data Hub." - ], - "readOnly": true, - "type": "string" - }, - "audienceType": { - "description": "The type of the audience.", - "enum": [ - "AUDIENCE_TYPE_UNSPECIFIED", - "CUSTOMER_MATCH_CONTACT_INFO", - "CUSTOMER_MATCH_DEVICE_ID", - "CUSTOMER_MATCH_USER_ID", - "ACTIVITY_BASED", - "FREQUENCY_CAP", - "TAG_BASED", - "YOUTUBE_USERS", - "LICENSED" - ], - "enumDeprecated": [ - false, - false, - false, - false, - true, - true, - false, - false, - false - ], - "enumDescriptions": [ - "Default value when type is not specified or is unknown.", - "Audience was generated through matching customers to known contact information.", - "Audience was generated through matching customers to known Mobile device IDs.", - "Audience was generated through matching customers to known User IDs.", - "Audience was created based on campaign activity.", - "Audience was created based on excluding the number of impressions they were served.", - "Audience was created based on custom variables attached to pixel.", - "Audience was created based on past interactions with videos, YouTube ads, or YouTube channel.", - "Subtype of third party audience type." - ], - "type": "string" - }, - "contactInfoList": { - "$ref": "ContactInfoList", - "description": "Input only. A list of contact information to define the initial audience members. Only applicable to audience_type `CUSTOMER_MATCH_CONTACT_INFO`" - }, - "description": { - "description": "The user-provided description of the audience. Only applicable to first party audiences.", - "type": "string" - }, - "displayAudienceSize": { - "description": "Output only. The estimated audience size for the Display network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only returned in GET request.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "displayDesktopAudienceSize": { - "description": "Output only. The estimated desktop audience size in Display network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only applicable to first party audiences. Only returned in GET request.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "displayMobileAppAudienceSize": { - "description": "Output only. The estimated mobile app audience size in Display network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only applicable to first party audiences. Only returned in GET request.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "displayMobileWebAudienceSize": { - "description": "Output only. The estimated mobile web audience size in Display network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only applicable to first party audiences. Only returned in GET request.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "displayName": { - "description": "The display name of the first and third party audience.", - "type": "string" - }, - "firstAndThirdPartyAudienceId": { - "description": "Output only. The unique ID of the first and third party audience. Assigned by the system.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "firstAndThirdPartyAudienceType": { - "description": "Whether the audience is a first or third party audience.", - "enum": [ - "FIRST_AND_THIRD_PARTY_AUDIENCE_TYPE_UNSPECIFIED", - "FIRST_AND_THIRD_PARTY_AUDIENCE_TYPE_FIRST_PARTY", - "FIRST_AND_THIRD_PARTY_AUDIENCE_TYPE_THIRD_PARTY" - ], - "enumDescriptions": [ - "Default value when type is not specified or is unknown.", - "Audience that is created via usage of client data.", - "Audience that is provided by Third Party data providers." - ], - "type": "string" - }, - "gmailAudienceSize": { - "description": "Output only. The estimated audience size for Gmail network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only applicable to first party audiences. Only returned in GET request.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "membershipDurationDays": { - "description": "The duration in days that an entry remains in the audience after the qualifying event. The set value must be greater than 0 and less than or equal to 540. Only applicable to first party audiences. This field is required if one of the following audience_type is used: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID`", - "format": "int64", - "type": "string" - }, - "mobileDeviceIdList": { - "$ref": "MobileDeviceIdList", - "description": "Input only. A list of mobile device IDs to define the initial audience members. Only applicable to audience_type `CUSTOMER_MATCH_DEVICE_ID`" - }, - "name": { - "description": "Output only. The resource name of the first and third party audience.", - "readOnly": true, - "type": "string" - }, - "youtubeAudienceSize": { - "description": "Output only. The estimated audience size for YouTube network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only applicable to first party audiences. Only returned in GET request.", - "format": "int64", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, "FirstAndThirdPartyAudienceGroup": { "description": "Details of first and third party audience group. All first and third party audience targeting settings are logically ‘OR’ of each other.", "id": "FirstAndThirdPartyAudienceGroup", @@ -18774,7 +18296,7 @@ }, "demandGenSettings": { "$ref": "DemandGenSettings", - "description": "Optional. Settings specific to Demand Gen line items. Only applicable to Demand Gen line items. Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "description": "Optional. Settings specific to Demand Gen line items. Only applicable to Demand Gen line items." }, "displayName": { "description": "Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes.", @@ -18877,7 +18399,7 @@ "YouTube video ads that aim to get more views with a variety of ad formats. Line items of this type and their targeting cannot be created or updated using the API.", "Display ads served on digital-out-of-home inventory. Line items of this type and their targeting cannot be created or updated using the API.", "Video ads served on digital-out-of-home inventory. Line items of this type and their targeting cannot be created or updated using the API.", - "Demand Gen ads. Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "Demand Gen ads." ], "type": "string" }, @@ -19325,23 +18847,6 @@ }, "type": "object" }, - "ListFirstAndThirdPartyAudiencesResponse": { - "id": "ListFirstAndThirdPartyAudiencesResponse", - "properties": { - "firstAndThirdPartyAudiences": { - "description": "The list of first and third party audiences. Audience size properties will not be included. This list will be absent if empty.", - "items": { - "$ref": "FirstAndThirdPartyAudience" - }, - "type": "array" - }, - "nextPageToken": { - "description": "A token to retrieve the next page of results. Pass this value in the page_token field in the subsequent call to `ListFirstAndThirdPartyAudiences` method to retrieve the next page of results.", - "type": "string" - } - }, - "type": "object" - }, "ListFloodlightActivitiesResponse": { "id": "ListFloodlightActivitiesResponse", "properties": { @@ -19850,24 +19355,6 @@ }, "type": "object" }, - "MobileDeviceIdList": { - "description": "Wrapper message for a list of mobile device IDs defining Customer Match audience members.", - "id": "MobileDeviceIdList", - "properties": { - "consent": { - "$ref": "Consent", - "description": "Input only. The consent setting for the users in mobile_device_ids. Leaving this field unset indicates that consent is not specified. If ad_user_data or ad_personalization fields are set to `CONSENT_STATUS_DENIED`, the request will return an error." - }, - "mobileDeviceIds": { - "description": "A list of mobile device IDs defining Customer Match audience members. The size of mobile_device_ids mustn't be greater than 500,000.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "NativeContentPositionAssignedTargetingOptionDetails": { "description": "Details for native content position assigned targeting option. This will be populated in the native_content_position_details field when targeting_type is `TARGETING_TYPE_NATIVE_CONTENT_POSITION`. Explicitly targeting all options is not supported. Remove all native content position targeting options to achieve this effect.", "id": "NativeContentPositionAssignedTargetingOptionDetails", @@ -21790,7 +21277,7 @@ "type": "boolean" }, "excludeDemographicExpansion": { - "description": "Optional. Whether to exclude demographic expansion for Optimized Targeting. This field can only be set for Demand Gen ad groups. Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*.", + "description": "Optional. Whether to exclude demographic expansion for Optimized Targeting. This field can only be set for Demand Gen ad groups.", "type": "boolean" } }, @@ -22065,7 +21552,7 @@ "id": "ThirdPartyMeasurementConfigs", "properties": { "brandLiftVendorConfigs": { - "description": "Optional. The third-party vendors measuring brand lift. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR` * `THIRD_PARTY_VENDOR_INTAGE` * `THIRD_PARTY_VENDOR_NIELSEN` * `THIRD_PARTY_VENDOR_MACROMILL`", + "description": "Optional. The third-party vendors measuring brand lift. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR` * `THIRD_PARTY_VENDOR_INTAGE` * `THIRD_PARTY_VENDOR_NIELSEN` * `THIRD_PARTY_VENDOR_MACROMILL` *Warning*: Starting **July 13, 2026**, this field will no longer support `THIRD_PARTY_VENDOR_NIELSEN`.", "items": { "$ref": "ThirdPartyVendorConfig" }, diff --git a/displayvideo/v3/displayvideo-gen.go b/displayvideo/v3/displayvideo-gen.go index 2b5f63802d8..4e524a3be61 100644 --- a/displayvideo/v3/displayvideo-gen.go +++ b/displayvideo/v3/displayvideo-gen.go @@ -142,7 +142,6 @@ func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, err s.CombinedAudiences = NewCombinedAudiencesService(s) s.CustomBiddingAlgorithms = NewCustomBiddingAlgorithmsService(s) s.CustomLists = NewCustomListsService(s) - s.FirstAndThirdPartyAudiences = NewFirstAndThirdPartyAudiencesService(s) s.FloodlightGroups = NewFloodlightGroupsService(s) s.GoogleAudiences = NewGoogleAudiencesService(s) s.GuaranteedOrders = NewGuaranteedOrdersService(s) @@ -184,8 +183,6 @@ type Service struct { CustomLists *CustomListsService - FirstAndThirdPartyAudiences *FirstAndThirdPartyAudiencesService - FloodlightGroups *FloodlightGroupsService GoogleAudiences *GoogleAudiencesService @@ -512,15 +509,6 @@ type CustomListsService struct { s *Service } -func NewFirstAndThirdPartyAudiencesService(s *Service) *FirstAndThirdPartyAudiencesService { - rs := &FirstAndThirdPartyAudiencesService{s: s} - return rs -} - -type FirstAndThirdPartyAudiencesService struct { - s *Service -} - func NewFloodlightGroupsService(s *Service) *FloodlightGroupsService { rs := &FloodlightGroupsService{s: s} rs.FloodlightActivities = NewFloodlightGroupsFloodlightActivitiesService(s) @@ -804,9 +792,7 @@ type AdGroup struct { // in-stream and bumper ads. // "AD_GROUP_FORMAT_MASTHEAD" - Masthead Ad that is surfaced on the top slot // on the YouTube homepage. - // "AD_GROUP_FORMAT_DEMAND_GEN" - Demand Gen ads. Retrieval and management of - // Demand Gen resources is currently rolling out. This field will be available - // to all partners by *June 24, 2026*. + // "AD_GROUP_FORMAT_DEMAND_GEN" - Demand Gen ads. AdGroupFormat string `json:"adGroupFormat,omitempty"` // AdGroupId: Output only. The unique ID of the ad group. Assigned by the // system. @@ -900,32 +886,22 @@ type AdGroupAd struct { BumperAd *BumperAd `json:"bumperAd,omitempty"` // DcmTrackingInfo: Optional. The DCM tracking ad info. Only valid for Demand // Gen ads. To remove the DCM tracking ad info, please leave this field empty. - // Retrieval and management of Demand Gen resources is currently rolling out. - // This field will be available to all partners by *June 24, 2026*. DcmTrackingInfo *DcmTrackingInfo `json:"dcmTrackingInfo,omitempty"` // DemandGenCarouselAd: Details of a Demand Gen carousel ad // (//support.google.com/displayvideo/answer/15598924?&sjid=11207068802760924844 - // -NC#CarouselAd). Retrieval and management of Demand Gen resources is - // currently rolling out. This field will be available to all partners by *June - // 24, 2026*. + // -NC#CarouselAd). DemandGenCarouselAd *DemandGenCarouselAd `json:"demandGenCarouselAd,omitempty"` // DemandGenImageAd: Details of a Demand Gen image ad // (//support.google.com/displayvideo/answer/15598924?&sjid=11207068802760924844 - // -NC#ImageAd). Retrieval and management of Demand Gen resources is currently - // rolling out. This field will be available to all partners by *June 24, - // 2026*. + // -NC#ImageAd). DemandGenImageAd *DemandGenImageAd `json:"demandGenImageAd,omitempty"` // DemandGenProductAd: Details of a Demand Gen product ad // (//support.google.com/displayvideo/answer/15598924?&sjid=11207068802760924844 - // -NC#Product-onlyAd). Retrieval and management of Demand Gen resources is - // currently rolling out. This field will be available to all partners by *June - // 24, 2026*. + // -NC#Product-onlyAd). DemandGenProductAd *DemandGenProductAd `json:"demandGenProductAd,omitempty"` // DemandGenVideoAd: Details of a Demand Gen video ad // (//support.google.com/displayvideo/answer/15598924?&sjid=11207068802760924844 - // -NC#VideoAd). Retrieval and management of Demand Gen resources is currently - // rolling out. This field will be available to all partners by *June 24, - // 2026*. + // -NC#VideoAd). DemandGenVideoAd *DemandGenVideoAd `json:"demandGenVideoAd,omitempty"` // DisplayName: Required. The display name of the ad. Must be UTF-8 encoded // with a maximum size of 255 bytes. @@ -5773,115 +5749,6 @@ func (s CommonInStreamAttribute) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Consent: User consent status. -type Consent struct { - // AdPersonalization: Represents consent for ad personalization. - // - // Possible values: - // "CONSENT_STATUS_UNSPECIFIED" - Type value is not specified or is unknown - // in this version. - // "CONSENT_STATUS_GRANTED" - Consent is granted. - // "CONSENT_STATUS_DENIED" - Consent is denied. - AdPersonalization string `json:"adPersonalization,omitempty"` - // AdUserData: Represents consent for ad user data. - // - // Possible values: - // "CONSENT_STATUS_UNSPECIFIED" - Type value is not specified or is unknown - // in this version. - // "CONSENT_STATUS_GRANTED" - Consent is granted. - // "CONSENT_STATUS_DENIED" - Consent is denied. - AdUserData string `json:"adUserData,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdPersonalization") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdPersonalization") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s Consent) MarshalJSON() ([]byte, error) { - type NoMethod Consent - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// ContactInfo: Contact information defining a Customer Match audience member. -type ContactInfo struct { - // CountryCode: Country code of the member. Must also be set with the following - // fields: * hashed_first_name * hashed_last_name * zip_codes - CountryCode string `json:"countryCode,omitempty"` - // HashedEmails: A list of SHA256 hashed email of the member. Before hashing, - // remove all whitespace and make sure the string is all lowercase. - HashedEmails []string `json:"hashedEmails,omitempty"` - // HashedFirstName: SHA256 hashed first name of the member. Before hashing, - // remove all whitespace and make sure the string is all lowercase. Must also - // be set with the following fields: * country_code * hashed_last_name * - // zip_codes - HashedFirstName string `json:"hashedFirstName,omitempty"` - // HashedLastName: SHA256 hashed last name of the member. Before hashing, - // remove all whitespace and make sure the string is all lowercase. Must also - // be set with the following fields: * country_code * hashed_first_name * - // zip_codes - HashedLastName string `json:"hashedLastName,omitempty"` - // HashedPhoneNumbers: A list of SHA256 hashed phone numbers of the member. - // Before hashing, all phone numbers must be formatted using the E.164 format - // (//en.wikipedia.org/wiki/E.164) and include the country calling code. - HashedPhoneNumbers []string `json:"hashedPhoneNumbers,omitempty"` - // ZipCodes: A list of zip codes of the member. Must also be set with the - // following fields: * country_code * hashed_first_name * hashed_last_name - ZipCodes []string `json:"zipCodes,omitempty"` - // ForceSendFields is a list of field names (e.g. "CountryCode") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CountryCode") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ContactInfo) MarshalJSON() ([]byte, error) { - type NoMethod ContactInfo - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// ContactInfoList: Wrapper message for a list of contact information defining -// Customer Match audience members. -type ContactInfoList struct { - // Consent: Input only. The consent setting for the users in contact_infos. - // Leaving this field unset indicates that consent is not specified. If - // ad_user_data or ad_personalization fields are set to - // `CONSENT_STATUS_DENIED`, the request will return an error. - Consent *Consent `json:"consent,omitempty"` - // ContactInfos: A list of ContactInfo objects defining Customer Match audience - // members. The size of members after splitting the contact_infos mustn't be - // greater than 500,000. - ContactInfos []*ContactInfo `json:"contactInfos,omitempty"` - // ForceSendFields is a list of field names (e.g. "Consent") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Consent") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ContactInfoList) MarshalJSON() ([]byte, error) { - type NoMethod ContactInfoList - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // ContentDurationAssignedTargetingOptionDetails: Details for content duration // assigned targeting option. This will be populated in the // content_duration_details field when targeting_type is @@ -6398,9 +6265,7 @@ type ConversionCountingConfig struct { // conversions are counted. The Primary model can be set by you for a // floodlight config or group. More details here // (https://support.google.com/displayvideo/answer/7409983). Only applicable to - // Demand Gen line items. Retrieval and management of Demand Gen resources is - // currently rolling out. This field will be available to all partners by *June - // 24, 2026*. + // Demand Gen line items. PrimaryAttributionModelId int64 `json:"primaryAttributionModelId,omitempty,string"` // ForceSendFields is a list of field names (e.g. "FloodlightActivityConfigs") // to unconditionally include in API requests. By default, fields with empty or @@ -7917,7 +7782,10 @@ func (s DemandGenBiddingStrategy) MarshalJSON() ([]byte, error) { // DemandGenCarouselAd: Details for a Demand Gen carousel ad. type DemandGenCarouselAd struct { - // BusinessName: Required. The business name shown on the ad. + // BusinessName: Required. The business name shown on the ad. *Warning*: + // Starting **July 13, 2026**, this setting will no longer be required if a + // default value is set at the advertiser level. If left unset, the default + // value will be applied. BusinessName string `json:"businessName,omitempty"` // Cards: Required. The list of cards shown on the ad. Cards []*CarouselCard `json:"cards,omitempty"` @@ -7933,7 +7801,10 @@ type DemandGenCarouselAd struct { FinalUrlSuffix string `json:"finalUrlSuffix,omitempty"` // Headline: Required. The headline of the ad. Headline string `json:"headline,omitempty"` - // Logo: Required. The logo image used by this ad. + // Logo: Required. The logo image used by this ad. *Warning*: Starting **July + // 13, 2026**, this setting will no longer be required if a default value is + // set at the advertiser level. If left unset, the default value will be + // applied. Logo *ImageAsset `json:"logo,omitempty"` // TrackingUrl: Output only. The URL address loaded in the background for // tracking purposes. @@ -7961,7 +7832,10 @@ func (s DemandGenCarouselAd) MarshalJSON() ([]byte, error) { // DemandGenImageAd: Details for a Demand Gen image ad. type DemandGenImageAd struct { - // BusinessName: Required. The business name shown on the ad. + // BusinessName: Required. The business name shown on the ad. *Warning*: + // Starting **July 13, 2026**, this setting will no longer be required if a + // default value is set at the advertiser level. If left unset, the default + // value will be applied. BusinessName string `json:"businessName,omitempty"` // CallToAction: Required. The call-to-action button shown on the ad. CallToAction string `json:"callToAction,omitempty"` @@ -7980,7 +7854,10 @@ type DemandGenImageAd struct { FinalUrlSuffix string `json:"finalUrlSuffix,omitempty"` // Headlines: Required. The list of headlines shown on the ad. Headlines []string `json:"headlines,omitempty"` - // LogoImages: The list of logo images shown on the ad. + // LogoImages: The list of logo images shown on the ad. *Warning*: Starting + // **July 13, 2026**, this setting will no longer be required if a default + // value is set at the advertiser level. If left unset, the default value will + // be applied. LogoImages []*ImageAsset `json:"logoImages,omitempty"` // MarketingImages: The list of marketing images shown on the ad. MarketingImages []*ImageAsset `json:"marketingImages,omitempty"` @@ -8015,7 +7892,10 @@ func (s DemandGenImageAd) MarshalJSON() ([]byte, error) { // DemandGenProductAd: Details for a Demand Gen product ad. type DemandGenProductAd struct { - // BusinessName: Required. The business name shown on the ad. + // BusinessName: Required. The business name shown on the ad. *Warning*: + // Starting **July 13, 2026**, this setting will no longer be required if a + // default value is set at the advertiser level. If left unset, the default + // value will be applied. BusinessName string `json:"businessName,omitempty"` // CallToAction: Required. The call-to-action button shown on the ad. The // supported values are: * `AUTOMATED` * `APPLY_NOW` * `BOOK_NOW` * @@ -8061,7 +7941,10 @@ type DemandGenProductAd struct { FinalUrlSuffix string `json:"finalUrlSuffix,omitempty"` // Headline: Required. The headline of the ad. Headline string `json:"headline,omitempty"` - // Logo: Required. The logo image used by this ad. + // Logo: Required. The logo image used by this ad. *Warning*: Starting **July + // 13, 2026**, this setting will no longer be required if a default value is + // set at the advertiser level. If left unset, the default value will be + // applied. Logo *ImageAsset `json:"logo,omitempty"` // TrackingUrl: Output only. The URL address loaded in the background for // tracking purposes. @@ -8120,7 +8003,10 @@ func (s DemandGenSettings) MarshalJSON() ([]byte, error) { // DemandGenVideoAd: Details for a Demand Gen video ad. type DemandGenVideoAd struct { - // BusinessName: Required. The business name shown on the ad. + // BusinessName: Required. The business name shown on the ad. *Warning*: + // Starting **July 13, 2026**, this setting will no longer be required if a + // default value is set at the advertiser level. If left unset, the default + // value will be applied. BusinessName string `json:"businessName,omitempty"` // CallToAction: Required. The call-to-action button shown on the ad. The // supported values are: * `AUTOMATED` * `LEARN_MORE` * `GET_QUOTE` * @@ -8172,7 +8058,10 @@ type DemandGenVideoAd struct { FinalUrlSuffix string `json:"finalUrlSuffix,omitempty"` // Headlines: Required. The list of headlines shown on the ad. Headlines []string `json:"headlines,omitempty"` - // Logo: Required. The logo image used by this ad. + // Logo: Required. The logo image used by this ad. *Warning*: Starting **July + // 13, 2026**, this setting will no longer be required if a default value is + // set at the advertiser level. If left unset, the default value will be + // applied. Logo *ImageAsset `json:"logo,omitempty"` // LongHeadlines: Required. The list of long headlines shown on the ad. LongHeadlines []string `json:"longHeadlines,omitempty"` @@ -8857,69 +8746,6 @@ func (s DuplicateLineItemResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EditCustomerMatchMembersRequest: Request message for -// FirstAndThirdPartyAudienceService.EditCustomerMatchMembers. -type EditCustomerMatchMembersRequest struct { - // AddedContactInfoList: Input only. A list of contact information to define - // the members to be added. - AddedContactInfoList *ContactInfoList `json:"addedContactInfoList,omitempty"` - // AddedMobileDeviceIdList: Input only. A list of mobile device IDs to define - // the members to be added. - AddedMobileDeviceIdList *MobileDeviceIdList `json:"addedMobileDeviceIdList,omitempty"` - // AdvertiserId: Required. The ID of the owner advertiser of the updated - // Customer Match FirstAndThirdPartyAudience. - AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // RemovedContactInfoList: Input only. A list of contact information to define - // the members to be removed. - RemovedContactInfoList *ContactInfoList `json:"removedContactInfoList,omitempty"` - // RemovedMobileDeviceIdList: Input only. A list of mobile device IDs to define - // the members to be removed. - RemovedMobileDeviceIdList *MobileDeviceIdList `json:"removedMobileDeviceIdList,omitempty"` - // ForceSendFields is a list of field names (e.g. "AddedContactInfoList") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AddedContactInfoList") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s EditCustomerMatchMembersRequest) MarshalJSON() ([]byte, error) { - type NoMethod EditCustomerMatchMembersRequest - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// EditCustomerMatchMembersResponse: The response of -// FirstAndThirdPartyAudienceService.EditCustomerMatchMembers. -type EditCustomerMatchMembersResponse struct { - // FirstAndThirdPartyAudienceId: Required. The ID of the updated Customer Match - // FirstAndThirdPartyAudience. - FirstAndThirdPartyAudienceId int64 `json:"firstAndThirdPartyAudienceId,omitempty,string"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "FirstAndThirdPartyAudienceId") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FirstAndThirdPartyAudienceId") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s EditCustomerMatchMembersResponse) MarshalJSON() ([]byte, error) { - type NoMethod EditCustomerMatchMembersResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // EditGuaranteedOrderReadAccessorsRequest: Request message for // GuaranteedOrderService.EditGuaranteedOrderReadAccessors. type EditGuaranteedOrderReadAccessorsRequest struct { @@ -9618,143 +9444,6 @@ func (s ExitEvent) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FirstAndThirdPartyAudience: Describes a first or third party audience list -// used for targeting. First party audiences are created via usage of client -// data. Third party audiences are provided by Third Party data providers and -// can only be licensed to customers. -type FirstAndThirdPartyAudience struct { - // ActiveDisplayAudienceSize: Output only. The estimated audience size for the - // Display network in the past month. If the size is less than 1000, the number - // will be hidden and 0 will be returned due to privacy reasons. Otherwise, the - // number will be rounded off to two significant digits. Only returned in GET - // request. - ActiveDisplayAudienceSize int64 `json:"activeDisplayAudienceSize,omitempty,string"` - // AppId: The app_id matches with the type of the mobile_device_ids being - // uploaded. Only applicable to audience_type `CUSTOMER_MATCH_DEVICE_ID` - AppId string `json:"appId,omitempty"` - // AudienceSource: Output only. The source of the audience. - // - // Possible values: - // "AUDIENCE_SOURCE_UNSPECIFIED" - Default value when audience source is not - // specified or is unknown. - // "DISPLAY_VIDEO_360" - Originated from Display & Video 360. - // "CAMPAIGN_MANAGER" - Originated from Campaign Manager 360. - // "AD_MANAGER" - Originated from Google Ad Manager. - // "SEARCH_ADS_360" - Originated from Search Ads 360. - // "YOUTUBE" - Originated from Youtube. - // "ADS_DATA_HUB" - Originated from Ads Data Hub. - AudienceSource string `json:"audienceSource,omitempty"` - // AudienceType: The type of the audience. - // - // Possible values: - // "AUDIENCE_TYPE_UNSPECIFIED" - Default value when type is not specified or - // is unknown. - // "CUSTOMER_MATCH_CONTACT_INFO" - Audience was generated through matching - // customers to known contact information. - // "CUSTOMER_MATCH_DEVICE_ID" - Audience was generated through matching - // customers to known Mobile device IDs. - // "CUSTOMER_MATCH_USER_ID" - Audience was generated through matching - // customers to known User IDs. - // "ACTIVITY_BASED" - Audience was created based on campaign activity. - // "FREQUENCY_CAP" - Audience was created based on excluding the number of - // impressions they were served. - // "TAG_BASED" - Audience was created based on custom variables attached to - // pixel. - // "YOUTUBE_USERS" - Audience was created based on past interactions with - // videos, YouTube ads, or YouTube channel. - // "LICENSED" - Subtype of third party audience type. - AudienceType string `json:"audienceType,omitempty"` - // ContactInfoList: Input only. A list of contact information to define the - // initial audience members. Only applicable to audience_type - // `CUSTOMER_MATCH_CONTACT_INFO` - ContactInfoList *ContactInfoList `json:"contactInfoList,omitempty"` - // Description: The user-provided description of the audience. Only applicable - // to first party audiences. - Description string `json:"description,omitempty"` - // DisplayAudienceSize: Output only. The estimated audience size for the - // Display network. If the size is less than 1000, the number will be hidden - // and 0 will be returned due to privacy reasons. Otherwise, the number will be - // rounded off to two significant digits. Only returned in GET request. - DisplayAudienceSize int64 `json:"displayAudienceSize,omitempty,string"` - // DisplayDesktopAudienceSize: Output only. The estimated desktop audience size - // in Display network. If the size is less than 1000, the number will be hidden - // and 0 will be returned due to privacy reasons. Otherwise, the number will be - // rounded off to two significant digits. Only applicable to first party - // audiences. Only returned in GET request. - DisplayDesktopAudienceSize int64 `json:"displayDesktopAudienceSize,omitempty,string"` - // DisplayMobileAppAudienceSize: Output only. The estimated mobile app audience - // size in Display network. If the size is less than 1000, the number will be - // hidden and 0 will be returned due to privacy reasons. Otherwise, the number - // will be rounded off to two significant digits. Only applicable to first - // party audiences. Only returned in GET request. - DisplayMobileAppAudienceSize int64 `json:"displayMobileAppAudienceSize,omitempty,string"` - // DisplayMobileWebAudienceSize: Output only. The estimated mobile web audience - // size in Display network. If the size is less than 1000, the number will be - // hidden and 0 will be returned due to privacy reasons. Otherwise, the number - // will be rounded off to two significant digits. Only applicable to first - // party audiences. Only returned in GET request. - DisplayMobileWebAudienceSize int64 `json:"displayMobileWebAudienceSize,omitempty,string"` - // DisplayName: The display name of the first and third party audience. - DisplayName string `json:"displayName,omitempty"` - // FirstAndThirdPartyAudienceId: Output only. The unique ID of the first and - // third party audience. Assigned by the system. - FirstAndThirdPartyAudienceId int64 `json:"firstAndThirdPartyAudienceId,omitempty,string"` - // FirstAndThirdPartyAudienceType: Whether the audience is a first or third - // party audience. - // - // Possible values: - // "FIRST_AND_THIRD_PARTY_AUDIENCE_TYPE_UNSPECIFIED" - Default value when - // type is not specified or is unknown. - // "FIRST_AND_THIRD_PARTY_AUDIENCE_TYPE_FIRST_PARTY" - Audience that is - // created via usage of client data. - // "FIRST_AND_THIRD_PARTY_AUDIENCE_TYPE_THIRD_PARTY" - Audience that is - // provided by Third Party data providers. - FirstAndThirdPartyAudienceType string `json:"firstAndThirdPartyAudienceType,omitempty"` - // GmailAudienceSize: Output only. The estimated audience size for Gmail - // network. If the size is less than 1000, the number will be hidden and 0 will - // be returned due to privacy reasons. Otherwise, the number will be rounded - // off to two significant digits. Only applicable to first party audiences. - // Only returned in GET request. - GmailAudienceSize int64 `json:"gmailAudienceSize,omitempty,string"` - // MembershipDurationDays: The duration in days that an entry remains in the - // audience after the qualifying event. The set value must be greater than 0 - // and less than or equal to 540. Only applicable to first party audiences. - // This field is required if one of the following audience_type is used: * - // `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID` - MembershipDurationDays int64 `json:"membershipDurationDays,omitempty,string"` - // MobileDeviceIdList: Input only. A list of mobile device IDs to define the - // initial audience members. Only applicable to audience_type - // `CUSTOMER_MATCH_DEVICE_ID` - MobileDeviceIdList *MobileDeviceIdList `json:"mobileDeviceIdList,omitempty"` - // Name: Output only. The resource name of the first and third party audience. - Name string `json:"name,omitempty"` - // YoutubeAudienceSize: Output only. The estimated audience size for YouTube - // network. If the size is less than 1000, the number will be hidden and 0 will - // be returned due to privacy reasons. Otherwise, the number will be rounded - // off to two significant digits. Only applicable to first party audiences. - // Only returned in GET request. - YoutubeAudienceSize int64 `json:"youtubeAudienceSize,omitempty,string"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ActiveDisplayAudienceSize") - // to unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ActiveDisplayAudienceSize") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s FirstAndThirdPartyAudience) MarshalJSON() ([]byte, error) { - type NoMethod FirstAndThirdPartyAudience - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // FirstAndThirdPartyAudienceGroup: Details of first and third party audience // group. All first and third party audience targeting settings are logically // ‘OR’ of each other. @@ -11619,9 +11308,7 @@ type LineItem struct { // CreativeIds: The IDs of the creatives associated with the line item. CreativeIds googleapi.Int64s `json:"creativeIds,omitempty"` // DemandGenSettings: Optional. Settings specific to Demand Gen line items. - // Only applicable to Demand Gen line items. Retrieval and management of Demand - // Gen resources is currently rolling out. This field will be available to all - // partners by *June 24, 2026*. + // Only applicable to Demand Gen line items. DemandGenSettings *DemandGenSettings `json:"demandGenSettings,omitempty"` // DisplayName: Required. The display name of the line item. Must be UTF-8 // encoded with a maximum size of 240 bytes. @@ -11737,9 +11424,7 @@ type LineItem struct { // "LINE_ITEM_TYPE_VIDEO_OUT_OF_HOME" - Video ads served on // digital-out-of-home inventory. Line items of this type and their targeting // cannot be created or updated using the API. - // "LINE_ITEM_TYPE_DEMAND_GEN" - Demand Gen ads. Retrieval and management of - // Demand Gen resources is currently rolling out. This field will be available - // to all partners by *June 24, 2026*. + // "LINE_ITEM_TYPE_DEMAND_GEN" - Demand Gen ads. LineItemType string `json:"lineItemType,omitempty"` // MobileApp: The mobile app promoted by the line item. This is applicable only // when line_item_type is either `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or @@ -12405,37 +12090,6 @@ func (s ListCustomListsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type ListFirstAndThirdPartyAudiencesResponse struct { - // FirstAndThirdPartyAudiences: The list of first and third party audiences. - // Audience size properties will not be included. This list will be absent if - // empty. - FirstAndThirdPartyAudiences []*FirstAndThirdPartyAudience `json:"firstAndThirdPartyAudiences,omitempty"` - // NextPageToken: A token to retrieve the next page of results. Pass this value - // in the page_token field in the subsequent call to - // `ListFirstAndThirdPartyAudiences` method to retrieve the next page of - // results. - NextPageToken string `json:"nextPageToken,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. - // "FirstAndThirdPartyAudiences") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FirstAndThirdPartyAudiences") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s ListFirstAndThirdPartyAudiencesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListFirstAndThirdPartyAudiencesResponse - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - type ListFloodlightActivitiesResponse struct { // FloodlightActivities: The list of Floodlight activities. This list will be // absent if empty. @@ -13172,36 +12826,6 @@ func (s MobileApp) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MobileDeviceIdList: Wrapper message for a list of mobile device IDs defining -// Customer Match audience members. -type MobileDeviceIdList struct { - // Consent: Input only. The consent setting for the users in mobile_device_ids. - // Leaving this field unset indicates that consent is not specified. If - // ad_user_data or ad_personalization fields are set to - // `CONSENT_STATUS_DENIED`, the request will return an error. - Consent *Consent `json:"consent,omitempty"` - // MobileDeviceIds: A list of mobile device IDs defining Customer Match - // audience members. The size of mobile_device_ids mustn't be greater than - // 500,000. - MobileDeviceIds []string `json:"mobileDeviceIds,omitempty"` - // ForceSendFields is a list of field names (e.g. "Consent") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Consent") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s MobileDeviceIdList) MarshalJSON() ([]byte, error) { - type NoMethod MobileDeviceIdList - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // NativeContentPositionAssignedTargetingOptionDetails: Details for native // content position assigned targeting option. This will be populated in the // native_content_position_details field when targeting_type is @@ -15632,9 +15256,7 @@ type TargetingExpansionConfig struct { EnableOptimizedTargeting bool `json:"enableOptimizedTargeting,omitempty"` // ExcludeDemographicExpansion: Optional. Whether to exclude demographic // expansion for Optimized Targeting. This field can only be set for Demand Gen - // ad groups. Retrieval and management of Demand Gen resources is currently - // rolling out. This field will be available to all partners by *June 24, - // 2026*. + // ad groups. ExcludeDemographicExpansion bool `json:"excludeDemographicExpansion,omitempty"` // ForceSendFields is a list of field names (e.g. "AudienceExpansionLevel") to // unconditionally include in API requests. By default, fields with empty or @@ -15875,7 +15497,8 @@ type ThirdPartyMeasurementConfigs struct { // lift. The following third-party vendors are applicable: * // `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR` * // `THIRD_PARTY_VENDOR_INTAGE` * `THIRD_PARTY_VENDOR_NIELSEN` * - // `THIRD_PARTY_VENDOR_MACROMILL` + // `THIRD_PARTY_VENDOR_MACROMILL` *Warning*: Starting **July 13, 2026**, this + // field will no longer support `THIRD_PARTY_VENDOR_NIELSEN`. BrandLiftVendorConfigs []*ThirdPartyVendorConfig `json:"brandLiftVendorConfigs,omitempty"` // BrandSafetyVendorConfigs: Optional. The third-party vendors measuring brand // safety. The following third-party vendors are applicable: * @@ -18052,8 +17675,7 @@ type AdvertisersAdGroupAdsCreateCall struct { } // Create: Creates an ad group ad. This method is only supported for Demand Gen -// ads. Retrieval and management of Demand Gen resources is currently rolling -// out. This method will be available to all partners by *June 24, 2026*. +// ads. // // - advertiserId: Output only. The unique ID of the advertiser the ad belongs // to. @@ -18158,8 +17780,7 @@ type AdvertisersAdGroupAdsDeleteCall struct { } // Delete: Deletes an ad group ad. This method is only supported for Demand Gen -// ads. Retrieval and management of Demand Gen resources is currently rolling -// out. This method will be available to all partners by *June 24, 2026*. +// ads. // // - adGroupAdId: The ID of the ad to delete. Only Demand Gen ads are // supported. @@ -18553,8 +18174,7 @@ type AdvertisersAdGroupAdsPatchCall struct { } // Patch: Updates an ad group ad. This method is only supported for Demand Gen -// ads. Retrieval and management of Demand Gen resources is currently rolling -// out. This method will be available to all partners by *June 24, 2026*. +// ads. // // - adGroupAdId: Output only. The unique ID of the ad. Assigned by the system. // - advertiserId: Output only. The unique ID of the advertiser the ad belongs @@ -18675,9 +18295,7 @@ type AdvertisersAdGroupsBulkEditAssignedTargetingOptionsCall struct { // BulkEditAdGroupAssignedTargetingOptionsRequest.delete_requests from each ad // group, and then create the assigned targeting options provided in // BulkEditAdGroupAssignedTargetingOptionsRequest.create_requests. This method -// is only supported for Demand Gen ad groups. Retrieval and management of -// Demand Gen resources is currently rolling out. This method will be available -// to all partners by *June 24, 2026*. +// is only supported for Demand Gen ad groups. // // - advertiserId: The ID of the advertiser the ad groups belong to. func (r *AdvertisersAdGroupsService) BulkEditAssignedTargetingOptions(advertiserId int64, bulkeditadgroupassignedtargetingoptionsrequest *BulkEditAdGroupAssignedTargetingOptionsRequest) *AdvertisersAdGroupsBulkEditAssignedTargetingOptionsCall { @@ -18972,8 +18590,6 @@ type AdvertisersAdGroupsCreateCall struct { // Create: Creates a new ad group. Returns the newly created ad group if // successful. This method is only supported for Demand Gen ad groups. -// Retrieval and management of Demand Gen resources is currently rolling out. -// This method will be available to all partners by *June 24, 2026*. // // - advertiserId: Output only. The unique ID of the advertiser the ad group // belongs to. @@ -19079,8 +18695,6 @@ type AdvertisersAdGroupsDeleteCall struct { // Delete: Deletes a AdGroup. Returns error code `NOT_FOUND` if the ad group // does not exist. This method is only supported for Demand Gen ad groups. -// Retrieval and management of Demand Gen resources is currently rolling out. -// This method will be available to all partners by *June 24, 2026*. // // - adGroupId: The ID of the ad group to delete. // - advertiserId: The ID of the advertiser this ad group belongs to. @@ -19474,8 +19088,6 @@ type AdvertisersAdGroupsPatchCall struct { // Patch: Updates an existing ad group. Returns the updated ad group if // successful. This method is only supported for Demand Gen ad groups. -// Retrieval and management of Demand Gen resources is currently rolling out. -// This method will be available to all partners by *June 24, 2026*. // // - adGroupId: Output only. The unique ID of the ad group. Assigned by the // system. @@ -19594,9 +19206,7 @@ type AdvertisersAdGroupsTargetingTypesAssignedTargetingOptionsCreateCall struct // Create: Assigns a targeting option to an ad group. Returns the assigned // targeting option if successful. This method is only supported for Demand Gen -// ad groups. Retrieval and management of Demand Gen resources is currently -// rolling out. This method will be available to all partners by *June 24, -// 2026*. +// ad groups. // // - adGroupId: The ID of the ad group the assigned targeting option will // belong to. @@ -19719,9 +19329,7 @@ type AdvertisersAdGroupsTargetingTypesAssignedTargetingOptionsDeleteCall struct // Delete: Deletes an assigned targeting option from an ad group. This method // is only supported for Demand Gen ad groups with the AdGroupFormat -// `AD_GROUP_FORMAT_DEMAND_GEN`. Retrieval and management of Demand Gen -// resources is currently rolling out. This method will be available to all -// partners by *June 24, 2026*. +// `AD_GROUP_FORMAT_DEMAND_GEN`. // // - adGroupId: The ID of the ad group the assigned targeting option belongs // to. @@ -30471,647 +30079,6 @@ func (c *CustomListsListCall) Pages(ctx context.Context, f func(*ListCustomLists } } -type FirstAndThirdPartyAudiencesCreateCall struct { - s *Service - firstandthirdpartyaudience *FirstAndThirdPartyAudience - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a FirstAndThirdPartyAudience. Only supported for the -// following audience_type: * `CUSTOMER_MATCH_CONTACT_INFO` * -// `CUSTOMER_MATCH_DEVICE_ID` -func (r *FirstAndThirdPartyAudiencesService) Create(firstandthirdpartyaudience *FirstAndThirdPartyAudience) *FirstAndThirdPartyAudiencesCreateCall { - c := &FirstAndThirdPartyAudiencesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.firstandthirdpartyaudience = firstandthirdpartyaudience - return c -} - -// AdvertiserId sets the optional parameter "advertiserId": Required. The ID of -// the advertiser under whom the FirstAndThirdPartyAudience will be created. -func (c *FirstAndThirdPartyAudiencesCreateCall) AdvertiserId(advertiserId int64) *FirstAndThirdPartyAudiencesCreateCall { - c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *FirstAndThirdPartyAudiencesCreateCall) Fields(s ...googleapi.Field) *FirstAndThirdPartyAudiencesCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *FirstAndThirdPartyAudiencesCreateCall) Context(ctx context.Context) *FirstAndThirdPartyAudiencesCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *FirstAndThirdPartyAudiencesCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FirstAndThirdPartyAudiencesCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firstandthirdpartyaudience) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v3/firstAndThirdPartyAudiences") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "displayvideo.firstAndThirdPartyAudiences.create", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "displayvideo.firstAndThirdPartyAudiences.create" call. -// Any non-2xx status code is an error. Response headers are in either -// *FirstAndThirdPartyAudience.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 *FirstAndThirdPartyAudiencesCreateCall) Do(opts ...googleapi.CallOption) (*FirstAndThirdPartyAudience, 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 := &FirstAndThirdPartyAudience{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "displayvideo.firstAndThirdPartyAudiences.create", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall struct { - s *Service - firstAndThirdPartyAudienceId int64 - editcustomermatchmembersrequest *EditCustomerMatchMembersRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// EditCustomerMatchMembers: Updates the member list of a Customer Match -// audience. Only supported for the following audience_type: * -// `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID` -// -// - firstAndThirdPartyAudienceId: The ID of the Customer Match -// FirstAndThirdPartyAudience whose members will be edited. -func (r *FirstAndThirdPartyAudiencesService) EditCustomerMatchMembers(firstAndThirdPartyAudienceId int64, editcustomermatchmembersrequest *EditCustomerMatchMembersRequest) *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall { - c := &FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.firstAndThirdPartyAudienceId = firstAndThirdPartyAudienceId - c.editcustomermatchmembersrequest = editcustomermatchmembersrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall) Fields(s ...googleapi.Field) *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall) Context(ctx context.Context) *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.editcustomermatchmembersrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v3/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}:editCustomerMatchMembers") - 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{ - "firstAndThirdPartyAudienceId": strconv.FormatInt(c.firstAndThirdPartyAudienceId, 10), - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "displayvideo.firstAndThirdPartyAudiences.editCustomerMatchMembers", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "displayvideo.firstAndThirdPartyAudiences.editCustomerMatchMembers" call. -// Any non-2xx status code is an error. Response headers are in either -// *EditCustomerMatchMembersResponse.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 *FirstAndThirdPartyAudiencesEditCustomerMatchMembersCall) Do(opts ...googleapi.CallOption) (*EditCustomerMatchMembersResponse, 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 := &EditCustomerMatchMembersResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "displayvideo.firstAndThirdPartyAudiences.editCustomerMatchMembers", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type FirstAndThirdPartyAudiencesGetCall struct { - s *Service - firstAndThirdPartyAudienceId int64 - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets a first and third party audience. -// -// - firstAndThirdPartyAudienceId: The ID of the first and third party audience -// to fetch. -func (r *FirstAndThirdPartyAudiencesService) Get(firstAndThirdPartyAudienceId int64) *FirstAndThirdPartyAudiencesGetCall { - c := &FirstAndThirdPartyAudiencesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.firstAndThirdPartyAudienceId = firstAndThirdPartyAudienceId - return c -} - -// AdvertiserId sets the optional parameter "advertiserId": The ID of the -// advertiser that has access to the fetched first and third party audience. -func (c *FirstAndThirdPartyAudiencesGetCall) AdvertiserId(advertiserId int64) *FirstAndThirdPartyAudiencesGetCall { - c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) - return c -} - -// PartnerId sets the optional parameter "partnerId": The ID of the partner -// that has access to the fetched first and third party audience. -func (c *FirstAndThirdPartyAudiencesGetCall) PartnerId(partnerId int64) *FirstAndThirdPartyAudiencesGetCall { - c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *FirstAndThirdPartyAudiencesGetCall) Fields(s ...googleapi.Field) *FirstAndThirdPartyAudiencesGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *FirstAndThirdPartyAudiencesGetCall) IfNoneMatch(entityTag string) *FirstAndThirdPartyAudiencesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *FirstAndThirdPartyAudiencesGetCall) Context(ctx context.Context) *FirstAndThirdPartyAudiencesGetCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *FirstAndThirdPartyAudiencesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FirstAndThirdPartyAudiencesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v3/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "firstAndThirdPartyAudienceId": strconv.FormatInt(c.firstAndThirdPartyAudienceId, 10), - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "displayvideo.firstAndThirdPartyAudiences.get", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "displayvideo.firstAndThirdPartyAudiences.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *FirstAndThirdPartyAudience.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 *FirstAndThirdPartyAudiencesGetCall) Do(opts ...googleapi.CallOption) (*FirstAndThirdPartyAudience, 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 := &FirstAndThirdPartyAudience{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "displayvideo.firstAndThirdPartyAudiences.get", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -type FirstAndThirdPartyAudiencesListCall struct { - s *Service - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists first and third party audiences. The order is defined by the -// order_by parameter. -func (r *FirstAndThirdPartyAudiencesService) List() *FirstAndThirdPartyAudiencesListCall { - c := &FirstAndThirdPartyAudiencesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - return c -} - -// AdvertiserId sets the optional parameter "advertiserId": The ID of the -// advertiser that has access to the fetched first and third party audiences. -func (c *FirstAndThirdPartyAudiencesListCall) AdvertiserId(advertiserId int64) *FirstAndThirdPartyAudiencesListCall { - c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) - return c -} - -// Filter sets the optional parameter "filter": Allows filtering by first and -// third party audience fields. Supported syntax: * Filter expressions for -// first and third party audiences can only contain at most one restriction. * -// A restriction has the form of `{field} {operator} {value}`. * All fields -// must use the `HAS (:)` operator. Supported fields: * `displayName` Examples: -// * All first and third party audiences for which the display name contains -// "Google": `displayName:"Google". The length of this field should be no more -// than 500 characters. Reference our filter `LIST` requests -// (/display-video/api/guides/how-tos/filters) guide for more information. -func (c *FirstAndThirdPartyAudiencesListCall) Filter(filter string) *FirstAndThirdPartyAudiencesListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Field by which to sort the -// list. Acceptable values are: * `firstAndThirdPartyAudienceId` (default) * -// `displayName` The default sorting order is ascending. To specify descending -// order for a field, a suffix "desc" should be added to the field name. -// Example: `displayName desc`. -func (c *FirstAndThirdPartyAudiencesListCall) OrderBy(orderBy string) *FirstAndThirdPartyAudiencesListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": Requested page size. Must -// be between `1` and `5000`. If unspecified, this value defaults to `5000`. -// Returns error code `INVALID_ARGUMENT` if an invalid value is specified. -func (c *FirstAndThirdPartyAudiencesListCall) PageSize(pageSize int64) *FirstAndThirdPartyAudiencesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A token identifying a -// page of results the server should return. Typically, this is the value of -// next_page_token returned from the previous call to -// `ListFirstAndThirdPartyAudiences` method. If not specified, the first page -// of results will be returned. -func (c *FirstAndThirdPartyAudiencesListCall) PageToken(pageToken string) *FirstAndThirdPartyAudiencesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// PartnerId sets the optional parameter "partnerId": The ID of the partner -// that has access to the fetched first and third party audiences. -func (c *FirstAndThirdPartyAudiencesListCall) PartnerId(partnerId int64) *FirstAndThirdPartyAudiencesListCall { - c.urlParams_.Set("partnerId", fmt.Sprint(partnerId)) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *FirstAndThirdPartyAudiencesListCall) Fields(s ...googleapi.Field) *FirstAndThirdPartyAudiencesListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *FirstAndThirdPartyAudiencesListCall) IfNoneMatch(entityTag string) *FirstAndThirdPartyAudiencesListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *FirstAndThirdPartyAudiencesListCall) Context(ctx context.Context) *FirstAndThirdPartyAudiencesListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *FirstAndThirdPartyAudiencesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FirstAndThirdPartyAudiencesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v3/firstAndThirdPartyAudiences") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) - if err != nil { - return nil, err - } - req.Header = reqHeaders - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "displayvideo.firstAndThirdPartyAudiences.list", "request", internallog.HTTPRequest(req, nil)) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "displayvideo.firstAndThirdPartyAudiences.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *ListFirstAndThirdPartyAudiencesResponse.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 *FirstAndThirdPartyAudiencesListCall) Do(opts ...googleapi.CallOption) (*ListFirstAndThirdPartyAudiencesResponse, 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 := &ListFirstAndThirdPartyAudiencesResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "displayvideo.firstAndThirdPartyAudiences.list", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *FirstAndThirdPartyAudiencesListCall) Pages(ctx context.Context, f func(*ListFirstAndThirdPartyAudiencesResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type FirstAndThirdPartyAudiencesPatchCall struct { - s *Service - firstAndThirdPartyAudienceId int64 - firstandthirdpartyaudience *FirstAndThirdPartyAudience - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing FirstAndThirdPartyAudience. Only supported for -// the following audience_type: * `CUSTOMER_MATCH_CONTACT_INFO` * -// `CUSTOMER_MATCH_DEVICE_ID` -// -// - firstAndThirdPartyAudienceId: Output only. The unique ID of the first and -// third party audience. Assigned by the system. -func (r *FirstAndThirdPartyAudiencesService) Patch(firstAndThirdPartyAudienceId int64, firstandthirdpartyaudience *FirstAndThirdPartyAudience) *FirstAndThirdPartyAudiencesPatchCall { - c := &FirstAndThirdPartyAudiencesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.firstAndThirdPartyAudienceId = firstAndThirdPartyAudienceId - c.firstandthirdpartyaudience = firstandthirdpartyaudience - return c -} - -// AdvertiserId sets the optional parameter "advertiserId": Required. The ID of -// the owner advertiser of the updated FirstAndThirdPartyAudience. -func (c *FirstAndThirdPartyAudiencesPatchCall) AdvertiserId(advertiserId int64) *FirstAndThirdPartyAudiencesPatchCall { - c.urlParams_.Set("advertiserId", fmt.Sprint(advertiserId)) - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. The mask to -// control which fields to update. Updates are only supported for the following -// fields: * `displayName` * `description` * `membershipDurationDays` -func (c *FirstAndThirdPartyAudiencesPatchCall) UpdateMask(updateMask string) *FirstAndThirdPartyAudiencesPatchCall { - c.urlParams_.Set("updateMask", updateMask) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *FirstAndThirdPartyAudiencesPatchCall) Fields(s ...googleapi.Field) *FirstAndThirdPartyAudiencesPatchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *FirstAndThirdPartyAudiencesPatchCall) Context(ctx context.Context) *FirstAndThirdPartyAudiencesPatchCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *FirstAndThirdPartyAudiencesPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *FirstAndThirdPartyAudiencesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.firstandthirdpartyaudience) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v3/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "firstAndThirdPartyAudienceId": strconv.FormatInt(c.firstAndThirdPartyAudienceId, 10), - }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "displayvideo.firstAndThirdPartyAudiences.patch", "request", internallog.HTTPRequest(req, body.Bytes())) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "displayvideo.firstAndThirdPartyAudiences.patch" call. -// Any non-2xx status code is an error. Response headers are in either -// *FirstAndThirdPartyAudience.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 *FirstAndThirdPartyAudiencesPatchCall) Do(opts ...googleapi.CallOption) (*FirstAndThirdPartyAudience, 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 := &FirstAndThirdPartyAudience{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - b, err := gensupport.DecodeResponseBytes(target, res) - if err != nil { - return nil, err - } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "displayvideo.firstAndThirdPartyAudiences.patch", "response", internallog.HTTPResponse(res, b)) - return ret, nil -} - type FloodlightGroupsGetCall struct { s *Service floodlightGroupId int64 diff --git a/displayvideo/v4/displayvideo-api.json b/displayvideo/v4/displayvideo-api.json index 00ef94704ed..388b54913f1 100644 --- a/displayvideo/v4/displayvideo-api.json +++ b/displayvideo/v4/displayvideo-api.json @@ -562,7 +562,7 @@ "adGroupAds": { "methods": { "create": { - "description": "Creates an ad group ad. This method is only supported for Demand Gen ads. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Creates an ad group ad. This method is only supported for Demand Gen ads.", "flatPath": "v4/advertisers/{advertisersId}/adGroupAds", "httpMethod": "POST", "id": "displayvideo.advertisers.adGroupAds.create", @@ -591,7 +591,7 @@ ] }, "delete": { - "description": "Deletes an ad group ad. This method is only supported for Demand Gen ads. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Deletes an ad group ad. This method is only supported for Demand Gen ads.", "flatPath": "v4/advertisers/{advertisersId}/adGroupAds/{adGroupAdsId}", "httpMethod": "DELETE", "id": "displayvideo.advertisers.adGroupAds.delete", @@ -708,7 +708,7 @@ ] }, "patch": { - "description": "Updates an ad group ad. This method is only supported for Demand Gen ads. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Updates an ad group ad. This method is only supported for Demand Gen ads.", "flatPath": "v4/advertisers/{advertisersId}/adGroupAds/{adGroupAdsId}", "httpMethod": "PATCH", "id": "displayvideo.advertisers.adGroupAds.patch", @@ -756,7 +756,7 @@ "adGroups": { "methods": { "bulkEditAssignedTargetingOptions": { - "description": "Bulk edits targeting options for multiple ad groups. The same set of delete and create requests will be applied to all specified ad groups. Specifically, the operation will delete the assigned targeting options provided in BulkEditAdGroupAssignedTargetingOptionsRequest.delete_requests from each ad group, and then create the assigned targeting options provided in BulkEditAdGroupAssignedTargetingOptionsRequest.create_requests. This method is only supported for Demand Gen ad groups. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Bulk edits targeting options for multiple ad groups. The same set of delete and create requests will be applied to all specified ad groups. Specifically, the operation will delete the assigned targeting options provided in BulkEditAdGroupAssignedTargetingOptionsRequest.delete_requests from each ad group, and then create the assigned targeting options provided in BulkEditAdGroupAssignedTargetingOptionsRequest.create_requests. This method is only supported for Demand Gen ad groups.", "flatPath": "v4/advertisers/{advertisersId}/adGroups:bulkEditAssignedTargetingOptions", "httpMethod": "POST", "id": "displayvideo.advertisers.adGroups.bulkEditAssignedTargetingOptions", @@ -839,7 +839,7 @@ ] }, "create": { - "description": "Creates a new ad group. Returns the newly created ad group if successful. This method is only supported for Demand Gen ad groups. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Creates a new ad group. Returns the newly created ad group if successful. This method is only supported for Demand Gen ad groups.", "flatPath": "v4/advertisers/{advertisersId}/adGroups", "httpMethod": "POST", "id": "displayvideo.advertisers.adGroups.create", @@ -868,7 +868,7 @@ ] }, "delete": { - "description": "Deletes a AdGroup. Returns error code `NOT_FOUND` if the ad group does not exist. This method is only supported for Demand Gen ad groups. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Deletes a AdGroup. Returns error code `NOT_FOUND` if the ad group does not exist. This method is only supported for Demand Gen ad groups.", "flatPath": "v4/advertisers/{advertisersId}/adGroups/{adGroupsId}", "httpMethod": "DELETE", "id": "displayvideo.advertisers.adGroups.delete", @@ -985,7 +985,7 @@ ] }, "patch": { - "description": "Updates an existing ad group. Returns the updated ad group if successful. This method is only supported for Demand Gen ad groups. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Updates an existing ad group. Returns the updated ad group if successful. This method is only supported for Demand Gen ad groups.", "flatPath": "v4/advertisers/{advertisersId}/adGroups/{adGroupsId}", "httpMethod": "PATCH", "id": "displayvideo.advertisers.adGroups.patch", @@ -1035,7 +1035,7 @@ "assignedTargetingOptions": { "methods": { "create": { - "description": "Assigns a targeting option to an ad group. Returns the assigned targeting option if successful. This method is only supported for Demand Gen ad groups. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Assigns a targeting option to an ad group. Returns the assigned targeting option if successful. This method is only supported for Demand Gen ad groups.", "flatPath": "v4/advertisers/{advertisersId}/adGroups/{adGroupsId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions", "httpMethod": "POST", "id": "displayvideo.advertisers.adGroups.targetingTypes.assignedTargetingOptions.create", @@ -1187,7 +1187,7 @@ ] }, "delete": { - "description": "Deletes an assigned targeting option from an ad group. This method is only supported for Demand Gen ad groups with the AdGroupFormat `AD_GROUP_FORMAT_DEMAND_GEN`. Retrieval and management of Demand Gen resources is currently rolling out. This method will be available to all partners by *June 24, 2026*.", + "description": "Deletes an assigned targeting option from an ad group. This method is only supported for Demand Gen ad groups with the AdGroupFormat `AD_GROUP_FORMAT_DEMAND_GEN`.", "flatPath": "v4/advertisers/{advertisersId}/adGroups/{adGroupsId}/targetingTypes/{targetingTypesId}/assignedTargetingOptions/{assignedTargetingOptionsId}", "httpMethod": "DELETE", "id": "displayvideo.advertisers.adGroups.targetingTypes.assignedTargetingOptions.delete", @@ -5123,7 +5123,7 @@ "type": "string" }, "filter": { - "description": "Optional. Allows filtering by plannable user list properties. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. * A restriction has the form of `{field} {operator} {value}`. * The `updateTime` field must use the `GREATER THAN OR EQUAL TO (\u003e=)` or `LESS THAN OR EQUAL TO (\u003c=)` operators. * All other fields must use the `EQUALS (=)` operator. Supported fields: * `plannableStatus` Examples: * All plannable user lists: `plannableStatus=\"PLANNABLE\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", + "description": "Optional. Allows filtering by plannable user list properties. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. * A restriction has the form of `{field} {operator} {value}`. * The `displayName` field must use the `HAS (:)` operator. * All other fields must use the `EQUALS (=)` operator. Supported fields: * `plannableStatus` * `displayName` * `userListType` * `name` Examples: * All plannable user lists: `plannableStatus=\"PLANNABLE\"` * Plannable user lists with display name containing \"Shopping\": `plannableStatus=\"PLANNABLE\" AND displayName:\"Shopping\"` * First party user lists: `userListType=\"FIRST_PARTY\"` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.", "location": "query", "type": "string" }, @@ -9574,7 +9574,7 @@ } } }, - "revision": "20260623", + "revision": "20260708", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActiveViewVideoViewabilityMetricConfig": { @@ -9776,7 +9776,7 @@ "Responsive ads.", "[Effective reach ad groups] (https://support.google.com/displayvideo/answer/9173684), including in-stream and bumper ads.", "Masthead Ad that is surfaced on the top slot on the YouTube homepage.", - "Demand Gen ads. Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "Demand Gen ads." ], "type": "string" }, @@ -9891,23 +9891,23 @@ }, "dcmTrackingInfo": { "$ref": "DcmTrackingInfo", - "description": "Optional. The DCM tracking ad info. Only valid for Demand Gen ads. To remove the DCM tracking ad info, please leave this field empty. Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "description": "Optional. The DCM tracking ad info. Only valid for Demand Gen ads. To remove the DCM tracking ad info, please leave this field empty." }, "demandGenCarouselAd": { "$ref": "DemandGenCarouselAd", - "description": "Details of a [Demand Gen carousel ad](//support.google.com/displayvideo/answer/15598924?\u0026sjid=11207068802760924844-NC#CarouselAd). Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "description": "Details of a [Demand Gen carousel ad](//support.google.com/displayvideo/answer/15598924?\u0026sjid=11207068802760924844-NC#CarouselAd)." }, "demandGenImageAd": { "$ref": "DemandGenImageAd", - "description": "Details of a [Demand Gen image ad](//support.google.com/displayvideo/answer/15598924?\u0026sjid=11207068802760924844-NC#ImageAd). Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "description": "Details of a [Demand Gen image ad](//support.google.com/displayvideo/answer/15598924?\u0026sjid=11207068802760924844-NC#ImageAd)." }, "demandGenProductAd": { "$ref": "DemandGenProductAd", - "description": "Details of a [Demand Gen product ad](//support.google.com/displayvideo/answer/15598924?\u0026sjid=11207068802760924844-NC#Product-onlyAd). Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "description": "Details of a [Demand Gen product ad](//support.google.com/displayvideo/answer/15598924?\u0026sjid=11207068802760924844-NC#Product-onlyAd)." }, "demandGenVideoAd": { "$ref": "DemandGenVideoAd", - "description": "Details of a [Demand Gen video ad](//support.google.com/displayvideo/answer/15598924?\u0026sjid=11207068802760924844-NC#VideoAd). Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "description": "Details of a [Demand Gen video ad](//support.google.com/displayvideo/answer/15598924?\u0026sjid=11207068802760924844-NC#VideoAd)." }, "displayName": { "description": "Required. The display name of the ad. Must be UTF-8 encoded with a maximum size of 255 bytes.", @@ -11033,6 +11033,22 @@ }, "type": "array" }, + "network": { + "description": "Optional. The network to target.", + "enum": [ + "PLANNABLE_NETWORK_UNSPECIFIED", + "PLANNABLE_NETWORK_YOUTUBE", + "PLANNABLE_NETWORK_GOOGLE_VIDEO_PARTNERS", + "PLANNABLE_NETWORK_YOUTUBE_AND_GOOGLE_VIDEO_PARTNERS" + ], + "enumDescriptions": [ + "Not specified.", + "YouTube.", + "Google Video Partners.", + "YouTube and Google Video Partners." + ], + "type": "string" + }, "plannableLocationIds": { "description": "Optional. Plannable location IDs to target.", "items": { @@ -14209,33 +14225,33 @@ "id": "ContactInfo", "properties": { "countryCode": { - "description": "Country code of the member. Must also be set with the following fields: * hashed_first_name * hashed_last_name * zip_codes", + "description": "Optional. Country code of the member. Must also be set with the following fields: * country_code * hashed_first_name * hashed_last_name * zip_codes", "type": "string" }, "hashedEmails": { - "description": "A list of SHA256 hashed email of the member. Before hashing, remove all whitespace and make sure the string is all lowercase.", + "description": "Optional. A list of SHA256 hashed email of the member. Before hashing, remove all whitespace and make sure the string is all lowercase.", "items": { "type": "string" }, "type": "array" }, "hashedFirstName": { - "description": "SHA256 hashed first name of the member. Before hashing, remove all whitespace and make sure the string is all lowercase. Must also be set with the following fields: * country_code * hashed_last_name * zip_codes", + "description": "Optional. SHA256 hashed first name of the member. Before hashing, remove all whitespace and make sure the string is all lowercase. Must also be set with the following fields: * country_code * hashed_last_name * zip_codes", "type": "string" }, "hashedLastName": { - "description": "SHA256 hashed last name of the member. Before hashing, remove all whitespace and make sure the string is all lowercase. Must also be set with the following fields: * country_code * hashed_first_name * zip_codes", + "description": "Optional. SHA256 hashed last name of the member. Before hashing, remove all whitespace and make sure the string is all lowercase. Must also be set with the following fields: * country_code * hashed_first_name * zip_codes", "type": "string" }, "hashedPhoneNumbers": { - "description": "A list of SHA256 hashed phone numbers of the member. Before hashing, all phone numbers must be formatted using the [E.164 format](//en.wikipedia.org/wiki/E.164) and include the country calling code.", + "description": "Optional. A list of SHA256 hashed phone numbers of the member. Before hashing, all phone numbers must be formatted using the [E.164 format](https://en.wikipedia.org/wiki/E.164) and include the country calling code.", "items": { "type": "string" }, "type": "array" }, "zipCodes": { - "description": "A list of zip codes of the member. Must also be set with the following fields: * country_code * hashed_first_name * hashed_last_name", + "description": "Optional. A list of zip codes of the member. Must also be set with the following fields: * country_code * hashed_first_name * hashed_last_name", "items": { "type": "string" }, @@ -14253,7 +14269,7 @@ "description": "Input only. The consent setting for the users in contact_infos. Leaving this field unset indicates that consent is not specified. If ad_user_data or ad_personalization fields are set to `CONSENT_STATUS_DENIED`, the request will return an error." }, "contactInfos": { - "description": "A list of ContactInfo objects defining Customer Match audience members. The size of members after splitting the contact_infos mustn't be greater than 500,000.", + "description": "Optional. A list of ContactInfo objects defining Customer Match audience members. The size of members after splitting the contact_infos mustn't be greater than 500,000.", "items": { "$ref": "ContactInfo" }, @@ -14671,7 +14687,7 @@ "type": "string" }, "primaryAttributionModelId": { - "description": "Optional. The attribution model to use for conversion measurement. This attribution model will determine how conversions are counted. The Primary model can be set by you for a floodlight config or group. More details [here](https://support.google.com/displayvideo/answer/7409983). Only applicable to Demand Gen line items. Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*.", + "description": "Optional. The attribution model to use for conversion measurement. This attribution model will determine how conversions are counted. The Primary model can be set by you for a floodlight config or group. More details [here](https://support.google.com/displayvideo/answer/7409983). Only applicable to Demand Gen line items.", "format": "int64", "type": "string" } @@ -16105,7 +16121,7 @@ "id": "DemandGenCarouselAd", "properties": { "businessName": { - "description": "Required. The business name shown on the ad.", + "description": "Required. The business name shown on the ad. *Warning*: Starting **July 13, 2026**, this setting will no longer be required if a default value is set at the advertiser level. If left unset, the default value will be applied.", "type": "string" }, "cards": { @@ -16140,7 +16156,7 @@ }, "logo": { "$ref": "ImageAsset", - "description": "Required. The logo image used by this ad." + "description": "Required. The logo image used by this ad. *Warning*: Starting **July 13, 2026**, this setting will no longer be required if a default value is set at the advertiser level. If left unset, the default value will be applied." }, "trackingUrl": { "description": "Output only. The URL address loaded in the background for tracking purposes.", @@ -16159,7 +16175,7 @@ "id": "DemandGenImageAd", "properties": { "businessName": { - "description": "Required. The business name shown on the ad.", + "description": "Required. The business name shown on the ad. *Warning*: Starting **July 13, 2026**, this setting will no longer be required if a default value is set at the advertiser level. If left unset, the default value will be applied.", "type": "string" }, "callToAction": { @@ -16200,7 +16216,7 @@ "type": "array" }, "logoImages": { - "description": "The list of logo images shown on the ad.", + "description": "The list of logo images shown on the ad. *Warning*: Starting **July 13, 2026**, this setting will no longer be required if a default value is set at the advertiser level. If left unset, the default value will be applied.", "items": { "$ref": "ImageAsset" }, @@ -16244,7 +16260,7 @@ "id": "DemandGenProductAd", "properties": { "businessName": { - "description": "Required. The business name shown on the ad.", + "description": "Required. The business name shown on the ad. *Warning*: Starting **July 13, 2026**, this setting will no longer be required if a default value is set at the advertiser level. If left unset, the default value will be applied.", "type": "string" }, "callToAction": { @@ -16326,7 +16342,7 @@ }, "logo": { "$ref": "ImageAsset", - "description": "Required. The logo image used by this ad." + "description": "Required. The logo image used by this ad. *Warning*: Starting **July 13, 2026**, this setting will no longer be required if a default value is set at the advertiser level. If left unset, the default value will be applied." }, "trackingUrl": { "description": "Output only. The URL address loaded in the background for tracking purposes.", @@ -16365,7 +16381,7 @@ "id": "DemandGenVideoAd", "properties": { "businessName": { - "description": "Required. The business name shown on the ad.", + "description": "Required. The business name shown on the ad. *Warning*: Starting **July 13, 2026**, this setting will no longer be required if a default value is set at the advertiser level. If left unset, the default value will be applied.", "type": "string" }, "callToAction": { @@ -16461,7 +16477,7 @@ }, "logo": { "$ref": "ImageAsset", - "description": "Required. The logo image used by this ad." + "description": "Required. The logo image used by this ad. *Warning*: Starting **July 13, 2026**, this setting will no longer be required if a default value is set at the advertiser level. If left unset, the default value will be applied." }, "longHeadlines": { "description": "Required. The list of long headlines shown on the ad.", @@ -17053,7 +17069,7 @@ "type": "object" }, "EditCustomerMatchMembersRequest": { - "description": "Request message for FirstAndThirdPartyAudienceService.EditCustomerMatchMembers.", + "description": "Request message for FirstPartyAndPartnerAudienceService.EditCustomerMatchMembers.", "id": "EditCustomerMatchMembersRequest", "properties": { "addedContactInfoList": { @@ -17081,7 +17097,7 @@ "type": "object" }, "EditCustomerMatchMembersResponse": { - "description": "The response of FirstAndThirdPartyAudienceService.EditCustomerMatchMembers.", + "description": "The response of FirstPartyAndPartnerAudienceService.EditCustomerMatchMembers.", "id": "EditCustomerMatchMembersResponse", "properties": { "firstPartyAndPartnerAudienceId": { @@ -17185,38 +17201,6 @@ }, "type": "object" }, - "EffectiveFrequencyBreakdown": { - "description": "A breakdown of the number of unique people reached at a given effective frequency.", - "id": "EffectiveFrequencyBreakdown", - "properties": { - "effectiveCoviewReach": { - "description": "The number of unique individuals, including co-viewers, exactly matching the targeting that were served the ad at least the number of times dictated by the effective_frequency.", - "format": "int64", - "type": "string" - }, - "effectiveFrequency": { - "description": "The set effective frequency.", - "format": "int32", - "type": "integer" - }, - "onTargetEffectiveCoviewReach": { - "description": "The total number of unique individuals, including co-viewers that were served the ad at least the number of times dictated by the effective_frequency. This includes individuals that may fall outside of targeting.", - "format": "int64", - "type": "string" - }, - "onTargetReach": { - "description": "The number of unique individuals exactly matching the targeting that were served the ad at least the number of times dictated by the effective_frequency.", - "format": "int64", - "type": "string" - }, - "totalReach": { - "description": "The total number of unique individuals that were served the ad at least the number of times dictated by the effective_frequency. This includes individuals that may fall outside of targeting.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -18201,8 +18185,8 @@ "Audience was generated through matching customers to known contact information.", "Audience was generated through matching customers to known Mobile device IDs.", "Audience was generated through matching customers to known User IDs.", - "Audience was created based on campaign activity.", - "Audience was created based on excluding the number of impressions they were served.", + "Deprecated: Audience was created based on campaign activity.", + "Deprecated: Audience was created based on excluding the number of impressions they were served.", "Audience was created based on custom variables attached to pixel.", "Audience was created based on past interactions with videos, YouTube ads, or YouTube channel.", "Audience has been licensed for use from a third party.", @@ -18636,13 +18620,8 @@ "description": "Required. The currency code for the plan in ISO 4217 format.", "type": "string" }, - "effectiveFrequencyBreakdownLimit": { - "description": "Optional. The highest minimum effective frequency to include in PlannedProductForecast.effective_frequency_breakdowns. Must be between 1 and 10, inclusive. If not specified, PlannedProductForecast.effective_frequency_breakdowns will not be populated. If set, this value will also be used as the minimum effective frequency for reach metrics reporting. This field cannot be combined with the min_effective_frequency field.", - "format": "int32", - "type": "integer" - }, "minEffectiveFrequency": { - "description": "Optional. The minimum effective frequency for the reported reach metrics. This is the smallest number of times a customer must be exposed to the ad for it to be considered effective. This setting only impacts reporting. Must be between 1 and 10, inclusive. If not specified, a default of 1 is applied. This field cannot be combined with effective_frequency_breakdown_limit.", + "description": "Optional. The minimum effective frequency for the reported reach metrics. This is the smallest number of times a customer must be exposed to the ad for it to be considered effective. This setting only impacts reporting. Must be between 1 and 10, inclusive. If not specified, a default of 1 is applied.", "format": "int32", "type": "integer" }, @@ -20746,7 +20725,7 @@ }, "demandGenSettings": { "$ref": "DemandGenSettings", - "description": "Optional. Settings specific to Demand Gen line items. Only applicable to Demand Gen line items. Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "description": "Optional. Settings specific to Demand Gen line items. Only applicable to Demand Gen line items." }, "displayName": { "description": "Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes.", @@ -20849,7 +20828,7 @@ "YouTube video ads that aim to get more views with a variety of ad formats. Line items of this type and their targeting cannot be created or updated using the API.", "Display ads served on digital-out-of-home inventory. Line items of this type and their targeting cannot be created or updated using the API.", "Video ads served on digital-out-of-home inventory. Line items of this type and their targeting cannot be created or updated using the API.", - "Demand Gen ads. Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*." + "Demand Gen ads." ], "type": "string" }, @@ -21886,7 +21865,7 @@ "description": "Input only. The consent setting for the users in mobile_device_ids. Leaving this field unset indicates that consent is not specified. If ad_user_data or ad_personalization fields are set to `CONSENT_STATUS_DENIED`, the request will return an error." }, "mobileDeviceIds": { - "description": "A list of mobile device IDs defining Customer Match audience members. The size of mobile_device_ids mustn't be greater than 500,000.", + "description": "Optional. A list of mobile device IDs defining Customer Match audience members. The size of mobile_device_ids mustn't be greater than 500,000.", "items": { "type": "string" }, @@ -22933,6 +22912,12 @@ "readOnly": true, "type": "string" }, + "parentPlannableLocationId": { + "description": "Output only. The parent plannable location ID, for example the country ID for subgeos.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "plannableLocationId": { "description": "Output only. The plannable location ID.", "format": "int64", @@ -22947,6 +22932,62 @@ }, "type": "object" }, + "PlannableProductCoreAttributes": { + "description": "Core attributes for a plannable product.", + "id": "PlannableProductCoreAttributes", + "properties": { + "buyingMethod": { + "description": "Output only. The buying method.", + "enum": [ + "PLANNABLE_BUYING_METHOD_UNSPECIFIED", + "PLANNABLE_BUYING_METHOD_AUCTION", + "PLANNABLE_BUYING_METHOD_RESERVATION" + ], + "enumDescriptions": [ + "Not specified.", + "Auction.", + "Reservation." + ], + "readOnly": true, + "type": "string" + }, + "costModel": { + "description": "Output only. The cost model.", + "enum": [ + "PLANNABLE_COST_MODEL_UNSPECIFIED", + "PLANNABLE_COST_MODEL_CPM", + "PLANNABLE_COST_MODEL_CPV", + "PLANNABLE_COST_MODEL_CPC", + "PLANNABLE_COST_MODEL_CPA" + ], + "enumDescriptions": [ + "Not specified.", + "CPM.", + "CPV.", + "CPC.", + "CPA." + ], + "readOnly": true, + "type": "string" + }, + "productCategory": { + "description": "Output only. The product category.", + "enum": [ + "PLANNABLE_PRODUCT_CATEGORY_UNSPECIFIED", + "YOUTUBE", + "OPEN_AUCTION" + ], + "enumDescriptions": [ + "Not specified.", + "YouTube.", + "Open Auction." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "PlannableTargeting": { "description": "Targeting capabilities for a given product.", "id": "PlannableTargeting", @@ -23027,6 +23068,11 @@ "readOnly": true, "type": "array" }, + "defaultYoutubeSelectLineup": { + "$ref": "YouTubeSelectLineUp", + "description": "Output only. The default YouTube Select Lineup for this product, if applicable.", + "readOnly": true + }, "devices": { "description": "Output only. Targetable devices for the ad product.", "items": { @@ -23071,25 +23117,22 @@ "readOnly": true, "type": "array" }, - "networks": { - "description": "Output only. Targetable networks for the ad product.", - "items": { - "enum": [ - "PLANNABLE_NETWORK_UNSPECIFIED", - "PLANNABLE_NETWORK_YOUTUBE", - "PLANNABLE_NETWORK_GOOGLE_VIDEO_PARTNERS", - "PLANNABLE_NETWORK_YOUTUBE_AND_GOOGLE_VIDEO_PARTNERS" - ], - "enumDescriptions": [ - "Not specified.", - "YouTube.", - "Google Video Partners.", - "YouTube and Google Video Partners." - ], - "type": "string" - }, + "network": { + "description": "Output only. Targetable network for the ad product.", + "enum": [ + "PLANNABLE_NETWORK_UNSPECIFIED", + "PLANNABLE_NETWORK_YOUTUBE", + "PLANNABLE_NETWORK_GOOGLE_VIDEO_PARTNERS", + "PLANNABLE_NETWORK_YOUTUBE_AND_GOOGLE_VIDEO_PARTNERS" + ], + "enumDescriptions": [ + "Not specified.", + "YouTube.", + "Google Video Partners.", + "YouTube and Google Video Partners." + ], "readOnly": true, - "type": "array" + "type": "string" }, "surfaceTargetingCombinations": { "$ref": "SurfaceTargetingCombinations", @@ -23205,13 +23248,6 @@ "description": "Performance metrics for a forecast point.", "id": "PlannedProductForecast", "properties": { - "effectiveFrequencyBreakdowns": { - "description": "A list of effective frequency breakdowns.", - "items": { - "$ref": "EffectiveFrequencyBreakdown" - }, - "type": "array" - }, "onTargetImpressions": { "description": "Number of on-target impressions.", "format": "int64", @@ -23466,6 +23502,11 @@ "readOnly": true, "type": "string" }, + "plannableProductCoreAttributes": { + "$ref": "PlannableProductCoreAttributes", + "description": "Output only. Core attributes for this product.", + "readOnly": true + }, "plannableProductDescription": { "description": "Output only. The plain-text description of the ad product.", "readOnly": true, @@ -24385,6 +24426,38 @@ "readOnly": true, "type": "array" }, + "defaultSurfaceTypes": { + "description": "Output only. The default surface types for this product.", + "items": { + "enum": [ + "PLANNABLE_SURFACE_UNSPECIFIED", + "PLANNABLE_SURFACE_IN_FEED", + "PLANNABLE_SURFACE_IN_STREAM_BUMPER", + "PLANNABLE_SURFACE_IN_STREAM_NON_SKIPPABLE", + "PLANNABLE_SURFACE_IN_STREAM_SKIPPABLE", + "PLANNABLE_SURFACE_SHORTS", + "PLANNABLE_SURFACE_DISCOVER_FEED", + "PLANNABLE_SURFACE_GMAIL", + "PLANNABLE_SURFACE_GOOGLE_DISPLAY_NETWORK", + "PLANNABLE_SURFACE_IN_STREAM_NON_SKIPPABLE_THIRTY_SECONDS" + ], + "enumDescriptions": [ + "Not specified.", + "In-feed.", + "In-stream bumper.", + "In-stream non-skippable.", + "In-stream skippable.", + "Shorts.", + "Discover feed.", + "Gmail.", + "Google Display Network.", + "In-stream non-skippable (30 seconds)." + ], + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "validSurfaceCombinations": { "description": "Output only. Valid combinations of surfaces that can be selected together.", "items": { @@ -24644,7 +24717,7 @@ "type": "boolean" }, "excludeDemographicExpansion": { - "description": "Optional. Whether to exclude demographic expansion for Optimized Targeting. This field can only be set for Demand Gen ad groups. Retrieval and management of Demand Gen resources is currently rolling out. This field will be available to all partners by *June 24, 2026*.", + "description": "Optional. Whether to exclude demographic expansion for Optimized Targeting. This field can only be set for Demand Gen ad groups.", "type": "boolean" } }, @@ -24919,7 +24992,7 @@ "id": "ThirdPartyMeasurementConfigs", "properties": { "brandLiftVendorConfigs": { - "description": "Optional. The third-party vendors measuring brand lift. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR` * `THIRD_PARTY_VENDOR_INTAGE` * `THIRD_PARTY_VENDOR_NIELSEN` * `THIRD_PARTY_VENDOR_MACROMILL`", + "description": "Optional. The third-party vendors measuring brand lift. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR` * `THIRD_PARTY_VENDOR_INTAGE` * `THIRD_PARTY_VENDOR_NIELSEN` * `THIRD_PARTY_VENDOR_MACROMILL` *Warning*: Starting **July 13, 2026**, this field will no longer support `THIRD_PARTY_VENDOR_NIELSEN`.", "items": { "$ref": "ThirdPartyVendorConfig" }, diff --git a/displayvideo/v4/displayvideo-gen.go b/displayvideo/v4/displayvideo-gen.go index 7a9029a30ff..3aba29d99e0 100644 --- a/displayvideo/v4/displayvideo-gen.go +++ b/displayvideo/v4/displayvideo-gen.go @@ -965,9 +965,7 @@ type AdGroup struct { // in-stream and bumper ads. // "AD_GROUP_FORMAT_MASTHEAD" - Masthead Ad that is surfaced on the top slot // on the YouTube homepage. - // "AD_GROUP_FORMAT_DEMAND_GEN" - Demand Gen ads. Retrieval and management of - // Demand Gen resources is currently rolling out. This field will be available - // to all partners by *June 24, 2026*. + // "AD_GROUP_FORMAT_DEMAND_GEN" - Demand Gen ads. AdGroupFormat string `json:"adGroupFormat,omitempty"` // AdGroupId: Output only. The unique ID of the ad group. Assigned by the // system. @@ -1061,32 +1059,22 @@ type AdGroupAd struct { BumperAd *BumperAd `json:"bumperAd,omitempty"` // DcmTrackingInfo: Optional. The DCM tracking ad info. Only valid for Demand // Gen ads. To remove the DCM tracking ad info, please leave this field empty. - // Retrieval and management of Demand Gen resources is currently rolling out. - // This field will be available to all partners by *June 24, 2026*. DcmTrackingInfo *DcmTrackingInfo `json:"dcmTrackingInfo,omitempty"` // DemandGenCarouselAd: Details of a Demand Gen carousel ad // (//support.google.com/displayvideo/answer/15598924?&sjid=11207068802760924844 - // -NC#CarouselAd). Retrieval and management of Demand Gen resources is - // currently rolling out. This field will be available to all partners by *June - // 24, 2026*. + // -NC#CarouselAd). DemandGenCarouselAd *DemandGenCarouselAd `json:"demandGenCarouselAd,omitempty"` // DemandGenImageAd: Details of a Demand Gen image ad // (//support.google.com/displayvideo/answer/15598924?&sjid=11207068802760924844 - // -NC#ImageAd). Retrieval and management of Demand Gen resources is currently - // rolling out. This field will be available to all partners by *June 24, - // 2026*. + // -NC#ImageAd). DemandGenImageAd *DemandGenImageAd `json:"demandGenImageAd,omitempty"` // DemandGenProductAd: Details of a Demand Gen product ad // (//support.google.com/displayvideo/answer/15598924?&sjid=11207068802760924844 - // -NC#Product-onlyAd). Retrieval and management of Demand Gen resources is - // currently rolling out. This field will be available to all partners by *June - // 24, 2026*. + // -NC#Product-onlyAd). DemandGenProductAd *DemandGenProductAd `json:"demandGenProductAd,omitempty"` // DemandGenVideoAd: Details of a Demand Gen video ad // (//support.google.com/displayvideo/answer/15598924?&sjid=11207068802760924844 - // -NC#VideoAd). Retrieval and management of Demand Gen resources is currently - // rolling out. This field will be available to all partners by *June 24, - // 2026*. + // -NC#VideoAd). DemandGenVideoAd *DemandGenVideoAd `json:"demandGenVideoAd,omitempty"` // DisplayName: Required. The display name of the ad. Must be UTF-8 encoded // with a maximum size of 255 bytes. @@ -2167,6 +2155,15 @@ type AdvancedProductTargeting struct { // "GENDER_FEMALE" - The audience gender is female. // "GENDER_UNKNOWN" - The audience gender is unknown. Genders []string `json:"genders,omitempty"` + // Network: Optional. The network to target. + // + // Possible values: + // "PLANNABLE_NETWORK_UNSPECIFIED" - Not specified. + // "PLANNABLE_NETWORK_YOUTUBE" - YouTube. + // "PLANNABLE_NETWORK_GOOGLE_VIDEO_PARTNERS" - Google Video Partners. + // "PLANNABLE_NETWORK_YOUTUBE_AND_GOOGLE_VIDEO_PARTNERS" - YouTube and Google + // Video Partners. + Network string `json:"network,omitempty"` // PlannableLocationIds: Optional. Plannable location IDs to target. PlannableLocationIds googleapi.Int64s `json:"plannableLocationIds,omitempty"` // SurfaceTargetingSettings: Optional. Plannable surfaces to target. @@ -6144,28 +6141,30 @@ func (s Consent) MarshalJSON() ([]byte, error) { // ContactInfo: Contact information defining a Customer Match audience member. type ContactInfo struct { - // CountryCode: Country code of the member. Must also be set with the following - // fields: * hashed_first_name * hashed_last_name * zip_codes + // CountryCode: Optional. Country code of the member. Must also be set with the + // following fields: * country_code * hashed_first_name * hashed_last_name * + // zip_codes CountryCode string `json:"countryCode,omitempty"` - // HashedEmails: A list of SHA256 hashed email of the member. Before hashing, - // remove all whitespace and make sure the string is all lowercase. + // HashedEmails: Optional. A list of SHA256 hashed email of the member. Before + // hashing, remove all whitespace and make sure the string is all lowercase. HashedEmails []string `json:"hashedEmails,omitempty"` - // HashedFirstName: SHA256 hashed first name of the member. Before hashing, - // remove all whitespace and make sure the string is all lowercase. Must also - // be set with the following fields: * country_code * hashed_last_name * - // zip_codes + // HashedFirstName: Optional. SHA256 hashed first name of the member. Before + // hashing, remove all whitespace and make sure the string is all lowercase. + // Must also be set with the following fields: * country_code * + // hashed_last_name * zip_codes HashedFirstName string `json:"hashedFirstName,omitempty"` - // HashedLastName: SHA256 hashed last name of the member. Before hashing, - // remove all whitespace and make sure the string is all lowercase. Must also - // be set with the following fields: * country_code * hashed_first_name * - // zip_codes + // HashedLastName: Optional. SHA256 hashed last name of the member. Before + // hashing, remove all whitespace and make sure the string is all lowercase. + // Must also be set with the following fields: * country_code * + // hashed_first_name * zip_codes HashedLastName string `json:"hashedLastName,omitempty"` - // HashedPhoneNumbers: A list of SHA256 hashed phone numbers of the member. - // Before hashing, all phone numbers must be formatted using the E.164 format - // (//en.wikipedia.org/wiki/E.164) and include the country calling code. + // HashedPhoneNumbers: Optional. A list of SHA256 hashed phone numbers of the + // member. Before hashing, all phone numbers must be formatted using the E.164 + // format (https://en.wikipedia.org/wiki/E.164) and include the country calling + // code. HashedPhoneNumbers []string `json:"hashedPhoneNumbers,omitempty"` - // ZipCodes: A list of zip codes of the member. Must also be set with the - // following fields: * country_code * hashed_first_name * hashed_last_name + // ZipCodes: Optional. A list of zip codes of the member. Must also be set with + // the following fields: * country_code * hashed_first_name * hashed_last_name ZipCodes []string `json:"zipCodes,omitempty"` // ForceSendFields is a list of field names (e.g. "CountryCode") to // unconditionally include in API requests. By default, fields with empty or @@ -6193,9 +6192,9 @@ type ContactInfoList struct { // ad_user_data or ad_personalization fields are set to // `CONSENT_STATUS_DENIED`, the request will return an error. Consent *Consent `json:"consent,omitempty"` - // ContactInfos: A list of ContactInfo objects defining Customer Match audience - // members. The size of members after splitting the contact_infos mustn't be - // greater than 500,000. + // ContactInfos: Optional. A list of ContactInfo objects defining Customer + // Match audience members. The size of members after splitting the + // contact_infos mustn't be greater than 500,000. ContactInfos []*ContactInfo `json:"contactInfos,omitempty"` // ForceSendFields is a list of field names (e.g. "Consent") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -6731,9 +6730,7 @@ type ConversionCountingConfig struct { // conversions are counted. The Primary model can be set by you for a // floodlight config or group. More details here // (https://support.google.com/displayvideo/answer/7409983). Only applicable to - // Demand Gen line items. Retrieval and management of Demand Gen resources is - // currently rolling out. This field will be available to all partners by *June - // 24, 2026*. + // Demand Gen line items. PrimaryAttributionModelId int64 `json:"primaryAttributionModelId,omitempty,string"` // ForceSendFields is a list of field names (e.g. "FloodlightActivityConfigs") // to unconditionally include in API requests. By default, fields with empty or @@ -8354,7 +8351,10 @@ func (s DemandGenBiddingStrategy) MarshalJSON() ([]byte, error) { // DemandGenCarouselAd: Details for a Demand Gen carousel ad. type DemandGenCarouselAd struct { - // BusinessName: Required. The business name shown on the ad. + // BusinessName: Required. The business name shown on the ad. *Warning*: + // Starting **July 13, 2026**, this setting will no longer be required if a + // default value is set at the advertiser level. If left unset, the default + // value will be applied. BusinessName string `json:"businessName,omitempty"` // Cards: Required. The list of cards shown on the ad. Cards []*CarouselCard `json:"cards,omitempty"` @@ -8370,7 +8370,10 @@ type DemandGenCarouselAd struct { FinalUrlSuffix string `json:"finalUrlSuffix,omitempty"` // Headline: Required. The headline of the ad. Headline string `json:"headline,omitempty"` - // Logo: Required. The logo image used by this ad. + // Logo: Required. The logo image used by this ad. *Warning*: Starting **July + // 13, 2026**, this setting will no longer be required if a default value is + // set at the advertiser level. If left unset, the default value will be + // applied. Logo *ImageAsset `json:"logo,omitempty"` // TrackingUrl: Output only. The URL address loaded in the background for // tracking purposes. @@ -8398,7 +8401,10 @@ func (s DemandGenCarouselAd) MarshalJSON() ([]byte, error) { // DemandGenImageAd: Details for a Demand Gen image ad. type DemandGenImageAd struct { - // BusinessName: Required. The business name shown on the ad. + // BusinessName: Required. The business name shown on the ad. *Warning*: + // Starting **July 13, 2026**, this setting will no longer be required if a + // default value is set at the advertiser level. If left unset, the default + // value will be applied. BusinessName string `json:"businessName,omitempty"` // CallToAction: Required. The call-to-action button shown on the ad. CallToAction string `json:"callToAction,omitempty"` @@ -8417,7 +8423,10 @@ type DemandGenImageAd struct { FinalUrlSuffix string `json:"finalUrlSuffix,omitempty"` // Headlines: Required. The list of headlines shown on the ad. Headlines []string `json:"headlines,omitempty"` - // LogoImages: The list of logo images shown on the ad. + // LogoImages: The list of logo images shown on the ad. *Warning*: Starting + // **July 13, 2026**, this setting will no longer be required if a default + // value is set at the advertiser level. If left unset, the default value will + // be applied. LogoImages []*ImageAsset `json:"logoImages,omitempty"` // MarketingImages: The list of marketing images shown on the ad. MarketingImages []*ImageAsset `json:"marketingImages,omitempty"` @@ -8452,7 +8461,10 @@ func (s DemandGenImageAd) MarshalJSON() ([]byte, error) { // DemandGenProductAd: Details for a Demand Gen product ad. type DemandGenProductAd struct { - // BusinessName: Required. The business name shown on the ad. + // BusinessName: Required. The business name shown on the ad. *Warning*: + // Starting **July 13, 2026**, this setting will no longer be required if a + // default value is set at the advertiser level. If left unset, the default + // value will be applied. BusinessName string `json:"businessName,omitempty"` // CallToAction: Required. The call-to-action button shown on the ad. The // supported values are: * `AUTOMATED` * `APPLY_NOW` * `BOOK_NOW` * @@ -8498,7 +8510,10 @@ type DemandGenProductAd struct { FinalUrlSuffix string `json:"finalUrlSuffix,omitempty"` // Headline: Required. The headline of the ad. Headline string `json:"headline,omitempty"` - // Logo: Required. The logo image used by this ad. + // Logo: Required. The logo image used by this ad. *Warning*: Starting **July + // 13, 2026**, this setting will no longer be required if a default value is + // set at the advertiser level. If left unset, the default value will be + // applied. Logo *ImageAsset `json:"logo,omitempty"` // TrackingUrl: Output only. The URL address loaded in the background for // tracking purposes. @@ -8557,7 +8572,10 @@ func (s DemandGenSettings) MarshalJSON() ([]byte, error) { // DemandGenVideoAd: Details for a Demand Gen video ad. type DemandGenVideoAd struct { - // BusinessName: Required. The business name shown on the ad. + // BusinessName: Required. The business name shown on the ad. *Warning*: + // Starting **July 13, 2026**, this setting will no longer be required if a + // default value is set at the advertiser level. If left unset, the default + // value will be applied. BusinessName string `json:"businessName,omitempty"` // CallToAction: Required. The call-to-action button shown on the ad. The // supported values are: * `AUTOMATED` * `LEARN_MORE` * `GET_QUOTE` * @@ -8609,7 +8627,10 @@ type DemandGenVideoAd struct { FinalUrlSuffix string `json:"finalUrlSuffix,omitempty"` // Headlines: Required. The list of headlines shown on the ad. Headlines []string `json:"headlines,omitempty"` - // Logo: Required. The logo image used by this ad. + // Logo: Required. The logo image used by this ad. *Warning*: Starting **July + // 13, 2026**, this setting will no longer be required if a default value is + // set at the advertiser level. If left unset, the default value will be + // applied. Logo *ImageAsset `json:"logo,omitempty"` // LongHeadlines: Required. The list of long headlines shown on the ad. LongHeadlines []string `json:"longHeadlines,omitempty"` @@ -9295,7 +9316,7 @@ func (s DuplicateLineItemResponse) MarshalJSON() ([]byte, error) { } // EditCustomerMatchMembersRequest: Request message for -// FirstAndThirdPartyAudienceService.EditCustomerMatchMembers. +// FirstPartyAndPartnerAudienceService.EditCustomerMatchMembers. type EditCustomerMatchMembersRequest struct { // AddedContactInfoList: Input only. A list of contact information to define // the members to be added. @@ -9331,7 +9352,7 @@ func (s EditCustomerMatchMembersRequest) MarshalJSON() ([]byte, error) { } // EditCustomerMatchMembersResponse: The response of -// FirstAndThirdPartyAudienceService.EditCustomerMatchMembers. +// FirstPartyAndPartnerAudienceService.EditCustomerMatchMembers. type EditCustomerMatchMembersResponse struct { // FirstPartyAndPartnerAudienceId: Required. The ID of the updated Customer // Match FirstPartyAndPartnerAudience. @@ -9476,46 +9497,6 @@ func (s EditInventorySourceReadWriteAccessorsRequestAdvertisersUpdate) MarshalJS return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// EffectiveFrequencyBreakdown: A breakdown of the number of unique people -// reached at a given effective frequency. -type EffectiveFrequencyBreakdown struct { - // EffectiveCoviewReach: The number of unique individuals, including - // co-viewers, exactly matching the targeting that were served the ad at least - // the number of times dictated by the effective_frequency. - EffectiveCoviewReach int64 `json:"effectiveCoviewReach,omitempty,string"` - // EffectiveFrequency: The set effective frequency. - EffectiveFrequency int64 `json:"effectiveFrequency,omitempty"` - // OnTargetEffectiveCoviewReach: The total number of unique individuals, - // including co-viewers that were served the ad at least the number of times - // dictated by the effective_frequency. This includes individuals that may fall - // outside of targeting. - OnTargetEffectiveCoviewReach int64 `json:"onTargetEffectiveCoviewReach,omitempty,string"` - // OnTargetReach: The number of unique individuals exactly matching the - // targeting that were served the ad at least the number of times dictated by - // the effective_frequency. - OnTargetReach int64 `json:"onTargetReach,omitempty,string"` - // TotalReach: The total number of unique individuals that were served the ad - // at least the number of times dictated by the effective_frequency. This - // includes individuals that may fall outside of targeting. - TotalReach int64 `json:"totalReach,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "EffectiveCoviewReach") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EffectiveCoviewReach") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s EffectiveFrequencyBreakdown) MarshalJSON() ([]byte, error) { - type NoMethod EffectiveFrequencyBreakdown - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use it as // the request or the response type of an API method. For instance: service Foo @@ -10190,9 +10171,10 @@ type FirstPartyAndPartnerAudience struct { // customers to known Mobile device IDs. // "CUSTOMER_MATCH_USER_ID" - Audience was generated through matching // customers to known User IDs. - // "ACTIVITY_BASED" - Audience was created based on campaign activity. - // "FREQUENCY_CAP" - Audience was created based on excluding the number of - // impressions they were served. + // "ACTIVITY_BASED" - Deprecated: Audience was created based on campaign + // activity. + // "FREQUENCY_CAP" - Deprecated: Audience was created based on excluding the + // number of impressions they were served. // "TAG_BASED" - Audience was created based on custom variables attached to // pixel. // "YOUTUBE_USERS" - Audience was created based on past interactions with @@ -10653,21 +10635,11 @@ type GenerateReachForecastRequest struct { CampaignDuration *CampaignDuration `json:"campaignDuration,omitempty"` // CurrencyCode: Required. The currency code for the plan in ISO 4217 format. CurrencyCode string `json:"currencyCode,omitempty"` - // EffectiveFrequencyBreakdownLimit: Optional. The highest minimum effective - // frequency to include in - // PlannedProductForecast.effective_frequency_breakdowns. Must be between 1 and - // 10, inclusive. If not specified, - // PlannedProductForecast.effective_frequency_breakdowns will not be populated. - // If set, this value will also be used as the minimum effective frequency for - // reach metrics reporting. This field cannot be combined with the - // min_effective_frequency field. - EffectiveFrequencyBreakdownLimit int64 `json:"effectiveFrequencyBreakdownLimit,omitempty"` // MinEffectiveFrequency: Optional. The minimum effective frequency for the // reported reach metrics. This is the smallest number of times a customer must // be exposed to the ad for it to be considered effective. This setting only // impacts reporting. Must be between 1 and 10, inclusive. If not specified, a - // default of 1 is applied. This field cannot be combined with - // effective_frequency_breakdown_limit. + // default of 1 is applied. MinEffectiveFrequency int64 `json:"minEffectiveFrequency,omitempty"` // PlannedProducts: Required. The list of line items to include in the // forecast. @@ -12665,9 +12637,7 @@ type LineItem struct { // CreativeIds: The IDs of the creatives associated with the line item. CreativeIds googleapi.Int64s `json:"creativeIds,omitempty"` // DemandGenSettings: Optional. Settings specific to Demand Gen line items. - // Only applicable to Demand Gen line items. Retrieval and management of Demand - // Gen resources is currently rolling out. This field will be available to all - // partners by *June 24, 2026*. + // Only applicable to Demand Gen line items. DemandGenSettings *DemandGenSettings `json:"demandGenSettings,omitempty"` // DisplayName: Required. The display name of the line item. Must be UTF-8 // encoded with a maximum size of 240 bytes. @@ -12783,9 +12753,7 @@ type LineItem struct { // "LINE_ITEM_TYPE_VIDEO_OUT_OF_HOME" - Video ads served on // digital-out-of-home inventory. Line items of this type and their targeting // cannot be created or updated using the API. - // "LINE_ITEM_TYPE_DEMAND_GEN" - Demand Gen ads. Retrieval and management of - // Demand Gen resources is currently rolling out. This field will be available - // to all partners by *June 24, 2026*. + // "LINE_ITEM_TYPE_DEMAND_GEN" - Demand Gen ads. LineItemType string `json:"lineItemType,omitempty"` // MobileApp: The mobile app promoted by the line item. This is applicable only // when line_item_type is either `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or @@ -14318,9 +14286,9 @@ type MobileDeviceIdList struct { // ad_user_data or ad_personalization fields are set to // `CONSENT_STATUS_DENIED`, the request will return an error. Consent *Consent `json:"consent,omitempty"` - // MobileDeviceIds: A list of mobile device IDs defining Customer Match - // audience members. The size of mobile_device_ids mustn't be greater than - // 500,000. + // MobileDeviceIds: Optional. A list of mobile device IDs defining Customer + // Match audience members. The size of mobile_device_ids mustn't be greater + // than 500,000. MobileDeviceIds []string `json:"mobileDeviceIds,omitempty"` // ForceSendFields is a list of field names (e.g. "Consent") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -15645,6 +15613,9 @@ type PlannableLocation struct { GeoRegionType string `json:"geoRegionType,omitempty"` // Name: Output only. The resource name of the plannable location. Name string `json:"name,omitempty"` + // ParentPlannableLocationId: Output only. The parent plannable location ID, + // for example the country ID for subgeos. + ParentPlannableLocationId int64 `json:"parentPlannableLocationId,omitempty,string"` // PlannableLocationId: Output only. The plannable location ID. PlannableLocationId int64 `json:"plannableLocationId,omitempty,string"` // RegionCode: Output only. The region code of the location, for example "DZ" @@ -15668,6 +15639,49 @@ func (s PlannableLocation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// PlannableProductCoreAttributes: Core attributes for a plannable product. +type PlannableProductCoreAttributes struct { + // BuyingMethod: Output only. The buying method. + // + // Possible values: + // "PLANNABLE_BUYING_METHOD_UNSPECIFIED" - Not specified. + // "PLANNABLE_BUYING_METHOD_AUCTION" - Auction. + // "PLANNABLE_BUYING_METHOD_RESERVATION" - Reservation. + BuyingMethod string `json:"buyingMethod,omitempty"` + // CostModel: Output only. The cost model. + // + // Possible values: + // "PLANNABLE_COST_MODEL_UNSPECIFIED" - Not specified. + // "PLANNABLE_COST_MODEL_CPM" - CPM. + // "PLANNABLE_COST_MODEL_CPV" - CPV. + // "PLANNABLE_COST_MODEL_CPC" - CPC. + // "PLANNABLE_COST_MODEL_CPA" - CPA. + CostModel string `json:"costModel,omitempty"` + // ProductCategory: Output only. The product category. + // + // Possible values: + // "PLANNABLE_PRODUCT_CATEGORY_UNSPECIFIED" - Not specified. + // "YOUTUBE" - YouTube. + // "OPEN_AUCTION" - Open Auction. + ProductCategory string `json:"productCategory,omitempty"` + // ForceSendFields is a list of field names (e.g. "BuyingMethod") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BuyingMethod") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PlannableProductCoreAttributes) MarshalJSON() ([]byte, error) { + type NoMethod PlannableProductCoreAttributes + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // PlannableTargeting: Targeting capabilities for a given product. type PlannableTargeting struct { // AgeRanges: Output only. Allowed plannable age ranges for the product. Actual @@ -15708,6 +15722,9 @@ type PlannableTargeting struct { // "PLANNABLE_AGE_RANGE_55_65_UP" - 55 to 65+ years old. // "PLANNABLE_AGE_RANGE_65_UP" - 65+ years old. AgeRanges []string `json:"ageRanges,omitempty"` + // DefaultYoutubeSelectLineup: Output only. The default YouTube Select Lineup + // for this product, if applicable. + DefaultYoutubeSelectLineup *YouTubeSelectLineUp `json:"defaultYoutubeSelectLineup,omitempty"` // Devices: Output only. Targetable devices for the ad product. // // Possible values: @@ -15730,7 +15747,7 @@ type PlannableTargeting struct { // "GENDER_FEMALE" - The audience gender is female. // "GENDER_UNKNOWN" - The audience gender is unknown. Genders []string `json:"genders,omitempty"` - // Networks: Output only. Targetable networks for the ad product. + // Network: Output only. Targetable network for the ad product. // // Possible values: // "PLANNABLE_NETWORK_UNSPECIFIED" - Not specified. @@ -15738,7 +15755,7 @@ type PlannableTargeting struct { // "PLANNABLE_NETWORK_GOOGLE_VIDEO_PARTNERS" - Google Video Partners. // "PLANNABLE_NETWORK_YOUTUBE_AND_GOOGLE_VIDEO_PARTNERS" - YouTube and Google // Video Partners. - Networks []string `json:"networks,omitempty"` + Network string `json:"network,omitempty"` // SurfaceTargetingCombinations: Output only. Targetable surface combinations // for the ad product. SurfaceTargetingCombinations *SurfaceTargetingCombinations `json:"surfaceTargetingCombinations,omitempty"` @@ -15865,8 +15882,6 @@ func (s PlannedProduct) MarshalJSON() ([]byte, error) { // PlannedProductForecast: Performance metrics for a forecast point. type PlannedProductForecast struct { - // EffectiveFrequencyBreakdowns: A list of effective frequency breakdowns. - EffectiveFrequencyBreakdowns []*EffectiveFrequencyBreakdown `json:"effectiveFrequencyBreakdowns,omitempty"` // OnTargetImpressions: Number of on-target impressions. OnTargetImpressions int64 `json:"onTargetImpressions,omitempty,string"` // OnTargetReach: Number of unique people reached that match the on-target @@ -15880,15 +15895,15 @@ type PlannedProductForecast struct { TrueviewViews int64 `json:"trueviewViews,omitempty,string"` // ViewableImpressions: Number of viewable impressions. ViewableImpressions int64 `json:"viewableImpressions,omitempty,string"` - // ForceSendFields is a list of field names (e.g. - // "EffectiveFrequencyBreakdowns") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. + // ForceSendFields is a list of field names (e.g. "OnTargetImpressions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EffectiveFrequencyBreakdowns") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "OnTargetImpressions") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -16195,6 +16210,9 @@ type ProductMetadata struct { // PlannableProductCode: Output only. The plannable product code (e.g. // "YOUTUBE_REACH_MIX"). PlannableProductCode string `json:"plannableProductCode,omitempty"` + // PlannableProductCoreAttributes: Output only. Core attributes for this + // product. + PlannableProductCoreAttributes *PlannableProductCoreAttributes `json:"plannableProductCoreAttributes,omitempty"` // PlannableProductDescription: Output only. The plain-text description of the // ad product. PlannableProductDescription string `json:"plannableProductDescription,omitempty"` @@ -17327,6 +17345,22 @@ type SurfaceTargetingCombinations struct { // "PLANNABLE_SURFACE_IN_STREAM_NON_SKIPPABLE_THIRTY_SECONDS" - In-stream // non-skippable (30 seconds). AvailableSurfaceTypes []string `json:"availableSurfaceTypes,omitempty"` + // DefaultSurfaceTypes: Output only. The default surface types for this + // product. + // + // Possible values: + // "PLANNABLE_SURFACE_UNSPECIFIED" - Not specified. + // "PLANNABLE_SURFACE_IN_FEED" - In-feed. + // "PLANNABLE_SURFACE_IN_STREAM_BUMPER" - In-stream bumper. + // "PLANNABLE_SURFACE_IN_STREAM_NON_SKIPPABLE" - In-stream non-skippable. + // "PLANNABLE_SURFACE_IN_STREAM_SKIPPABLE" - In-stream skippable. + // "PLANNABLE_SURFACE_SHORTS" - Shorts. + // "PLANNABLE_SURFACE_DISCOVER_FEED" - Discover feed. + // "PLANNABLE_SURFACE_GMAIL" - Gmail. + // "PLANNABLE_SURFACE_GOOGLE_DISPLAY_NETWORK" - Google Display Network. + // "PLANNABLE_SURFACE_IN_STREAM_NON_SKIPPABLE_THIRTY_SECONDS" - In-stream + // non-skippable (30 seconds). + DefaultSurfaceTypes []string `json:"defaultSurfaceTypes,omitempty"` // ValidSurfaceCombinations: Output only. Valid combinations of surfaces that // can be selected together. ValidSurfaceCombinations []*SurfaceTargetingCombination `json:"validSurfaceCombinations,omitempty"` @@ -17551,9 +17585,7 @@ type TargetingExpansionConfig struct { EnableOptimizedTargeting bool `json:"enableOptimizedTargeting,omitempty"` // ExcludeDemographicExpansion: Optional. Whether to exclude demographic // expansion for Optimized Targeting. This field can only be set for Demand Gen - // ad groups. Retrieval and management of Demand Gen resources is currently - // rolling out. This field will be available to all partners by *June 24, - // 2026*. + // ad groups. ExcludeDemographicExpansion bool `json:"excludeDemographicExpansion,omitempty"` // ForceSendFields is a list of field names (e.g. "AudienceExpansionLevel") to // unconditionally include in API requests. By default, fields with empty or @@ -17794,7 +17826,8 @@ type ThirdPartyMeasurementConfigs struct { // lift. The following third-party vendors are applicable: * // `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR` * // `THIRD_PARTY_VENDOR_INTAGE` * `THIRD_PARTY_VENDOR_NIELSEN` * - // `THIRD_PARTY_VENDOR_MACROMILL` + // `THIRD_PARTY_VENDOR_MACROMILL` *Warning*: Starting **July 13, 2026**, this + // field will no longer support `THIRD_PARTY_VENDOR_NIELSEN`. BrandLiftVendorConfigs []*ThirdPartyVendorConfig `json:"brandLiftVendorConfigs,omitempty"` // BrandSafetyVendorConfigs: Optional. The third-party vendors measuring brand // safety. The following third-party vendors are applicable: * @@ -21080,8 +21113,7 @@ type AdvertisersAdGroupAdsCreateCall struct { } // Create: Creates an ad group ad. This method is only supported for Demand Gen -// ads. Retrieval and management of Demand Gen resources is currently rolling -// out. This method will be available to all partners by *June 24, 2026*. +// ads. // // - advertiserId: Output only. The unique ID of the advertiser the ad belongs // to. @@ -21186,8 +21218,7 @@ type AdvertisersAdGroupAdsDeleteCall struct { } // Delete: Deletes an ad group ad. This method is only supported for Demand Gen -// ads. Retrieval and management of Demand Gen resources is currently rolling -// out. This method will be available to all partners by *June 24, 2026*. +// ads. // // - adGroupAdId: The ID of the ad to delete. Only Demand Gen ads are // supported. @@ -21581,8 +21612,7 @@ type AdvertisersAdGroupAdsPatchCall struct { } // Patch: Updates an ad group ad. This method is only supported for Demand Gen -// ads. Retrieval and management of Demand Gen resources is currently rolling -// out. This method will be available to all partners by *June 24, 2026*. +// ads. // // - adGroupAdId: Output only. The unique ID of the ad. Assigned by the system. // - advertiserId: Output only. The unique ID of the advertiser the ad belongs @@ -21703,9 +21733,7 @@ type AdvertisersAdGroupsBulkEditAssignedTargetingOptionsCall struct { // BulkEditAdGroupAssignedTargetingOptionsRequest.delete_requests from each ad // group, and then create the assigned targeting options provided in // BulkEditAdGroupAssignedTargetingOptionsRequest.create_requests. This method -// is only supported for Demand Gen ad groups. Retrieval and management of -// Demand Gen resources is currently rolling out. This method will be available -// to all partners by *June 24, 2026*. +// is only supported for Demand Gen ad groups. // // - advertiserId: The ID of the advertiser the ad groups belong to. func (r *AdvertisersAdGroupsService) BulkEditAssignedTargetingOptions(advertiserId int64, bulkeditadgroupassignedtargetingoptionsrequest *BulkEditAdGroupAssignedTargetingOptionsRequest) *AdvertisersAdGroupsBulkEditAssignedTargetingOptionsCall { @@ -22000,8 +22028,6 @@ type AdvertisersAdGroupsCreateCall struct { // Create: Creates a new ad group. Returns the newly created ad group if // successful. This method is only supported for Demand Gen ad groups. -// Retrieval and management of Demand Gen resources is currently rolling out. -// This method will be available to all partners by *June 24, 2026*. // // - advertiserId: Output only. The unique ID of the advertiser the ad group // belongs to. @@ -22107,8 +22133,6 @@ type AdvertisersAdGroupsDeleteCall struct { // Delete: Deletes a AdGroup. Returns error code `NOT_FOUND` if the ad group // does not exist. This method is only supported for Demand Gen ad groups. -// Retrieval and management of Demand Gen resources is currently rolling out. -// This method will be available to all partners by *June 24, 2026*. // // - adGroupId: The ID of the ad group to delete. // - advertiserId: The ID of the advertiser this ad group belongs to. @@ -22502,8 +22526,6 @@ type AdvertisersAdGroupsPatchCall struct { // Patch: Updates an existing ad group. Returns the updated ad group if // successful. This method is only supported for Demand Gen ad groups. -// Retrieval and management of Demand Gen resources is currently rolling out. -// This method will be available to all partners by *June 24, 2026*. // // - adGroupId: Output only. The unique ID of the ad group. Assigned by the // system. @@ -22622,9 +22644,7 @@ type AdvertisersAdGroupsTargetingTypesAssignedTargetingOptionsCreateCall struct // Create: Assigns a targeting option to an ad group. Returns the assigned // targeting option if successful. This method is only supported for Demand Gen -// ad groups. Retrieval and management of Demand Gen resources is currently -// rolling out. This method will be available to all partners by *June 24, -// 2026*. +// ad groups. // // - adGroupId: The ID of the ad group the assigned targeting option will // belong to. @@ -22747,9 +22767,7 @@ type AdvertisersAdGroupsTargetingTypesAssignedTargetingOptionsDeleteCall struct // Delete: Deletes an assigned targeting option from an ad group. This method // is only supported for Demand Gen ad groups with the AdGroupFormat -// `AD_GROUP_FORMAT_DEMAND_GEN`. Retrieval and management of Demand Gen -// resources is currently rolling out. This method will be available to all -// partners by *June 24, 2026*. +// `AD_GROUP_FORMAT_DEMAND_GEN`. // // - adGroupId: The ID of the ad group the assigned targeting option belongs // to. @@ -32079,13 +32097,15 @@ func (r *AdvertisersReachForecastService) RetrievePlannableUserLists(advertiserI // user list properties. Supported syntax: * Filter expressions are made up of // one or more restrictions. * Restrictions can be combined by `AND` or `OR` // logical operators. * A restriction has the form of `{field} {operator} -// {value}`. * The `updateTime` field must use the `GREATER THAN OR EQUAL TO -// (>=)` or `LESS THAN OR EQUAL TO (<=)` operators. * All other fields must use -// the `EQUALS (=)` operator. Supported fields: * `plannableStatus` Examples: * -// All plannable user lists: `plannableStatus="PLANNABLE" The length of this -// field should be no more than 500 characters. Reference our filter `LIST` -// requests (/display-video/api/guides/how-tos/filters) guide for more -// information. +// {value}`. * The `displayName` field must use the `HAS (:)` operator. * All +// other fields must use the `EQUALS (=)` operator. Supported fields: * +// `plannableStatus` * `displayName` * `userListType` * `name` Examples: * All +// plannable user lists: `plannableStatus="PLANNABLE" * Plannable user lists +// with display name containing "Shopping": `plannableStatus="PLANNABLE" AND +// displayName:"Shopping" * First party user lists: +// `userListType="FIRST_PARTY" The length of this field should be no more than +// 500 characters. Reference our filter `LIST` requests +// (/display-video/api/guides/how-tos/filters) guide for more information. func (c *AdvertisersReachForecastRetrievePlannableUserListsCall) Filter(filter string) *AdvertisersReachForecastRetrievePlannableUserListsCall { c.urlParams_.Set("filter", filter) return c diff --git a/gkebackup/v1/gkebackup-api.json b/gkebackup/v1/gkebackup-api.json index 75d62b47ef7..ad31c93a16c 100644 --- a/gkebackup/v1/gkebackup-api.json +++ b/gkebackup/v1/gkebackup-api.json @@ -2560,7 +2560,7 @@ } } }, - "revision": "20260608", + "revision": "20260624", "rootUrl": "https://gkebackup.googleapis.com/", "schemas": { "AuditConfig": { @@ -2697,7 +2697,7 @@ "type": "object" }, "BDRBackupRestoreJobLog": { - "description": "Log entry for Backup and Restore Job for resources using BackupPlan based protection. Next Id: 25", + "description": "Log entry for Backup and Restore Job for resources using BackupPlan based protection. Next Id: 26", "id": "BDRBackupRestoreJobLog", "properties": { "backupConsistencyTime": { @@ -2799,6 +2799,10 @@ "format": "google-datetime", "type": "string" }, + "storageTier": { + "description": "The storage tier associated with the backup.", + "type": "string" + }, "targetResourceType": { "description": "The target resource type for restore jobs.", "type": "string" diff --git a/gkebackup/v1/gkebackup-gen.go b/gkebackup/v1/gkebackup-gen.go index 6d93c80b18d..ffbdf32405a 100644 --- a/gkebackup/v1/gkebackup-gen.go +++ b/gkebackup/v1/gkebackup-gen.go @@ -445,7 +445,7 @@ func (s BDRBackupPlanJobLog) MarshalJSON() ([]byte, error) { } // BDRBackupRestoreJobLog: Log entry for Backup and Restore Job for resources -// using BackupPlan based protection. Next Id: 25 +// using BackupPlan based protection. Next Id: 26 type BDRBackupRestoreJobLog struct { // BackupConsistencyTime: Backup consistency time. BackupConsistencyTime string `json:"backupConsistencyTime,omitempty"` @@ -500,6 +500,8 @@ type BDRBackupRestoreJobLog struct { SourceResourceName string `json:"sourceResourceName,omitempty"` // StartTime: Start time of the job. StartTime string `json:"startTime,omitempty"` + // StorageTier: The storage tier associated with the backup. + StorageTier string `json:"storageTier,omitempty"` // TargetResourceType: The target resource type for restore jobs. TargetResourceType string `json:"targetResourceType,omitempty"` // ForceSendFields is a list of field names (e.g. "BackupConsistencyTime") to diff --git a/iam/v1/iam-api.json b/iam/v1/iam-api.json index a3dfbedf707..26c1b92a462 100644 --- a/iam/v1/iam-api.json +++ b/iam/v1/iam-api.json @@ -4257,7 +4257,7 @@ } } }, - "revision": "20260320", + "revision": "20260702", "rootUrl": "https://iam.googleapis.com/", "schemas": { "AccessRestrictions": { @@ -5926,7 +5926,7 @@ "type": "object" }, "ServiceAccountKey": { - "description": "Represents a service account key. A service account has two sets of key-pairs: user-managed, and system-managed. User-managed key-pairs can be created and deleted by users. Users are responsible for rotating these keys periodically to ensure security of their service accounts. Users retain the private key of these key-pairs, and Google retains ONLY the public key. System-managed keys are automatically rotated by Google, and are used for signing for a maximum of two weeks. The rotation process is probabilistic, and usage of the new key will gradually ramp up and down over the key's lifetime. If you cache the public key set for a service account, we recommend that you update the cache every 15 minutes. User-managed keys can be added and removed at any time, so it is important to update the cache frequently. For Google-managed keys, Google will publish a key at least 6 hours before it is first used for signing and will keep publishing it for at least 6 hours after it was last used for signing. Public keys for all service accounts are also published at the OAuth2 Service Account API.", + "description": "Represents a service account key. A service account has two sets of key-pairs: user-managed and system-managed. System-managed keys are also called _Google-owned and managed keys_. User-managed key-pairs can be created and deleted by users. Users are responsible for rotating these keys periodically to ensure security of their service accounts. Users retain the private key of these key-pairs, and Google retains ONLY the public key. System-managed keys that are actively used for signing are rotated regularly according to [security best practices](https://docs.cloud.google.com/iam/docs/key-rotation#timing). The rotation process is probabilistic, and usage of the new key will gradually ramp up and down over the key's lifetime. If you cache the public key set for a service account, we recommend that you update the cache every 15 minutes. User-managed keys can be added and removed at any time, so it is important to update the cache frequently. For Google-managed keys, Google will publish a key at least 6 hours before it is first used for signing and will keep publishing it for at least 6 hours after it was last used for signing. Public keys for all service accounts are also published at the OAuth2 Service Account API.", "id": "ServiceAccountKey", "properties": { "disableReason": { diff --git a/iam/v1/iam-gen.go b/iam/v1/iam-gen.go index 99846305e38..d0faf37c002 100644 --- a/iam/v1/iam-gen.go +++ b/iam/v1/iam-gen.go @@ -3161,12 +3161,14 @@ func (s ServiceAccount) MarshalJSON() ([]byte, error) { } // ServiceAccountKey: Represents a service account key. A service account has -// two sets of key-pairs: user-managed, and system-managed. User-managed -// key-pairs can be created and deleted by users. Users are responsible for -// rotating these keys periodically to ensure security of their service -// accounts. Users retain the private key of these key-pairs, and Google -// retains ONLY the public key. System-managed keys are automatically rotated -// by Google, and are used for signing for a maximum of two weeks. The rotation +// two sets of key-pairs: user-managed and system-managed. System-managed keys +// are also called _Google-owned and managed keys_. User-managed key-pairs can +// be created and deleted by users. Users are responsible for rotating these +// keys periodically to ensure security of their service accounts. Users retain +// the private key of these key-pairs, and Google retains ONLY the public key. +// System-managed keys that are actively used for signing are rotated regularly +// according to security best practices +// (https://docs.cloud.google.com/iam/docs/key-rotation#timing). The rotation // process is probabilistic, and usage of the new key will gradually ramp up // and down over the key's lifetime. If you cache the public key set for a // service account, we recommend that you update the cache every 15 minutes. diff --git a/kmsinventory/v1/kmsinventory-api.json b/kmsinventory/v1/kmsinventory-api.json index 7210c89f327..58f39d6ca8a 100644 --- a/kmsinventory/v1/kmsinventory-api.json +++ b/kmsinventory/v1/kmsinventory-api.json @@ -306,7 +306,7 @@ } } }, - "revision": "20260308", + "revision": "20260705", "rootUrl": "https://kmsinventory.googleapis.com/", "schemas": { "GoogleCloudKmsInventoryV1ListCryptoKeysResponse": { @@ -537,7 +537,8 @@ "ASYMMETRIC_DECRYPT", "RAW_ENCRYPT_DECRYPT", "MAC", - "KEY_ENCAPSULATION" + "KEY_ENCAPSULATION", + "AES_WRAPPING" ], "enumDescriptions": [ "Not specified.", @@ -546,7 +547,8 @@ "CryptoKeys with this purpose may be used with AsymmetricDecrypt and GetPublicKey.", "CryptoKeys with this purpose may be used with RawEncrypt and RawDecrypt. This purpose is meant to be used for interoperable symmetric encryption and does not support automatic CryptoKey rotation.", "CryptoKeys with this purpose may be used with MacSign.", - "CryptoKeys with this purpose may be used with GetPublicKey and Decapsulate." + "CryptoKeys with this purpose may be used with GetPublicKey and Decapsulate.", + "CryptoKeys with this purpose may be used for AES key" ], "type": "string" }, @@ -615,7 +617,8 @@ "PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256", "PQ_SIGN_ML_DSA_44_EXTERNAL_MU", "PQ_SIGN_ML_DSA_65_EXTERNAL_MU", - "PQ_SIGN_ML_DSA_87_EXTERNAL_MU" + "PQ_SIGN_ML_DSA_87_EXTERNAL_MU", + "AES_256_KWP" ], "enumDescriptions": [ "Not specified.", @@ -664,7 +667,8 @@ "The post-quantum stateless hash-based digital signature algorithm, at security level 1. Randomized pre-hash version supporting SHA256 digests.", "The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 1. Randomized version supporting externally-computed message representatives.", "The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 3. Randomized version supporting externally-computed message representatives.", - "The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 5. Randomized version supporting externally-computed message representatives." + "The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 5. Randomized version supporting externally-computed message representatives.", + "AES key wrap with zero padding algorithm (RFC 5649). Can only be used by keys with purpose AES_WRAPPING." ], "readOnly": true, "type": "string" @@ -712,6 +716,11 @@ "readOnly": true, "type": "string" }, + "hsmTrusted": { + "description": "Output only. Field indicating that the key wrapping key is trusted. This field is only valid for key purpose AES_256_WRAPPING, and protection level HSM_SINGLE_TENANT.", + "readOnly": true, + "type": "boolean" + }, "importFailureReason": { "description": "Output only. The root cause of the most recent import failure. Only present if state is IMPORT_FAILED.", "readOnly": true, @@ -788,6 +797,10 @@ "This version was destroyed, and it may not be used or enabled again. However, Cloud KMS could not confirm that the corresponding key material residing in an external key manager was destroyed. Additional details can be found in CryptoKeyVersion.external_destruction_failure_reason." ], "type": "string" + }, + "trustedWrappingEnabled": { + "description": "Immutable. Field indicating that the key may be wrapped by a trusted key. This field can be set for all key purposes except ENCRYPT_DECRYPT, and is only valid for keys with protection level HSM_SINGLE_TENANT. This field can only be set at creation or import time via CreateCryptoKeyVersion, or ImportCryptoKeyVersion.", + "type": "boolean" } }, "type": "object" @@ -845,7 +858,8 @@ "PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256", "PQ_SIGN_ML_DSA_44_EXTERNAL_MU", "PQ_SIGN_ML_DSA_65_EXTERNAL_MU", - "PQ_SIGN_ML_DSA_87_EXTERNAL_MU" + "PQ_SIGN_ML_DSA_87_EXTERNAL_MU", + "AES_256_KWP" ], "enumDescriptions": [ "Not specified.", @@ -894,7 +908,8 @@ "The post-quantum stateless hash-based digital signature algorithm, at security level 1. Randomized pre-hash version supporting SHA256 digests.", "The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 1. Randomized version supporting externally-computed message representatives.", "The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 3. Randomized version supporting externally-computed message representatives.", - "The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 5. Randomized version supporting externally-computed message representatives." + "The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 5. Randomized version supporting externally-computed message representatives.", + "AES key wrap with zero padding algorithm (RFC 5649). Can only be used by keys with purpose AES_WRAPPING." ], "type": "string" }, @@ -925,12 +940,16 @@ "description": "ExternalProtectionLevelOptions stores a group of additional fields for configuring a CryptoKeyVersion that are specific to the EXTERNAL protection level and EXTERNAL_VPC protection levels.", "id": "GoogleCloudKmsV1ExternalProtectionLevelOptions", "properties": { + "ekmConnectionBackendOverride": { + "description": "Optional. The resource name of the backend environment where the key material of CryptoKeyVersions is associated with. Setting this field overrides the CryptoKeyBackend. This field may be set when CryptoKeyVersions is set to EXTERNAL_VPC. Format: `projects/*/locations/*/ekmConnections/*`.", + "type": "string" + }, "ekmConnectionKeyPath": { - "description": "The path to the external key material on the EKM when using EkmConnection e.g., \"v0/my/key\". Set this field instead of external_key_uri when using an EkmConnection.", + "description": "Optional. The path to the external key material on the EKM when using EkmConnection e.g., \"v0/my/key\". Set this field instead of external_key_uri when using an EkmConnection.", "type": "string" }, "externalKeyUri": { - "description": "The URI for an external resource that this CryptoKeyVersion represents.", + "description": "Optional. The URI for an external resource that this CryptoKeyVersion represents.", "type": "string" } }, diff --git a/kmsinventory/v1/kmsinventory-gen.go b/kmsinventory/v1/kmsinventory-gen.go index fe23e6c49d1..f08903a3793 100644 --- a/kmsinventory/v1/kmsinventory-gen.go +++ b/kmsinventory/v1/kmsinventory-gen.go @@ -522,6 +522,7 @@ type GoogleCloudKmsV1CryptoKey struct { // "MAC" - CryptoKeys with this purpose may be used with MacSign. // "KEY_ENCAPSULATION" - CryptoKeys with this purpose may be used with // GetPublicKey and Decapsulate. + // "AES_WRAPPING" - CryptoKeys with this purpose may be used for AES key Purpose string `json:"purpose,omitempty"` // RotationPeriod: next_rotation_time will be advanced by this period when the // service automatically rotates a key. Must be at least 24 hours and at most @@ -643,6 +644,8 @@ type GoogleCloudKmsV1CryptoKeyVersion struct { // "PQ_SIGN_ML_DSA_87_EXTERNAL_MU" - The post-quantum Module-Lattice-Based // Digital Signature Algorithm, at security level 5. Randomized version // supporting externally-computed message representatives. + // "AES_256_KWP" - AES key wrap with zero padding algorithm (RFC 5649). Can + // only be used by keys with purpose AES_WRAPPING. Algorithm string `json:"algorithm,omitempty"` // Attestation: Output only. Statement that was generated and signed by the HSM // at key creation time. Use this statement to verify attributes of the key as @@ -673,6 +676,10 @@ type GoogleCloudKmsV1CryptoKeyVersion struct { // GenerationFailureReason: Output only. The root cause of the most recent // generation failure. Only present if state is GENERATION_FAILED. GenerationFailureReason string `json:"generationFailureReason,omitempty"` + // HsmTrusted: Output only. Field indicating that the key wrapping key is + // trusted. This field is only valid for key purpose AES_256_WRAPPING, and + // protection level HSM_SINGLE_TENANT. + HsmTrusted bool `json:"hsmTrusted,omitempty"` // ImportFailureReason: Output only. The root cause of the most recent import // failure. Only present if state is IMPORT_FAILED. ImportFailureReason string `json:"importFailureReason,omitempty"` @@ -739,6 +746,12 @@ type GoogleCloudKmsV1CryptoKeyVersion struct { // destroyed. Additional details can be found in // CryptoKeyVersion.external_destruction_failure_reason. State string `json:"state,omitempty"` + // TrustedWrappingEnabled: Immutable. Field indicating that the key may be + // wrapped by a trusted key. This field can be set for all key purposes except + // ENCRYPT_DECRYPT, and is only valid for keys with protection level + // HSM_SINGLE_TENANT. This field can only be set at creation or import time via + // CreateCryptoKeyVersion, or ImportCryptoKeyVersion. + TrustedWrappingEnabled bool `json:"trustedWrappingEnabled,omitempty"` // ForceSendFields is a list of field names (e.g. "Algorithm") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -848,6 +861,8 @@ type GoogleCloudKmsV1CryptoKeyVersionTemplate struct { // "PQ_SIGN_ML_DSA_87_EXTERNAL_MU" - The post-quantum Module-Lattice-Based // Digital Signature Algorithm, at security level 5. Randomized version // supporting externally-computed message representatives. + // "AES_256_KWP" - AES key wrap with zero padding algorithm (RFC 5649). Can + // only be used by keys with purpose AES_WRAPPING. Algorithm string `json:"algorithm,omitempty"` // ProtectionLevel: ProtectionLevel to use when creating a CryptoKeyVersion // based on this template. Immutable. Defaults to SOFTWARE. @@ -885,22 +900,28 @@ func (s GoogleCloudKmsV1CryptoKeyVersionTemplate) MarshalJSON() ([]byte, error) // configuring a CryptoKeyVersion that are specific to the EXTERNAL protection // level and EXTERNAL_VPC protection levels. type GoogleCloudKmsV1ExternalProtectionLevelOptions struct { - // EkmConnectionKeyPath: The path to the external key material on the EKM when - // using EkmConnection e.g., "v0/my/key". Set this field instead of + // EkmConnectionBackendOverride: Optional. The resource name of the backend + // environment where the key material of CryptoKeyVersions is associated with. + // Setting this field overrides the CryptoKeyBackend. This field may be set + // when CryptoKeyVersions is set to EXTERNAL_VPC. Format: + // `projects/*/locations/*/ekmConnections/*`. + EkmConnectionBackendOverride string `json:"ekmConnectionBackendOverride,omitempty"` + // EkmConnectionKeyPath: Optional. The path to the external key material on the + // EKM when using EkmConnection e.g., "v0/my/key". Set this field instead of // external_key_uri when using an EkmConnection. EkmConnectionKeyPath string `json:"ekmConnectionKeyPath,omitempty"` - // ExternalKeyUri: The URI for an external resource that this CryptoKeyVersion - // represents. + // ExternalKeyUri: Optional. The URI for an external resource that this + // CryptoKeyVersion represents. ExternalKeyUri string `json:"externalKeyUri,omitempty"` - // ForceSendFields is a list of field names (e.g. "EkmConnectionKeyPath") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. + // ForceSendFields is a list of field names (e.g. + // "EkmConnectionBackendOverride") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EkmConnectionKeyPath") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "EkmConnectionBackendOverride") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/merchantapi/issueresolution/v1/merchantapi-api.json b/merchantapi/issueresolution/v1/merchantapi-api.json index 51fadeb658c..442a8193920 100644 --- a/merchantapi/issueresolution/v1/merchantapi-api.json +++ b/merchantapi/issueresolution/v1/merchantapi-api.json @@ -110,7 +110,7 @@ "aggregateProductStatuses": { "methods": { "list": { - "description": "Lists the `AggregateProductStatuses` resources for your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results.", + "description": "Lists the `AggregateProductStatuses` resources for your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results. This method can only be accessed by standalone accounts and sub-accounts of an advanced account. To retrieve product statuses for sub-accounts, you must first call the accounts.listSubaccounts method to obtain a list of sub-accounts, and then call `accounts.aggregateProductStatuses.list` for each sub-account individually.", "flatPath": "issueresolution/v1/accounts/{accountsId}/aggregateProductStatuses", "httpMethod": "GET", "id": "merchantapi.accounts.aggregateProductStatuses.list", @@ -135,7 +135,7 @@ "type": "string" }, "parent": { - "description": "Required. The account to list aggregate product statuses for. Format: `accounts/{account}`", + "description": "Required. The account to list aggregate product statuses for. Format: `accounts/{account}` Can only be sub-accounts and standalone accounts.", "location": "path", "pattern": "^accounts/[^/]+$", "required": true, @@ -268,7 +268,7 @@ } } }, - "revision": "20260527", + "revision": "20260707", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Action": { diff --git a/merchantapi/issueresolution/v1/merchantapi-gen.go b/merchantapi/issueresolution/v1/merchantapi-gen.go index 21288d3ec00..775091d2829 100644 --- a/merchantapi/issueresolution/v1/merchantapi-gen.go +++ b/merchantapi/issueresolution/v1/merchantapi-gen.go @@ -1525,10 +1525,14 @@ type AccountsAggregateProductStatusesListCall struct { // List: Lists the `AggregateProductStatuses` resources for your merchant // account. The response might contain fewer items than specified by // `pageSize`. If `pageToken` was returned in previous request, it can be used -// to obtain additional results. +// to obtain additional results. This method can only be accessed by standalone +// accounts and sub-accounts of an advanced account. To retrieve product +// statuses for sub-accounts, you must first call the accounts.listSubaccounts +// method to obtain a list of sub-accounts, and then call +// `accounts.aggregateProductStatuses.list` for each sub-account individually. // // - parent: The account to list aggregate product statuses for. Format: -// `accounts/{account}`. +// `accounts/{account}` Can only be sub-accounts and standalone accounts. func (r *AccountsAggregateProductStatusesService) List(parent string) *AccountsAggregateProductStatusesListCall { c := &AccountsAggregateProductStatusesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent diff --git a/merchantapi/issueresolution_v1beta/merchantapi-api.json b/merchantapi/issueresolution_v1beta/merchantapi-api.json index 0b684e4a998..ffa97eb8b3f 100644 --- a/merchantapi/issueresolution_v1beta/merchantapi-api.json +++ b/merchantapi/issueresolution_v1beta/merchantapi-api.json @@ -110,7 +110,7 @@ "aggregateProductStatuses": { "methods": { "list": { - "description": "Lists the `AggregateProductStatuses` resources for your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results.", + "description": "Lists the `AggregateProductStatuses` resources for your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results. This method can only be accessed by standalone accounts and sub-accounts of an advanced account. To retrieve product statuses for sub-accounts, you must first call the accounts.listSubaccounts method to obtain a list of sub-accounts, and then call `accounts.aggregateProductStatuses.list` for each sub-account individually.", "flatPath": "issueresolution/v1beta/accounts/{accountsId}/aggregateProductStatuses", "httpMethod": "GET", "id": "merchantapi.accounts.aggregateProductStatuses.list", @@ -135,7 +135,7 @@ "type": "string" }, "parent": { - "description": "Required. The account to list aggregate product statuses for. Format: `accounts/{account}`", + "description": "Required. The account to list aggregate product statuses for. Format: `accounts/{account}` Can only be sub-accounts and standalone accounts.", "location": "path", "pattern": "^accounts/[^/]+$", "required": true, @@ -268,7 +268,7 @@ } } }, - "revision": "20260527", + "revision": "20260707", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "Action": { diff --git a/merchantapi/issueresolution_v1beta/merchantapi-gen.go b/merchantapi/issueresolution_v1beta/merchantapi-gen.go index 497247d4fe4..a45048b8a12 100644 --- a/merchantapi/issueresolution_v1beta/merchantapi-gen.go +++ b/merchantapi/issueresolution_v1beta/merchantapi-gen.go @@ -1525,10 +1525,14 @@ type AccountsAggregateProductStatusesListCall struct { // List: Lists the `AggregateProductStatuses` resources for your merchant // account. The response might contain fewer items than specified by // `pageSize`. If `pageToken` was returned in previous request, it can be used -// to obtain additional results. +// to obtain additional results. This method can only be accessed by standalone +// accounts and sub-accounts of an advanced account. To retrieve product +// statuses for sub-accounts, you must first call the accounts.listSubaccounts +// method to obtain a list of sub-accounts, and then call +// `accounts.aggregateProductStatuses.list` for each sub-account individually. // // - parent: The account to list aggregate product statuses for. Format: -// `accounts/{account}`. +// `accounts/{account}` Can only be sub-accounts and standalone accounts. func (r *AccountsAggregateProductStatusesService) List(parent string) *AccountsAggregateProductStatusesListCall { c := &AccountsAggregateProductStatusesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent diff --git a/monitoring/v1/monitoring-api.json b/monitoring/v1/monitoring-api.json index bcbb62162ba..6790fe2dfe9 100644 --- a/monitoring/v1/monitoring-api.json +++ b/monitoring/v1/monitoring-api.json @@ -753,7 +753,7 @@ } } }, - "revision": "20260611", + "revision": "20260705", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -1462,7 +1462,9 @@ "SAP_AVAILABILITY", "SAP_OPERATIONS", "INTERCONNECT_MAINTENANCE_STARTED", - "INTERCONNECT_MAINTENANCE_COMPLETED" + "INTERCONNECT_MAINTENANCE_COMPLETED", + "VPN_TRAFFIC_SELECTOR_NARROWING", + "VPN_MAINTENANCE" ], "enumDescriptions": [ "No event type specified.", @@ -1491,7 +1493,9 @@ "Agent for SAP availability related events.", "Agent for SAP operations related events.", "Interconnect maintenance started event.", - "Interconnect maintenance completed event." + "Interconnect maintenance completed event.", + "VPN traffic selector narrowing event.", + "VPN maintenance event." ], "type": "string" }, diff --git a/monitoring/v1/monitoring-gen.go b/monitoring/v1/monitoring-gen.go index 6da1abe22ad..dcdf61accf7 100644 --- a/monitoring/v1/monitoring-gen.go +++ b/monitoring/v1/monitoring-gen.go @@ -1295,6 +1295,8 @@ type EventAnnotation struct { // event. // "INTERCONNECT_MAINTENANCE_COMPLETED" - Interconnect maintenance completed // event. + // "VPN_TRAFFIC_SELECTOR_NARROWING" - VPN traffic selector narrowing event. + // "VPN_MAINTENANCE" - VPN maintenance event. EventType string `json:"eventType,omitempty"` // Filter: string filtering the events - event dependant. Example values: // "resource.labels.pod_name = 'pod-1'" diff --git a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json index c83f632f37f..2a62edef78d 100644 --- a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json +++ b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-api.json @@ -166,7 +166,7 @@ "type": "string" }, "parent": { - "description": "Required. The name of the account to fetch locations from. If the parent Account is of AccountType PERSONAL, only Locations that are directly owned by the Account are returned, otherwise it will return all accessible locations from the Account, either directly or indirectly.", + "description": "Required. The name of the account to fetch locations from. * **Specific Account ID**: If the account is of type `AccountType.PERSONAL`, the response returns only locations directly owned by that account. For all other types (e.g., `AccountType.LOCATION_GROUP`), it returns all accessible locations. * **Wildcard (`-`)**: Using `accounts/-` identifies the authenticated user. This scope defaults to `AccountType.PERSONAL` but includes both directly and indirectly owned locations (e.g., those accessible via member groups).", "location": "path", "pattern": "^accounts/[^/]+$", "required": true, @@ -612,7 +612,7 @@ } } }, - "revision": "20260426", + "revision": "20260707", "rootUrl": "https://mybusinessbusinessinformation.googleapis.com/", "schemas": { "AdWordsLocationExtensions": { diff --git a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go index 7a8fec0ac24..d1c71f9c798 100644 --- a/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go +++ b/mybusinessbusinessinformation/v1/mybusinessbusinessinformation-gen.go @@ -2072,10 +2072,14 @@ type AccountsLocationsListCall struct { // List: Lists the locations for the specified account. // -// - parent: The name of the account to fetch locations from. If the parent -// Account is of AccountType PERSONAL, only Locations that are directly owned -// by the Account are returned, otherwise it will return all accessible -// locations from the Account, either directly or indirectly. +// - parent: The name of the account to fetch locations from. * **Specific +// Account ID**: If the account is of type `AccountType.PERSONAL`, the +// response returns only locations directly owned by that account. For all +// other types (e.g., `AccountType.LOCATION_GROUP`), it returns all +// accessible locations. * **Wildcard (`-`)**: Using `accounts/-` identifies +// the authenticated user. This scope defaults to `AccountType.PERSONAL` but +// includes both directly and indirectly owned locations (e.g., those +// accessible via member groups). func (r *AccountsLocationsService) List(parent string) *AccountsLocationsListCall { c := &AccountsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent diff --git a/netapp/v1/netapp-api.json b/netapp/v1/netapp-api.json index 1147e8993f3..2ae8737dd55 100644 --- a/netapp/v1/netapp-api.json +++ b/netapp/v1/netapp-api.json @@ -2933,7 +2933,7 @@ } } }, - "revision": "20260518", + "revision": "20260628", "rootUrl": "https://netapp.googleapis.com/", "schemas": { "ActiveDirectory": { @@ -4572,6 +4572,19 @@ "description": "Metadata for a given google.cloud.location.Location.", "id": "LocationMetadata", "properties": { + "flexPerformanceTier": { + "description": "Output only. Indicates the flex performance tier of this location.", + "enum": [ + "FLEX_PERFORMANCE_TIER_UNSPECIFIED", + "LIMITED" + ], + "enumDescriptions": [ + "Unspecified flex performance tier.", + "Flex performance tier is limited." + ], + "readOnly": true, + "type": "string" + }, "hasOntapProxy": { "description": "Output only. Indicates if the location has ONTAP Proxy support.", "readOnly": true, diff --git a/netapp/v1/netapp-gen.go b/netapp/v1/netapp-gen.go index e10b02917f1..ed6911ce96d 100644 --- a/netapp/v1/netapp-gen.go +++ b/netapp/v1/netapp-gen.go @@ -2097,6 +2097,13 @@ func (s Location) MarshalJSON() ([]byte, error) { // LocationMetadata: Metadata for a given google.cloud.location.Location. type LocationMetadata struct { + // FlexPerformanceTier: Output only. Indicates the flex performance tier of + // this location. + // + // Possible values: + // "FLEX_PERFORMANCE_TIER_UNSPECIFIED" - Unspecified flex performance tier. + // "LIMITED" - Flex performance tier is limited. + FlexPerformanceTier string `json:"flexPerformanceTier,omitempty"` // HasOntapProxy: Output only. Indicates if the location has ONTAP Proxy // support. HasOntapProxy bool `json:"hasOntapProxy,omitempty"` @@ -2119,15 +2126,15 @@ type LocationMetadata struct { // "STANDARD" - Standard service level. // "FLEX" - Flex service level. SupportedServiceLevels []string `json:"supportedServiceLevels,omitempty"` - // ForceSendFields is a list of field names (e.g. "HasOntapProxy") to + // ForceSendFields is a list of field names (e.g. "FlexPerformanceTier") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "HasOntapProxy") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "FlexPerformanceTier") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/netapp/v1beta1/netapp-api.json b/netapp/v1beta1/netapp-api.json index 2c214a0dda0..58b8afaae54 100644 --- a/netapp/v1beta1/netapp-api.json +++ b/netapp/v1beta1/netapp-api.json @@ -3003,7 +3003,7 @@ } } }, - "revision": "20260621", + "revision": "20260628", "rootUrl": "https://netapp.googleapis.com/", "schemas": { "ActiveDirectory": { @@ -4663,6 +4663,19 @@ "description": "Metadata for a given google.cloud.location.Location.", "id": "LocationMetadata", "properties": { + "flexPerformanceTier": { + "description": "Output only. Indicates the flex performance tier of this location.", + "enum": [ + "FLEX_PERFORMANCE_TIER_UNSPECIFIED", + "LIMITED" + ], + "enumDescriptions": [ + "Unspecified flex performance tier.", + "Flex performance tier is limited." + ], + "readOnly": true, + "type": "string" + }, "hasOntapProxy": { "description": "Output only. Indicates if the location has ONTAP Proxy support.", "readOnly": true, diff --git a/netapp/v1beta1/netapp-gen.go b/netapp/v1beta1/netapp-gen.go index 16b4f9dae23..2d95b1ad8fa 100644 --- a/netapp/v1beta1/netapp-gen.go +++ b/netapp/v1beta1/netapp-gen.go @@ -2120,6 +2120,13 @@ func (s Location) MarshalJSON() ([]byte, error) { // LocationMetadata: Metadata for a given google.cloud.location.Location. type LocationMetadata struct { + // FlexPerformanceTier: Output only. Indicates the flex performance tier of + // this location. + // + // Possible values: + // "FLEX_PERFORMANCE_TIER_UNSPECIFIED" - Unspecified flex performance tier. + // "LIMITED" - Flex performance tier is limited. + FlexPerformanceTier string `json:"flexPerformanceTier,omitempty"` // HasOntapProxy: Output only. Indicates if the location has ONTAP Proxy // support. HasOntapProxy bool `json:"hasOntapProxy,omitempty"` @@ -2142,15 +2149,15 @@ type LocationMetadata struct { // "STANDARD" - Standard service level. // "FLEX" - Flex service level. SupportedServiceLevels []string `json:"supportedServiceLevels,omitempty"` - // ForceSendFields is a list of field names (e.g. "HasOntapProxy") to + // ForceSendFields is a list of field names (e.g. "FlexPerformanceTier") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "HasOntapProxy") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "FlexPerformanceTier") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/networksecurity/v1/networksecurity-api.json b/networksecurity/v1/networksecurity-api.json index 9031812d275..2ab2fd9e247 100644 --- a/networksecurity/v1/networksecurity-api.json +++ b/networksecurity/v1/networksecurity-api.json @@ -6131,7 +6131,7 @@ } } }, - "revision": "20260617", + "revision": "20260625", "rootUrl": "https://networksecurity.googleapis.com/", "schemas": { "AddAddressGroupItemsRequest": { @@ -9571,7 +9571,7 @@ "type": "string" }, "dataPathId": { - "description": "Output only. Identifier used by the data-path. Unique within {container, location}.", + "description": "Output only. Identifier used by the data-path. Unique within \\{container, location\\}.", "format": "uint64", "readOnly": true, "type": "string" diff --git a/networksecurity/v1/networksecurity-gen.go b/networksecurity/v1/networksecurity-gen.go index 1b342f8a7f3..40e5e2c81bc 100644 --- a/networksecurity/v1/networksecurity-gen.go +++ b/networksecurity/v1/networksecurity-gen.go @@ -4940,7 +4940,7 @@ type SecurityProfileGroup struct { // CustomMirroring configuration. CustomMirroringProfile string `json:"customMirroringProfile,omitempty"` // DataPathId: Output only. Identifier used by the data-path. Unique within - // {container, location}. + // \{container, location\}. DataPathId uint64 `json:"dataPathId,omitempty,string"` // Description: Optional. An optional description of the profile group. Max // length 2048 characters. diff --git a/networksecurity/v1beta1/networksecurity-api.json b/networksecurity/v1beta1/networksecurity-api.json index c0c2d87c300..316a0086c5c 100644 --- a/networksecurity/v1beta1/networksecurity-api.json +++ b/networksecurity/v1beta1/networksecurity-api.json @@ -6331,7 +6331,7 @@ } } }, - "revision": "20260617", + "revision": "20260625", "rootUrl": "https://networksecurity.googleapis.com/", "schemas": { "AddAddressGroupItemsRequest": { @@ -10035,7 +10035,7 @@ "type": "string" }, "dataPathId": { - "description": "Output only. Identifier used by the data-path. Unique within {container, location}.", + "description": "Output only. Identifier used by the data-path. Unique within \\{container, location\\}.", "format": "uint64", "readOnly": true, "type": "string" diff --git a/networksecurity/v1beta1/networksecurity-gen.go b/networksecurity/v1beta1/networksecurity-gen.go index 8f5de623bed..4a75342f6a9 100644 --- a/networksecurity/v1beta1/networksecurity-gen.go +++ b/networksecurity/v1beta1/networksecurity-gen.go @@ -5235,7 +5235,7 @@ type SecurityProfileGroup struct { // CustomMirroring configuration. CustomMirroringProfile string `json:"customMirroringProfile,omitempty"` // DataPathId: Output only. Identifier used by the data-path. Unique within - // {container, location}. + // \{container, location\}. DataPathId uint64 `json:"dataPathId,omitempty,string"` // Description: Optional. An optional description of the profile group. Max // length 2048 characters. diff --git a/networkservices/v1/networkservices-api.json b/networkservices/v1/networkservices-api.json index 97a2a44aca1..099df3ae40c 100644 --- a/networkservices/v1/networkservices-api.json +++ b/networkservices/v1/networkservices-api.json @@ -3732,7 +3732,7 @@ } } }, - "revision": "20260610", + "revision": "20260626", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AgentGateway": { @@ -3794,7 +3794,7 @@ "type": "array" }, "registries": { - "description": "Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format `//agentregistry.googleapis.com/projects/{project}/locations/{location}/", + "description": "Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format `//agentregistry.googleapis.com/projects/{project}/locations/{location}/`", "items": { "type": "string" }, @@ -3903,24 +3903,6 @@ "networkAttachment": { "description": "Optional. The URI of the Network Attachment resource.", "type": "string" - }, - "trustConfig": { - "$ref": "AgentGatewayNetworkConfigEgressTrustConfig", - "description": "Optional. TrustConfig defines the trust configuration for egress." - } - }, - "type": "object" - }, - "AgentGatewayNetworkConfigEgressTrustConfig": { - "description": "TrustConfig defines the trust configuration for egress.", - "id": "AgentGatewayNetworkConfigEgressTrustConfig", - "properties": { - "pemCertificates": { - "description": "Required. PEM encoded root certificates used to validate the identity of the upstream servers/destinations during egress connections.", - "items": { - "type": "string" - }, - "type": "array" } }, "type": "object" diff --git a/networkservices/v1/networkservices-gen.go b/networkservices/v1/networkservices-gen.go index 243ca559804..19c503ffe29 100644 --- a/networkservices/v1/networkservices-gen.go +++ b/networkservices/v1/networkservices-gen.go @@ -496,7 +496,7 @@ type AgentGateway struct { // Registries: Optional. A list of Agent registries containing the agents, MCP // servers and tools governed by the Agent Gateway. Note: Currently limited to // project-scoped registries Must be of format - // `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + // `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` Registries []string `json:"registries,omitempty"` // SelfManaged: Optional. Attach to existing Application Load Balancers or // Secure Web Proxies. @@ -645,9 +645,6 @@ func (s AgentGatewayNetworkConfigDnsPeeringConfig) MarshalJSON() ([]byte, error) type AgentGatewayNetworkConfigEgress struct { // NetworkAttachment: Optional. The URI of the Network Attachment resource. NetworkAttachment string `json:"networkAttachment,omitempty"` - // TrustConfig: Optional. TrustConfig defines the trust configuration for - // egress. - TrustConfig *AgentGatewayNetworkConfigEgressTrustConfig `json:"trustConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkAttachment") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -666,30 +663,6 @@ func (s AgentGatewayNetworkConfigEgress) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AgentGatewayNetworkConfigEgressTrustConfig: TrustConfig defines the trust -// configuration for egress. -type AgentGatewayNetworkConfigEgressTrustConfig struct { - // PemCertificates: Required. PEM encoded root certificates used to validate - // the identity of the upstream servers/destinations during egress connections. - PemCertificates []string `json:"pemCertificates,omitempty"` - // ForceSendFields is a list of field names (e.g. "PemCertificates") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PemCertificates") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s AgentGatewayNetworkConfigEgressTrustConfig) MarshalJSON() ([]byte, error) { - type NoMethod AgentGatewayNetworkConfigEgressTrustConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // AgentGatewaySelfManaged: Configuration for Self Managed deployment mode. // Attach to existing Application Load Balancers or Secure Web Proxies. type AgentGatewaySelfManaged struct { diff --git a/networkservices/v1beta1/networkservices-api.json b/networkservices/v1beta1/networkservices-api.json index e7549038e00..775def63d76 100644 --- a/networkservices/v1beta1/networkservices-api.json +++ b/networkservices/v1beta1/networkservices-api.json @@ -3277,7 +3277,7 @@ } } }, - "revision": "20260610", + "revision": "20260626", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AgentGateway": { @@ -3339,7 +3339,7 @@ "type": "array" }, "registries": { - "description": "Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format `//agentregistry.googleapis.com/projects/{project}/locations/{location}/", + "description": "Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format `//agentregistry.googleapis.com/projects/{project}/locations/{location}/`", "items": { "type": "string" }, @@ -3448,24 +3448,6 @@ "networkAttachment": { "description": "Optional. The URI of the Network Attachment resource.", "type": "string" - }, - "trustConfig": { - "$ref": "AgentGatewayNetworkConfigEgressTrustConfig", - "description": "Optional. TrustConfig defines the trust configuration for egress." - } - }, - "type": "object" - }, - "AgentGatewayNetworkConfigEgressTrustConfig": { - "description": "TrustConfig defines the trust configuration for egress.", - "id": "AgentGatewayNetworkConfigEgressTrustConfig", - "properties": { - "pemCertificates": { - "description": "Required. PEM encoded root certificates used to validate the identity of the upstream servers/destinations during egress connections.", - "items": { - "type": "string" - }, - "type": "array" } }, "type": "object" diff --git a/networkservices/v1beta1/networkservices-gen.go b/networkservices/v1beta1/networkservices-gen.go index bc7dbc3136b..37c742686ea 100644 --- a/networkservices/v1beta1/networkservices-gen.go +++ b/networkservices/v1beta1/networkservices-gen.go @@ -448,7 +448,7 @@ type AgentGateway struct { // Registries: Optional. A list of Agent registries containing the agents, MCP // servers and tools governed by the Agent Gateway. Note: Currently limited to // project-scoped registries Must be of format - // `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + // `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` Registries []string `json:"registries,omitempty"` // SelfManaged: Optional. Attach to existing Application Load Balancers or // Secure Web Proxies. @@ -597,9 +597,6 @@ func (s AgentGatewayNetworkConfigDnsPeeringConfig) MarshalJSON() ([]byte, error) type AgentGatewayNetworkConfigEgress struct { // NetworkAttachment: Optional. The URI of the Network Attachment resource. NetworkAttachment string `json:"networkAttachment,omitempty"` - // TrustConfig: Optional. TrustConfig defines the trust configuration for - // egress. - TrustConfig *AgentGatewayNetworkConfigEgressTrustConfig `json:"trustConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkAttachment") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -618,30 +615,6 @@ func (s AgentGatewayNetworkConfigEgress) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AgentGatewayNetworkConfigEgressTrustConfig: TrustConfig defines the trust -// configuration for egress. -type AgentGatewayNetworkConfigEgressTrustConfig struct { - // PemCertificates: Required. PEM encoded root certificates used to validate - // the identity of the upstream servers/destinations during egress connections. - PemCertificates []string `json:"pemCertificates,omitempty"` - // ForceSendFields is a list of field names (e.g. "PemCertificates") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PemCertificates") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s AgentGatewayNetworkConfigEgressTrustConfig) MarshalJSON() ([]byte, error) { - type NoMethod AgentGatewayNetworkConfigEgressTrustConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // AgentGatewaySelfManaged: Configuration for Self Managed deployment mode. // Attach to existing Application Load Balancers or Secure Web Proxies. type AgentGatewaySelfManaged struct { diff --git a/observability/v1/observability-api.json b/observability/v1/observability-api.json index b620a39f350..634c9dee0fa 100644 --- a/observability/v1/observability-api.json +++ b/observability/v1/observability-api.json @@ -196,6 +196,11 @@ "endpointUrl": "https://observability.europe-west2.rep.googleapis.com/", "location": "europe-west2" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://observability.europe-west9.rep.googleapis.com/", + "location": "europe-west9" + }, { "description": "Regional Endpoint", "endpointUrl": "https://observability.me-central2.rep.googleapis.com/", @@ -1721,7 +1726,7 @@ } } }, - "revision": "20260611", + "revision": "20260630", "rootUrl": "https://observability.googleapis.com/", "schemas": { "Bucket": { diff --git a/ondemandscanning/v1/ondemandscanning-api.json b/ondemandscanning/v1/ondemandscanning-api.json index bb0a27de856..3fa5ffbef93 100644 --- a/ondemandscanning/v1/ondemandscanning-api.json +++ b/ondemandscanning/v1/ondemandscanning-api.json @@ -344,7 +344,7 @@ } } }, - "revision": "20260622", + "revision": "20260706", "rootUrl": "https://ondemandscanning.googleapis.com/", "schemas": { "AISkillAnalysisOccurrence": { @@ -1486,13 +1486,15 @@ "SCANNER_UNSPECIFIED", "STATIC", "LLM", - "WS_POLICY" + "WS_POLICY", + "GOOGLE_ANTIVIRUS" ], "enumDescriptions": [ "Unspecified scanner.", "Static scanner.", "LLM scanner.", - "WS_POLICY scanner." + "WS_POLICY scanner.", + "Google AntiVirus Service scanner." ], "type": "string" }, diff --git a/ondemandscanning/v1/ondemandscanning-gen.go b/ondemandscanning/v1/ondemandscanning-gen.go index 0d23c10fbd9..3b9ee9ae978 100644 --- a/ondemandscanning/v1/ondemandscanning-gen.go +++ b/ondemandscanning/v1/ondemandscanning-gen.go @@ -1458,6 +1458,7 @@ type Finding struct { // "STATIC" - Static scanner. // "LLM" - LLM scanner. // "WS_POLICY" - WS_POLICY scanner. + // "GOOGLE_ANTIVIRUS" - Google AntiVirus Service scanner. Scanner string `json:"scanner,omitempty"` // Severity: Severity of the finding. // diff --git a/ondemandscanning/v1beta1/ondemandscanning-api.json b/ondemandscanning/v1beta1/ondemandscanning-api.json index eb5b83a034e..53e5f0721ce 100644 --- a/ondemandscanning/v1beta1/ondemandscanning-api.json +++ b/ondemandscanning/v1beta1/ondemandscanning-api.json @@ -344,7 +344,7 @@ } } }, - "revision": "20260622", + "revision": "20260706", "rootUrl": "https://ondemandscanning.googleapis.com/", "schemas": { "AISkillAnalysisOccurrence": { @@ -1481,13 +1481,15 @@ "SCANNER_UNSPECIFIED", "STATIC", "LLM", - "WS_POLICY" + "WS_POLICY", + "GOOGLE_ANTIVIRUS" ], "enumDescriptions": [ "Unspecified scanner.", "Static scanner.", "LLM scanner.", - "WS_POLICY scanner." + "WS_POLICY scanner.", + "Google AntiVirus Service scanner." ], "type": "string" }, diff --git a/ondemandscanning/v1beta1/ondemandscanning-gen.go b/ondemandscanning/v1beta1/ondemandscanning-gen.go index e56ea2e4bdd..ae70f3aba6c 100644 --- a/ondemandscanning/v1beta1/ondemandscanning-gen.go +++ b/ondemandscanning/v1beta1/ondemandscanning-gen.go @@ -1454,6 +1454,7 @@ type Finding struct { // "STATIC" - Static scanner. // "LLM" - LLM scanner. // "WS_POLICY" - WS_POLICY scanner. + // "GOOGLE_ANTIVIRUS" - Google AntiVirus Service scanner. Scanner string `json:"scanner,omitempty"` // Severity: Severity of the finding. // diff --git a/parametermanager/v1/parametermanager-api.json b/parametermanager/v1/parametermanager-api.json index 6acf268e172..e534254bb0f 100644 --- a/parametermanager/v1/parametermanager-api.json +++ b/parametermanager/v1/parametermanager-api.json @@ -46,16 +46,6 @@ "endpointUrl": "https://parametermanager.europe-west3.rep.googleapis.com/", "location": "europe-west3" }, - { - "description": "Regional Endpoint", - "endpointUrl": "https://parametermanager.us-east7.rep.googleapis.com/", - "location": "us-east7" - }, - { - "description": "Regional Endpoint", - "endpointUrl": "https://parametermanager.us-central2.rep.googleapis.com/", - "location": "us-central2" - }, { "description": "Regional Endpoint", "endpointUrl": "https://parametermanager.us-east1.rep.googleapis.com/", @@ -236,11 +226,6 @@ "endpointUrl": "https://parametermanager.europe-north2.rep.googleapis.com/", "location": "europe-north2" }, - { - "description": "Regional Endpoint", - "endpointUrl": "https://parametermanager.europe-west15.rep.googleapis.com/", - "location": "europe-west15" - }, { "description": "Regional Endpoint", "endpointUrl": "https://parametermanager.us.rep.googleapis.com/", @@ -825,13 +810,424 @@ } } } + }, + "templates": { + "methods": { + "create": { + "description": "Creates a new Template in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates", + "httpMethod": "POST", + "id": "parametermanager.projects.locations.templates.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Value for parent in the format `projects/*/locations/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. 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. The server will guarantee that for at least 60 minutes since the first request. 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).", + "location": "query", + "type": "string" + }, + "templateId": { + "description": "Required. Id of the Template resource", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/templates", + "request": { + "$ref": "Template" + }, + "response": { + "$ref": "Template" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single Template.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}", + "httpMethod": "DELETE", + "id": "parametermanager.projects.locations.templates.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource in the format `projects/*/locations/*/templates/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. 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. The server will guarantee that for at least 60 minutes after the first request. 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).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single Template.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}", + "httpMethod": "GET", + "id": "parametermanager.projects.locations.templates.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource in the format `projects/*/locations/*/templates/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Template" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Templates in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates", + "httpMethod": "GET", + "id": "parametermanager.projects.locations.templates.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filtering results", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Hint for how to order the results", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListTemplates` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTemplates` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent value for ListTemplatesRequest in the format `projects/*/locations/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/templates", + "response": { + "$ref": "ListTemplatesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a single Template.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}", + "httpMethod": "PATCH", + "id": "parametermanager.projects.locations.templates.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the Template in the format `projects/*/locations/*/templates/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. 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. The server will guarantee that for at least 60 minutes since the first request. 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).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Optional. Field mask is used to specify the fields to be overwritten in the Template resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A mutable field will be overwritten if it is in the mask. If the user does not provide a mask then all mutable fields present in the request will be overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Template" + }, + "response": { + "$ref": "Template" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "versions": { + "methods": { + "create": { + "description": "Creates a new TemplateVersion in a given project, location, and template.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}/versions", + "httpMethod": "POST", + "id": "parametermanager.projects.locations.templates.versions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Value for parent in the format `projects/*/locations/*/templates/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. 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. The server will guarantee that for at least 60 minutes since the first request. 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).", + "location": "query", + "type": "string" + }, + "templateVersionId": { + "description": "Required. Id of the TemplateVersion resource", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/versions", + "request": { + "$ref": "TemplateVersion" + }, + "response": { + "$ref": "TemplateVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single TemplateVersion.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}/versions/{versionsId}", + "httpMethod": "DELETE", + "id": "parametermanager.projects.locations.templates.versions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource in the format `projects/*/locations/*/templates/*/versions/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. 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. The server will guarantee that for at least 60 minutes after the first request. 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).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single TemplateVersion.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}/versions/{versionsId}", + "httpMethod": "GET", + "id": "parametermanager.projects.locations.templates.versions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource in the format `projects/*/locations/*/templates/*/versions/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "Optional. Specifies the view of the TemplateVersion to return. In the default FULL view, all metadata \u0026 payload associated with the TemplateVersion will be returned.", + "enum": [ + "VIEW_UNSPECIFIED", + "BASIC", + "FULL" + ], + "enumDescriptions": [ + "The default / unset value. The API will default to the FULL view.", + "Include only the metadata for the resource.", + "Include metadata \u0026 other relevant payload data as well. This is the default view." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "TemplateVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists TemplateVersions in a given project, location, and template.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}/versions", + "httpMethod": "GET", + "id": "parametermanager.projects.locations.templates.versions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filtering results", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Hint for how to order the results", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListTemplateVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTemplateVersions` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent value for ListTemplateVersionsRequest in the format `projects/*/locations/*/templates/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/versions", + "response": { + "$ref": "ListTemplateVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a single TemplateVersion.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}/versions/{versionsId}", + "httpMethod": "PATCH", + "id": "parametermanager.projects.locations.templates.versions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the TemplateVersion in the format `projects/*/locations/*/templates/*/versions/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. 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. The server will guarantee that for at least 60 minutes since the first request. 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).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Optional. Field mask is used to specify the fields to be overwritten in the TemplateVersion resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A mutable field will be overwritten if it is in the mask. If the user does not provide a mask then all mutable fields present in the request will be overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "TemplateVersion" + }, + "response": { + "$ref": "TemplateVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "render": { + "description": "Gets rendered version of a TemplateVersion.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}/versions/{versionsId}:render", + "httpMethod": "GET", + "id": "parametermanager.projects.locations.templates.versions.render", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + }, + "parameterVersion": { + "description": "Required. Parameter version used to render the template version.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:render", + "response": { + "$ref": "RenderTemplateVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } } } } } } }, - "revision": "20260610", + "revision": "20260629", "rootUrl": "https://parametermanager.googleapis.com/", "schemas": { "Empty": { @@ -908,6 +1304,56 @@ }, "type": "object" }, + "ListTemplateVersionsResponse": { + "description": "Message for response to listing TemplateVersions", + "id": "ListTemplateVersionsResponse", + "properties": { + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + }, + "templateVersions": { + "description": "The list of TemplateVersions", + "items": { + "$ref": "TemplateVersion" + }, + "type": "array" + }, + "unreachable": { + "description": "Unordered list. Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListTemplatesResponse": { + "description": "Message for response to listing Templates", + "id": "ListTemplatesResponse", + "properties": { + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + }, + "templates": { + "description": "The list of Templates", + "items": { + "$ref": "Template" + }, + "type": "array" + }, + "unreachable": { + "description": "Unordered list. Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Location": { "description": "A resource that represents a Google Cloud location.", "id": "Location", @@ -1067,6 +1513,47 @@ }, "type": "object" }, + "RenderTemplateVersionResponse": { + "description": "Message describing RenderTemplateVersionResponse resource", + "id": "RenderTemplateVersionResponse", + "properties": { + "parameterVersion": { + "description": "Output only. The resource name of the ParameterVersion used to render the template version in the format `projects/*/locations/*/parameters/*/versions/*`.", + "readOnly": true, + "type": "string" + }, + "payload": { + "$ref": "TemplateVersionPayload", + "description": "Payload content of a TemplateVersion resource." + }, + "renderedPayload": { + "description": "Output only. Server generated rendered version of the user provided payload data (TemplateVersionPayload) which has all the variables resolved using the provided parameter version.", + "format": "byte", + "readOnly": true, + "type": "string" + }, + "templateFormat": { + "description": "Output only. Format of the template version.", + "enum": [ + "TEMPLATE_FORMAT_UNSPECIFIED", + "TEMPLATE_FORMAT_YAML", + "TEMPLATE_FORMAT_JSON" + ], + "enumDescriptions": [ + "The default / unset value. The API will default to the YAML format.", + "YAML format.", + "JSON format." + ], + "readOnly": true, + "type": "string" + }, + "templateVersion": { + "description": "Resource identifier of a TemplateVersion in the format `projects/*/locations/*/templates/*/versions/*`.", + "type": "string" + } + }, + "type": "object" + }, "ResourcePolicyMember": { "description": "Output-only policy member strings of a Google Cloud resource's built-in identity.", "id": "ResourcePolicyMember", @@ -1083,6 +1570,93 @@ } }, "type": "object" + }, + "Template": { + "description": "Message describing Template resource", + "id": "Template", + "properties": { + "createTime": { + "description": "Output only. Create time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "format": { + "description": "Optional. Specifies the format of a Template.", + "enum": [ + "TEMPLATE_FORMAT_UNSPECIFIED", + "TEMPLATE_FORMAT_YAML", + "TEMPLATE_FORMAT_JSON" + ], + "enumDescriptions": [ + "The default / unset value. The API will default to the YAML format.", + "YAML format.", + "JSON format." + ], + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels as key value pairs", + "type": "object" + }, + "name": { + "description": "Identifier. The resource name of the Template in the format `projects/*/locations/*/templates/*`.", + "type": "string" + }, + "updateTime": { + "description": "Output only. Update time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "TemplateVersion": { + "description": "Message describing TemplateVersion resource", + "id": "TemplateVersion", + "properties": { + "createTime": { + "description": "Output only. Create time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "disabled": { + "description": "Optional. Disabled boolean to determine if a TemplateVersion acts as a metadata only resource (payload is never returned if disabled is true).", + "type": "boolean" + }, + "name": { + "description": "Identifier. The resource name of the TemplateVersion in the format `projects/*/locations/*/templates/*/versions/*`.", + "type": "string" + }, + "payload": { + "$ref": "TemplateVersionPayload", + "description": "Required. Immutable. Payload content of a TemplateVersion resource." + }, + "updateTime": { + "description": "Output only. Update time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "TemplateVersionPayload": { + "description": "Message for storing a TemplateVersion resource's payload data", + "id": "TemplateVersionPayload", + "properties": { + "data": { + "description": "Required. bytes data for storing payload.", + "format": "byte", + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/parametermanager/v1/parametermanager-gen.go b/parametermanager/v1/parametermanager-gen.go index 61992f2f0c3..a61b17641e7 100644 --- a/parametermanager/v1/parametermanager-gen.go +++ b/parametermanager/v1/parametermanager-gen.go @@ -169,6 +169,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.Parameters = NewProjectsLocationsParametersService(s) + rs.Templates = NewProjectsLocationsTemplatesService(s) return rs } @@ -176,6 +177,8 @@ type ProjectsLocationsService struct { s *Service Parameters *ProjectsLocationsParametersService + + Templates *ProjectsLocationsTemplatesService } func NewProjectsLocationsParametersService(s *Service) *ProjectsLocationsParametersService { @@ -199,6 +202,27 @@ type ProjectsLocationsParametersVersionsService struct { s *Service } +func NewProjectsLocationsTemplatesService(s *Service) *ProjectsLocationsTemplatesService { + rs := &ProjectsLocationsTemplatesService{s: s} + rs.Versions = NewProjectsLocationsTemplatesVersionsService(s) + return rs +} + +type ProjectsLocationsTemplatesService struct { + s *Service + + Versions *ProjectsLocationsTemplatesVersionsService +} + +func NewProjectsLocationsTemplatesVersionsService(s *Service) *ProjectsLocationsTemplatesVersionsService { + rs := &ProjectsLocationsTemplatesVersionsService{s: s} + return rs +} + +type ProjectsLocationsTemplatesVersionsService struct { + s *Service +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use it as // the request or the response type of an API method. For instance: service Foo @@ -297,6 +321,67 @@ func (s ListParametersResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ListTemplateVersionsResponse: Message for response to listing +// TemplateVersions +type ListTemplateVersionsResponse struct { + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + // TemplateVersions: The list of TemplateVersions + TemplateVersions []*TemplateVersion `json:"templateVersions,omitempty"` + // Unreachable: Unordered list. Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListTemplateVersionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListTemplateVersionsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListTemplatesResponse: Message for response to listing Templates +type ListTemplatesResponse struct { + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + // Templates: The list of Templates + Templates []*Template `json:"templates,omitempty"` + // Unreachable: Unordered list. Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListTemplatesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListTemplatesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Location: A resource that represents a Google Cloud location. type Location struct { // DisplayName: The friendly name for this location, typically a nearby city @@ -487,6 +572,51 @@ func (s RenderParameterVersionResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// RenderTemplateVersionResponse: Message describing +// RenderTemplateVersionResponse resource +type RenderTemplateVersionResponse struct { + // ParameterVersion: Output only. The resource name of the ParameterVersion + // used to render the template version in the format + // `projects/*/locations/*/parameters/*/versions/*`. + ParameterVersion string `json:"parameterVersion,omitempty"` + // Payload: Payload content of a TemplateVersion resource. + Payload *TemplateVersionPayload `json:"payload,omitempty"` + // RenderedPayload: Output only. Server generated rendered version of the user + // provided payload data (TemplateVersionPayload) which has all the variables + // resolved using the provided parameter version. + RenderedPayload string `json:"renderedPayload,omitempty"` + // TemplateFormat: Output only. Format of the template version. + // + // Possible values: + // "TEMPLATE_FORMAT_UNSPECIFIED" - The default / unset value. The API will + // default to the YAML format. + // "TEMPLATE_FORMAT_YAML" - YAML format. + // "TEMPLATE_FORMAT_JSON" - JSON format. + TemplateFormat string `json:"templateFormat,omitempty"` + // TemplateVersion: Resource identifier of a TemplateVersion in the format + // `projects/*/locations/*/templates/*/versions/*`. + TemplateVersion string `json:"templateVersion,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "ParameterVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ParameterVersion") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RenderTemplateVersionResponse) MarshalJSON() ([]byte, error) { + type NoMethod RenderTemplateVersionResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ResourcePolicyMember: Output-only policy member strings of a Google Cloud // resource's built-in identity. type ResourcePolicyMember struct { @@ -523,6 +653,104 @@ func (s ResourcePolicyMember) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Template: Message describing Template resource +type Template struct { + // CreateTime: Output only. Create time stamp + CreateTime string `json:"createTime,omitempty"` + // Format: Optional. Specifies the format of a Template. + // + // Possible values: + // "TEMPLATE_FORMAT_UNSPECIFIED" - The default / unset value. The API will + // default to the YAML format. + // "TEMPLATE_FORMAT_YAML" - YAML format. + // "TEMPLATE_FORMAT_JSON" - JSON format. + Format string `json:"format,omitempty"` + // Labels: Optional. Labels as key value pairs + Labels map[string]string `json:"labels,omitempty"` + // Name: Identifier. The resource name of the Template in the format + // `projects/*/locations/*/templates/*`. + Name string `json:"name,omitempty"` + // UpdateTime: Output only. Update time stamp + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Template) MarshalJSON() ([]byte, error) { + type NoMethod Template + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TemplateVersion: Message describing TemplateVersion resource +type TemplateVersion struct { + // CreateTime: Output only. Create time stamp + CreateTime string `json:"createTime,omitempty"` + // Disabled: Optional. Disabled boolean to determine if a TemplateVersion acts + // as a metadata only resource (payload is never returned if disabled is true). + Disabled bool `json:"disabled,omitempty"` + // Name: Identifier. The resource name of the TemplateVersion in the format + // `projects/*/locations/*/templates/*/versions/*`. + Name string `json:"name,omitempty"` + // Payload: Required. Immutable. Payload content of a TemplateVersion resource. + Payload *TemplateVersionPayload `json:"payload,omitempty"` + // UpdateTime: Output only. Update time stamp + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TemplateVersion) MarshalJSON() ([]byte, error) { + type NoMethod TemplateVersion + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TemplateVersionPayload: Message for storing a TemplateVersion resource's +// payload data +type TemplateVersionPayload struct { + // Data: Required. bytes data for storing payload. + Data string `json:"data,omitempty"` + // ForceSendFields is a list of field names (e.g. "Data") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Data") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s TemplateVersionPayload) MarshalJSON() ([]byte, error) { + type NoMethod TemplateVersionPayload + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type ProjectsLocationsGetCall struct { s *Service name string @@ -2224,3 +2452,1430 @@ func (c *ProjectsLocationsParametersVersionsRenderCall) Do(opts ...googleapi.Cal c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.parameters.versions.render", "response", internallog.HTTPResponse(res, b)) return ret, nil } + +type ProjectsLocationsTemplatesCreateCall struct { + s *Service + parent string + template *Template + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new Template in a given project and location. +// +// - parent: Value for parent in the format `projects/*/locations/*`. +func (r *ProjectsLocationsTemplatesService) Create(parent string, template *Template) *ProjectsLocationsTemplatesCreateCall { + c := &ProjectsLocationsTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.template = template + return c +} + +// RequestId sets the optional parameter "requestId": 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. The server will guarantee that for at least 60 minutes since +// the first request. 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). +func (c *ProjectsLocationsTemplatesCreateCall) RequestId(requestId string) *ProjectsLocationsTemplatesCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// TemplateId sets the optional parameter "templateId": Required. Id of the +// Template resource +func (c *ProjectsLocationsTemplatesCreateCall) TemplateId(templateId string) *ProjectsLocationsTemplatesCreateCall { + c.urlParams_.Set("templateId", templateId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTemplatesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsTemplatesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTemplatesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.template) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/templates") + 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{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "parametermanager.projects.locations.templates.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *Template.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 *ProjectsLocationsTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*Template, 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 := &Template{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsTemplatesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single Template. +// +// - name: Name of the resource in the format +// `projects/*/locations/*/templates/*`. +func (r *ProjectsLocationsTemplatesService) Delete(name string) *ProjectsLocationsTemplatesDeleteCall { + c := &ProjectsLocationsTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// RequestId sets the optional parameter "requestId": 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. The server will guarantee that for at least 60 minutes after +// the first request. 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). +func (c *ProjectsLocationsTemplatesDeleteCall) RequestId(requestId string) *ProjectsLocationsTemplatesDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTemplatesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsTemplatesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTemplatesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "parametermanager.projects.locations.templates.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.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 *ProjectsLocationsTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsTemplatesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single Template. +// +// - name: Name of the resource in the format +// `projects/*/locations/*/templates/*`. +func (r *ProjectsLocationsTemplatesService) Get(name string) *ProjectsLocationsTemplatesGetCall { + c := &ProjectsLocationsTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTemplatesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTemplatesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsTemplatesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTemplatesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTemplatesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "parametermanager.projects.locations.templates.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *Template.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 *ProjectsLocationsTemplatesGetCall) Do(opts ...googleapi.CallOption) (*Template, 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 := &Template{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsTemplatesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Templates in a given project and location. +// +// - parent: Parent value for ListTemplatesRequest in the format +// `projects/*/locations/*`. +func (r *ProjectsLocationsTemplatesService) List(parent string) *ProjectsLocationsTemplatesListCall { + c := &ProjectsLocationsTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering results +func (c *ProjectsLocationsTemplatesListCall) Filter(filter string) *ProjectsLocationsTemplatesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Hint for how to order the +// results +func (c *ProjectsLocationsTemplatesListCall) OrderBy(orderBy string) *ProjectsLocationsTemplatesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. Server +// may return fewer items than requested. If unspecified, server will pick an +// appropriate default. +func (c *ProjectsLocationsTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsTemplatesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListTemplates` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListTemplates` must match the call that provided the page token. +func (c *ProjectsLocationsTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsTemplatesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTemplatesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTemplatesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsTemplatesListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTemplatesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTemplatesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/templates") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "parametermanager.projects.locations.templates.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListTemplatesResponse.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 *ProjectsLocationsTemplatesListCall) Do(opts ...googleapi.CallOption) (*ListTemplatesResponse, 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 := &ListTemplatesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsTemplatesListCall) Pages(ctx context.Context, f func(*ListTemplatesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsTemplatesPatchCall struct { + s *Service + name string + template *Template + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a single Template. +// +// - name: Identifier. The resource name of the Template in the format +// `projects/*/locations/*/templates/*`. +func (r *ProjectsLocationsTemplatesService) Patch(name string, template *Template) *ProjectsLocationsTemplatesPatchCall { + c := &ProjectsLocationsTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.template = template + return c +} + +// RequestId sets the optional parameter "requestId": 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. The server will guarantee that for at least 60 minutes since +// the first request. 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). +func (c *ProjectsLocationsTemplatesPatchCall) RequestId(requestId string) *ProjectsLocationsTemplatesPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is used to +// specify the fields to be overwritten in the Template resource by the update. +// The fields specified in the update_mask are relative to the resource, not +// the full request. A mutable field will be overwritten if it is in the mask. +// If the user does not provide a mask then all mutable fields present in the +// request will be overwritten. +func (c *ProjectsLocationsTemplatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTemplatesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTemplatesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTemplatesPatchCall) Context(ctx context.Context) *ProjectsLocationsTemplatesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTemplatesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.template) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "parametermanager.projects.locations.templates.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *Template.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 *ProjectsLocationsTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*Template, 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 := &Template{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsTemplatesVersionsCreateCall struct { + s *Service + parent string + templateversion *TemplateVersion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new TemplateVersion in a given project, location, and +// template. +// +// - parent: Value for parent in the format +// `projects/*/locations/*/templates/*`. +func (r *ProjectsLocationsTemplatesVersionsService) Create(parent string, templateversion *TemplateVersion) *ProjectsLocationsTemplatesVersionsCreateCall { + c := &ProjectsLocationsTemplatesVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.templateversion = templateversion + return c +} + +// RequestId sets the optional parameter "requestId": 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. The server will guarantee that for at least 60 minutes since +// the first request. 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). +func (c *ProjectsLocationsTemplatesVersionsCreateCall) RequestId(requestId string) *ProjectsLocationsTemplatesVersionsCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// TemplateVersionId sets the optional parameter "templateVersionId": Required. +// Id of the TemplateVersion resource +func (c *ProjectsLocationsTemplatesVersionsCreateCall) TemplateVersionId(templateVersionId string) *ProjectsLocationsTemplatesVersionsCreateCall { + c.urlParams_.Set("templateVersionId", templateVersionId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTemplatesVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTemplatesVersionsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTemplatesVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsTemplatesVersionsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTemplatesVersionsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTemplatesVersionsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.templateversion) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions") + 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{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.versions.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "parametermanager.projects.locations.templates.versions.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *TemplateVersion.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 *ProjectsLocationsTemplatesVersionsCreateCall) Do(opts ...googleapi.CallOption) (*TemplateVersion, 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 := &TemplateVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.versions.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsTemplatesVersionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single TemplateVersion. +// +// - name: Name of the resource in the format +// `projects/*/locations/*/templates/*/versions/*`. +func (r *ProjectsLocationsTemplatesVersionsService) Delete(name string) *ProjectsLocationsTemplatesVersionsDeleteCall { + c := &ProjectsLocationsTemplatesVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// RequestId sets the optional parameter "requestId": 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. The server will guarantee that for at least 60 minutes after +// the first request. 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). +func (c *ProjectsLocationsTemplatesVersionsDeleteCall) RequestId(requestId string) *ProjectsLocationsTemplatesVersionsDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTemplatesVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTemplatesVersionsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTemplatesVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsTemplatesVersionsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTemplatesVersionsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTemplatesVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.versions.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "parametermanager.projects.locations.templates.versions.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.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 *ProjectsLocationsTemplatesVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, 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 := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.versions.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsTemplatesVersionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single TemplateVersion. +// +// - name: Name of the resource in the format +// `projects/*/locations/*/templates/*/versions/*`. +func (r *ProjectsLocationsTemplatesVersionsService) Get(name string) *ProjectsLocationsTemplatesVersionsGetCall { + c := &ProjectsLocationsTemplatesVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// View sets the optional parameter "view": Specifies the view of the +// TemplateVersion to return. In the default FULL view, all metadata & payload +// associated with the TemplateVersion will be returned. +// +// Possible values: +// +// "VIEW_UNSPECIFIED" - The default / unset value. The API will default to +// +// the FULL view. +// +// "BASIC" - Include only the metadata for the resource. +// "FULL" - Include metadata & other relevant payload data as well. This is +// +// the default view. +func (c *ProjectsLocationsTemplatesVersionsGetCall) View(view string) *ProjectsLocationsTemplatesVersionsGetCall { + c.urlParams_.Set("view", view) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTemplatesVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTemplatesVersionsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsTemplatesVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTemplatesVersionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTemplatesVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsTemplatesVersionsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTemplatesVersionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTemplatesVersionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.versions.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "parametermanager.projects.locations.templates.versions.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *TemplateVersion.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 *ProjectsLocationsTemplatesVersionsGetCall) Do(opts ...googleapi.CallOption) (*TemplateVersion, 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 := &TemplateVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.versions.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsTemplatesVersionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists TemplateVersions in a given project, location, and template. +// +// - parent: Parent value for ListTemplateVersionsRequest in the format +// `projects/*/locations/*/templates/*`. +func (r *ProjectsLocationsTemplatesVersionsService) List(parent string) *ProjectsLocationsTemplatesVersionsListCall { + c := &ProjectsLocationsTemplatesVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering results +func (c *ProjectsLocationsTemplatesVersionsListCall) Filter(filter string) *ProjectsLocationsTemplatesVersionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Hint for how to order the +// results +func (c *ProjectsLocationsTemplatesVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsTemplatesVersionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. Server +// may return fewer items than requested. If unspecified, server will pick an +// appropriate default. +func (c *ProjectsLocationsTemplatesVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsTemplatesVersionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListTemplateVersions` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListTemplateVersions` must match the call that provided the page token. +func (c *ProjectsLocationsTemplatesVersionsListCall) PageToken(pageToken string) *ProjectsLocationsTemplatesVersionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTemplatesVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTemplatesVersionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsTemplatesVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTemplatesVersionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTemplatesVersionsListCall) Context(ctx context.Context) *ProjectsLocationsTemplatesVersionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTemplatesVersionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTemplatesVersionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/versions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.versions.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "parametermanager.projects.locations.templates.versions.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListTemplateVersionsResponse.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 *ProjectsLocationsTemplatesVersionsListCall) Do(opts ...googleapi.CallOption) (*ListTemplateVersionsResponse, 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 := &ListTemplateVersionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.versions.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsTemplatesVersionsListCall) Pages(ctx context.Context, f func(*ListTemplateVersionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsTemplatesVersionsPatchCall struct { + s *Service + name string + templateversion *TemplateVersion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a single TemplateVersion. +// +// - name: Identifier. The resource name of the TemplateVersion in the format +// `projects/*/locations/*/templates/*/versions/*`. +func (r *ProjectsLocationsTemplatesVersionsService) Patch(name string, templateversion *TemplateVersion) *ProjectsLocationsTemplatesVersionsPatchCall { + c := &ProjectsLocationsTemplatesVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.templateversion = templateversion + return c +} + +// RequestId sets the optional parameter "requestId": 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. The server will guarantee that for at least 60 minutes since +// the first request. 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). +func (c *ProjectsLocationsTemplatesVersionsPatchCall) RequestId(requestId string) *ProjectsLocationsTemplatesVersionsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is used to +// specify the fields to be overwritten in the TemplateVersion resource by the +// update. The fields specified in the update_mask are relative to the +// resource, not the full request. A mutable field will be overwritten if it is +// in the mask. If the user does not provide a mask then all mutable fields +// present in the request will be overwritten. +func (c *ProjectsLocationsTemplatesVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTemplatesVersionsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTemplatesVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTemplatesVersionsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTemplatesVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsTemplatesVersionsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTemplatesVersionsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTemplatesVersionsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.templateversion) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.versions.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "parametermanager.projects.locations.templates.versions.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *TemplateVersion.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 *ProjectsLocationsTemplatesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*TemplateVersion, 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 := &TemplateVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.versions.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsTemplatesVersionsRenderCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Render: Gets rendered version of a TemplateVersion. +// +// - name: Name of the resource. +func (r *ProjectsLocationsTemplatesVersionsService) Render(name string) *ProjectsLocationsTemplatesVersionsRenderCall { + c := &ProjectsLocationsTemplatesVersionsRenderCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// ParameterVersion sets the optional parameter "parameterVersion": Required. +// Parameter version used to render the template version. +func (c *ProjectsLocationsTemplatesVersionsRenderCall) ParameterVersion(parameterVersion string) *ProjectsLocationsTemplatesVersionsRenderCall { + c.urlParams_.Set("parameterVersion", parameterVersion) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTemplatesVersionsRenderCall) Fields(s ...googleapi.Field) *ProjectsLocationsTemplatesVersionsRenderCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsTemplatesVersionsRenderCall) IfNoneMatch(entityTag string) *ProjectsLocationsTemplatesVersionsRenderCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTemplatesVersionsRenderCall) Context(ctx context.Context) *ProjectsLocationsTemplatesVersionsRenderCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTemplatesVersionsRenderCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTemplatesVersionsRenderCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:render") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.versions.render", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "parametermanager.projects.locations.templates.versions.render" call. +// Any non-2xx status code is an error. Response headers are in either +// *RenderTemplateVersionResponse.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 *ProjectsLocationsTemplatesVersionsRenderCall) Do(opts ...googleapi.CallOption) (*RenderTemplateVersionResponse, 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 := &RenderTemplateVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "parametermanager.projects.locations.templates.versions.render", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} diff --git a/redis/v1/redis-api.json b/redis/v1/redis-api.json index 3fc5f5cb530..61b7dc5285d 100644 --- a/redis/v1/redis-api.json +++ b/redis/v1/redis-api.json @@ -1845,7 +1845,7 @@ } } }, - "revision": "20260616", + "revision": "20260630", "rootUrl": "https://redis.googleapis.com/", "schemas": { "AOFConfig": { @@ -3560,7 +3560,7 @@ "type": "string" }, "resourceType": { - "description": "Required. The type of resource this ID is identifying. Ex go/keep-sorted start alloydb.googleapis.com/Cluster, alloydb.googleapis.com/Instance, bigtableadmin.googleapis.com/Cluster, bigtableadmin.googleapis.com/Instance compute.googleapis.com/Instance firestore.googleapis.com/Database, redis.googleapis.com/Instance, redis.googleapis.com/Cluster, oracledatabase.googleapis.com/CloudExadataInfrastructure oracledatabase.googleapis.com/CloudVmCluster oracledatabase.googleapis.com/AutonomousDatabase spanner.googleapis.com/Instance, spanner.googleapis.com/Database, sqladmin.googleapis.com/Instance, go/keep-sorted end REQUIRED Please refer go/condor-common-datamodel", + "description": "Required. The type of resource this ID is identifying. Ex go/keep-sorted start alloydb.googleapis.com/Cluster, alloydb.googleapis.com/Instance, bigtableadmin.googleapis.com/Cluster, bigtableadmin.googleapis.com/Instance compute.googleapis.com/Instance firestore.googleapis.com/Database, memorystore.googleapis.com/Instance, redis.googleapis.com/Instance, redis.googleapis.com/Cluster, oracledatabase.googleapis.com/CloudExadataInfrastructure oracledatabase.googleapis.com/CloudVmCluster oracledatabase.googleapis.com/AutonomousDatabase spanner.googleapis.com/Instance, spanner.googleapis.com/Database, sqladmin.googleapis.com/Instance, go/keep-sorted end REQUIRED Please refer go/condor-common-datamodel", "type": "string" }, "uniqueId": { diff --git a/redis/v1/redis-gen.go b/redis/v1/redis-gen.go index fe6b919d252..8e5710f625b 100644 --- a/redis/v1/redis-gen.go +++ b/redis/v1/redis-gen.go @@ -1888,8 +1888,8 @@ type DatabaseResourceId struct { // go/keep-sorted start alloydb.googleapis.com/Cluster, // alloydb.googleapis.com/Instance, bigtableadmin.googleapis.com/Cluster, // bigtableadmin.googleapis.com/Instance compute.googleapis.com/Instance - // firestore.googleapis.com/Database, redis.googleapis.com/Instance, - // redis.googleapis.com/Cluster, + // firestore.googleapis.com/Database, memorystore.googleapis.com/Instance, + // redis.googleapis.com/Instance, redis.googleapis.com/Cluster, // oracledatabase.googleapis.com/CloudExadataInfrastructure // oracledatabase.googleapis.com/CloudVmCluster // oracledatabase.googleapis.com/AutonomousDatabase diff --git a/redis/v1beta1/redis-api.json b/redis/v1beta1/redis-api.json index a9f6b1b929b..24316aa86fd 100644 --- a/redis/v1beta1/redis-api.json +++ b/redis/v1beta1/redis-api.json @@ -1841,7 +1841,7 @@ } } }, - "revision": "20260616", + "revision": "20260630", "rootUrl": "https://redis.googleapis.com/", "schemas": { "AOFConfig": { @@ -3556,7 +3556,7 @@ "type": "string" }, "resourceType": { - "description": "Required. The type of resource this ID is identifying. Ex go/keep-sorted start alloydb.googleapis.com/Cluster, alloydb.googleapis.com/Instance, bigtableadmin.googleapis.com/Cluster, bigtableadmin.googleapis.com/Instance compute.googleapis.com/Instance firestore.googleapis.com/Database, redis.googleapis.com/Instance, redis.googleapis.com/Cluster, oracledatabase.googleapis.com/CloudExadataInfrastructure oracledatabase.googleapis.com/CloudVmCluster oracledatabase.googleapis.com/AutonomousDatabase spanner.googleapis.com/Instance, spanner.googleapis.com/Database, sqladmin.googleapis.com/Instance, go/keep-sorted end REQUIRED Please refer go/condor-common-datamodel", + "description": "Required. The type of resource this ID is identifying. Ex go/keep-sorted start alloydb.googleapis.com/Cluster, alloydb.googleapis.com/Instance, bigtableadmin.googleapis.com/Cluster, bigtableadmin.googleapis.com/Instance compute.googleapis.com/Instance firestore.googleapis.com/Database, memorystore.googleapis.com/Instance, redis.googleapis.com/Instance, redis.googleapis.com/Cluster, oracledatabase.googleapis.com/CloudExadataInfrastructure oracledatabase.googleapis.com/CloudVmCluster oracledatabase.googleapis.com/AutonomousDatabase spanner.googleapis.com/Instance, spanner.googleapis.com/Database, sqladmin.googleapis.com/Instance, go/keep-sorted end REQUIRED Please refer go/condor-common-datamodel", "type": "string" }, "uniqueId": { diff --git a/redis/v1beta1/redis-gen.go b/redis/v1beta1/redis-gen.go index b53bb66fe22..76f3f6799b6 100644 --- a/redis/v1beta1/redis-gen.go +++ b/redis/v1beta1/redis-gen.go @@ -1888,8 +1888,8 @@ type DatabaseResourceId struct { // go/keep-sorted start alloydb.googleapis.com/Cluster, // alloydb.googleapis.com/Instance, bigtableadmin.googleapis.com/Cluster, // bigtableadmin.googleapis.com/Instance compute.googleapis.com/Instance - // firestore.googleapis.com/Database, redis.googleapis.com/Instance, - // redis.googleapis.com/Cluster, + // firestore.googleapis.com/Database, memorystore.googleapis.com/Instance, + // redis.googleapis.com/Instance, redis.googleapis.com/Cluster, // oracledatabase.googleapis.com/CloudExadataInfrastructure // oracledatabase.googleapis.com/CloudVmCluster // oracledatabase.googleapis.com/AutonomousDatabase diff --git a/saasservicemgmt/v1beta1/saasservicemgmt-api.json b/saasservicemgmt/v1beta1/saasservicemgmt-api.json index 51111bb9bec..ed9a133a486 100644 --- a/saasservicemgmt/v1beta1/saasservicemgmt-api.json +++ b/saasservicemgmt/v1beta1/saasservicemgmt-api.json @@ -3218,7 +3218,7 @@ } } }, - "revision": "20260610", + "revision": "20260624", "rootUrl": "https://saasservicemgmt.googleapis.com/", "schemas": { "Aggregate": { @@ -3316,11 +3316,11 @@ "type": "object" }, "ComponentRef": { - "description": "ComponentRef represents a reference to a component resource. Next ID: 4", + "description": "ComponentRef represents a reference to a component resource.", "id": "ComponentRef", "properties": { "component": { - "description": "Name of the component in composite.Components", + "description": "Optional. Name of the component in composite.Components", "type": "string" }, "compositeRef": { @@ -3335,7 +3335,7 @@ "type": "object" }, "CompositeRef": { - "description": "CompositeRef represents a reference to a composite resource. Next ID: 4", + "description": "CompositeRef represents a reference to a composite resource.", "id": "CompositeRef", "properties": { "applicationTemplate": { @@ -3744,7 +3744,7 @@ }, "flagRevisionsRelease": { "$ref": "FlagRevisionList", - "description": "Optional. Immutable. Specifies the release consists of a list of flag revisions." + "description": "Optional. Immutable. Specifies the release consisting of a list of flag revisions." }, "flagSets": { "deprecated": true, @@ -3756,7 +3756,7 @@ }, "flagSetsRelease": { "$ref": "FlagSetList", - "description": "Optional. Immutable. Specifies the release consists of a list of flag sets." + "description": "Optional. Immutable. Specifies the release consisting of a list of flag sets." }, "labels": { "additionalProperties": { @@ -5538,8 +5538,7 @@ }, "applicationTemplateComponent": { "$ref": "ComponentRef", - "description": "Output only. Reference to component and revision in a composite ApplicationTemplate.", - "readOnly": true + "description": "Optional. Reference to component and revision in a composite ApplicationTemplate." }, "boundaryType": { "description": "Optional. Output only. BoundaryType describes the type of boundary the Unit Kind represents.", diff --git a/saasservicemgmt/v1beta1/saasservicemgmt-gen.go b/saasservicemgmt/v1beta1/saasservicemgmt-gen.go index e5d957a581c..e99fa431fd1 100644 --- a/saasservicemgmt/v1beta1/saasservicemgmt-gen.go +++ b/saasservicemgmt/v1beta1/saasservicemgmt-gen.go @@ -499,9 +499,8 @@ func (s Blueprint) MarshalJSON() ([]byte, error) { } // ComponentRef: ComponentRef represents a reference to a component resource. -// Next ID: 4 type ComponentRef struct { - // Component: Name of the component in composite.Components + // Component: Optional. Name of the component in composite.Components Component string `json:"component,omitempty"` // CompositeRef: Reference to the Composite ApplicationTemplate. CompositeRef *CompositeRef `json:"compositeRef,omitempty"` @@ -528,7 +527,6 @@ func (s ComponentRef) MarshalJSON() ([]byte, error) { } // CompositeRef: CompositeRef represents a reference to a composite resource. -// Next ID: 4 type CompositeRef struct { // ApplicationTemplate: Required. Reference to the ApplicationTemplate // resource. @@ -967,14 +965,14 @@ type FlagRelease struct { // all_flags, or flag_sets can be set. It used to be the ultimate source to // truth and has been moved to effective_flag_revisions. FlagRevisions []string `json:"flagRevisions,omitempty"` - // FlagRevisionsRelease: Optional. Immutable. Specifies the release consists of - // a list of flag revisions. + // FlagRevisionsRelease: Optional. Immutable. Specifies the release consisting + // of a list of flag revisions. FlagRevisionsRelease *FlagRevisionList `json:"flagRevisionsRelease,omitempty"` // FlagSets: Optional. Immutable. DEPRECATED: Use flag_sets_release instead. // Flag sets to be rolled out. Only one of flag_revisions, all_flags, or // flag_sets can be set. FlagSets []string `json:"flagSets,omitempty"` - // FlagSetsRelease: Optional. Immutable. Specifies the release consists of a + // FlagSetsRelease: Optional. Immutable. Specifies the release consisting of a // list of flag sets. FlagSetsRelease *FlagSetList `json:"flagSetsRelease,omitempty"` // Labels: Optional. The labels on the resource, which can be used for @@ -2974,8 +2972,8 @@ type UnitKind struct { // AppParams: AppParams contains the parameters for creating an AppHub // Application. AppParams *AppParams `json:"appParams,omitempty"` - // ApplicationTemplateComponent: Output only. Reference to component and - // revision in a composite ApplicationTemplate. + // ApplicationTemplateComponent: Optional. Reference to component and revision + // in a composite ApplicationTemplate. ApplicationTemplateComponent *ComponentRef `json:"applicationTemplateComponent,omitempty"` // BoundaryType: Optional. Output only. BoundaryType describes the type of // boundary the Unit Kind represents. diff --git a/secretmanager/v1/secretmanager-api.json b/secretmanager/v1/secretmanager-api.json index c4f9aaa30d8..6d57ff5d425 100644 --- a/secretmanager/v1/secretmanager-api.json +++ b/secretmanager/v1/secretmanager-api.json @@ -528,6 +528,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "enableManagedRotation": { + "description": "Enables the managed rotation feature for a Secret. This method can only be triggered once for a secret. In order to do further rotations, RotateSecret should be used. This method will add a secret version and update the password in Cloud SQL.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/secrets/{secretsId}:enableManagedRotation", + "httpMethod": "POST", + "id": "secretmanager.projects.locations.secrets.enableManagedRotation", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Secret to associate with the SecretVersion in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/secrets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:enableManagedRotation", + "request": { + "$ref": "EnableManagedRotationRequest" + }, + "response": { + "$ref": "SecretVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Gets metadata for a given Secret.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/secrets/{secretsId}", @@ -659,6 +687,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "rotateSecret": { + "description": "Do a managed rotation for a Secret. This can only be triggered after Managed rotation has been enabled. This method will add a secret version and update the password in Cloud SQL.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/secrets/{secretsId}:rotateSecret", + "httpMethod": "POST", + "id": "secretmanager.projects.locations.secrets.rotateSecret", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Secret to associate with the SecretVersion in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/secrets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:rotateSecret", + "request": { + "$ref": "RotateSecretRequest" + }, + "response": { + "$ref": "SecretVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified secret. Replaces any existing policy. Permissions on SecretVersions are enforced according to the policy set on the associated Secret.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/secrets/{secretsId}:setIamPolicy", @@ -993,6 +1049,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "enableManagedRotation": { + "description": "Enables the managed rotation feature for a Secret. This method can only be triggered once for a secret. In order to do further rotations, RotateSecret should be used. This method will add a secret version and update the password in Cloud SQL.", + "flatPath": "v1/projects/{projectsId}/secrets/{secretsId}:enableManagedRotation", + "httpMethod": "POST", + "id": "secretmanager.projects.secrets.enableManagedRotation", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Secret to associate with the SecretVersion in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.", + "location": "path", + "pattern": "^projects/[^/]+/secrets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:enableManagedRotation", + "request": { + "$ref": "EnableManagedRotationRequest" + }, + "response": { + "$ref": "SecretVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Gets metadata for a given Secret.", "flatPath": "v1/projects/{projectsId}/secrets/{secretsId}", @@ -1124,6 +1208,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "rotateSecret": { + "description": "Do a managed rotation for a Secret. This can only be triggered after Managed rotation has been enabled. This method will add a secret version and update the password in Cloud SQL.", + "flatPath": "v1/projects/{projectsId}/secrets/{secretsId}:rotateSecret", + "httpMethod": "POST", + "id": "secretmanager.projects.secrets.rotateSecret", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Secret to associate with the SecretVersion in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.", + "location": "path", + "pattern": "^projects/[^/]+/secrets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:rotateSecret", + "request": { + "$ref": "RotateSecretRequest" + }, + "response": { + "$ref": "SecretVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified secret. Replaces any existing policy. Permissions on SecretVersions are enforced according to the policy set on the associated Secret.", "flatPath": "v1/projects/{projectsId}/secrets/{secretsId}:setIamPolicy", @@ -1366,7 +1478,7 @@ } } }, - "revision": "20260424", + "revision": "20260705", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { @@ -1488,6 +1600,25 @@ }, "type": "object" }, + "CloudSQLSingleUserCredentials": { + "description": "These are the credentials required for Cloud SQL DB for Single user Managed Rotation.", + "id": "CloudSQLSingleUserCredentials", + "properties": { + "instanceId": { + "description": "Required. Instance ID of the Cloud SQL instance.", + "type": "string" + }, + "password": { + "description": "Optional. Password of the Cloud SQL instance. If this is not provided, a random password will be generated.", + "type": "string" + }, + "username": { + "description": "Required. Username of the Cloud SQL instance.", + "type": "string" + } + }, + "type": "object" + }, "CustomerManagedEncryption": { "description": "Configuration for encrypting secret payloads using customer-managed encryption keys (CMEK).", "id": "CustomerManagedEncryption", @@ -1538,6 +1669,17 @@ "properties": {}, "type": "object" }, + "EnableManagedRotationRequest": { + "description": "Request message for SecretManagerService.EnableManagedRotation.", + "id": "EnableManagedRotationRequest", + "properties": { + "cloudSqlSingleUserCredentials": { + "$ref": "CloudSQLSingleUserCredentials", + "description": "Credentials required for Cloud SQL DB for Single user Managed Rotation." + } + }, + "type": "object" + }, "EnableSecretVersionRequest": { "description": "Request message for SecretManagerService.EnableSecretVersion.", "id": "EnableSecretVersionRequest", @@ -1670,6 +1812,33 @@ }, "type": "object" }, + "ManagedRotationStatus": { + "description": "Represents the status of a managed rotation. This is applicable only to Typed Secrets. It indicates whether the rotation is active and any errors that may have occurred during the asynchronous managed rotation.", + "id": "ManagedRotationStatus", + "properties": { + "error": { + "$ref": "Status", + "description": "Output only. Displays customer-facing issues that occurred during an asynchronous managed rotation. For example, if there are some permission errors.", + "readOnly": true + }, + "state": { + "description": "Output only. Indicates whether the Managed Rotation is active or not.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "INACTIVE" + ], + "enumDescriptions": [ + "Not specified. This value is unused and invalid.", + "Indicates that the Managed rotation is ACTIVE.", + "Indicates that the Managed rotation is INACTIVE." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", @@ -1872,10 +2041,38 @@ }, "type": "object" }, + "ResourcePolicyMember": { + "description": "Output-only policy member strings of a Google Cloud resource's built-in identity.", + "id": "ResourcePolicyMember", + "properties": { + "iamPolicyNamePrincipal": { + "description": "Output only. IAM policy binding member referring to a Google Cloud resource by user-assigned name (https://google.aip.dev/122). If a resource is deleted and recreated with the same name, the binding will be applicable to the new resource. Example: `principal://parametermanager.googleapis.com/projects/12345/name/locations/us-central1-a/parameters/my-parameter`", + "readOnly": true, + "type": "string" + }, + "iamPolicyUidPrincipal": { + "description": "Output only. IAM policy binding member referring to a Google Cloud resource by system-assigned unique identifier (https://google.aip.dev/148#uid). If a resource is deleted and recreated with the same name, the binding will not be applicable to the new resource Example: `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5`", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "RotateSecretRequest": { + "description": "Request message for SecretManagerService.RotateSecret.", + "id": "RotateSecretRequest", + "properties": {}, + "type": "object" + }, "Rotation": { "description": "The rotation time and period for a Secret. At next_rotation_time, Secret Manager will send a Pub/Sub notification to the topics configured on the Secret. Secret.topics must be set to configure rotation.", "id": "Rotation", "properties": { + "managedRotationStatus": { + "$ref": "ManagedRotationStatus", + "description": "Output only. The current status of the managed rotation. This field is only applicable to Typed Secrets. This field is set by the service and cannot be set by the user.", + "readOnly": true + }, "nextRotationTime": { "description": "Optional. Timestamp in UTC at which the Secret is scheduled to rotate. Cannot be set to less than 300s (5 min) in the future and at most 3153600000s (100 years). next_rotation_time MUST be set if rotation_period is set.", "format": "google-datetime", @@ -1931,6 +2128,11 @@ "readOnly": true, "type": "string" }, + "policyMember": { + "$ref": "ResourcePolicyMember", + "description": "Output only. Defines the policy member for the secret. This will be used to check if the caller has the permission to perform certain operations on the typed secret.", + "readOnly": true + }, "replication": { "$ref": "Replication", "description": "Optional. Immutable. The replication policy of the secret data attached to the Secret. The replication policy cannot be changed after the Secret has been created." @@ -1939,6 +2141,26 @@ "$ref": "Rotation", "description": "Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy." }, + "secretType": { + "description": "Optional. Immutable. This defines the type of the secret. Enforces certain structural requirements on the SecretVersions. For secret of type UNSPECIFIED, the SecretVersions can be of any type.", + "enum": [ + "SECRET_TYPE_UNSPECIFIED", + "CLOUD_SQL_DB_CREDENTIALS", + "ACCESS_KEY", + "CERTIFICATE", + "OTHER_DB_CREDENTIALS", + "OTHER" + ], + "enumDescriptions": [ + "Applicable to all secrets which do not have any restriction on the SecretVersions.", + "Applicable to secrets which are used for the managed rotation feature for Cloud SQL Single User.", + "Applicable to secrets where the payload contains an access key.", + "Applicable to secrets where the payload contains a certificate.", + "Applicable to secrets where the payload contains database credentials.", + "Applicable to secrets whose type doesn't belong to any of the above defined types." + ], + "type": "string" + }, "tags": { "additionalProperties": { "type": "string" diff --git a/secretmanager/v1/secretmanager-gen.go b/secretmanager/v1/secretmanager-gen.go index efbf50ad621..1474760d6d7 100644 --- a/secretmanager/v1/secretmanager-gen.go +++ b/secretmanager/v1/secretmanager-gen.go @@ -504,6 +504,34 @@ func (s Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// CloudSQLSingleUserCredentials: These are the credentials required for Cloud +// SQL DB for Single user Managed Rotation. +type CloudSQLSingleUserCredentials struct { + // InstanceId: Required. Instance ID of the Cloud SQL instance. + InstanceId string `json:"instanceId,omitempty"` + // Password: Optional. Password of the Cloud SQL instance. If this is not + // provided, a random password will be generated. + Password string `json:"password,omitempty"` + // Username: Required. Username of the Cloud SQL instance. + Username string `json:"username,omitempty"` + // ForceSendFields is a list of field names (e.g. "InstanceId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "InstanceId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s CloudSQLSingleUserCredentials) MarshalJSON() ([]byte, error) { + type NoMethod CloudSQLSingleUserCredentials + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // CustomerManagedEncryption: Configuration for encrypting secret payloads // using customer-managed encryption keys (CMEK). type CustomerManagedEncryption struct { @@ -616,6 +644,30 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } +// EnableManagedRotationRequest: Request message for +// SecretManagerService.EnableManagedRotation. +type EnableManagedRotationRequest struct { + // CloudSqlSingleUserCredentials: Credentials required for Cloud SQL DB for + // Single user Managed Rotation. + CloudSqlSingleUserCredentials *CloudSQLSingleUserCredentials `json:"cloudSqlSingleUserCredentials,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "CloudSqlSingleUserCredentials") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CloudSqlSingleUserCredentials") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s EnableManagedRotationRequest) MarshalJSON() ([]byte, error) { + type NoMethod EnableManagedRotationRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // EnableSecretVersionRequest: Request message for // SecretManagerService.EnableSecretVersion. type EnableSecretVersionRequest struct { @@ -820,6 +872,40 @@ func (s Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ManagedRotationStatus: Represents the status of a managed rotation. This is +// applicable only to Typed Secrets. It indicates whether the rotation is +// active and any errors that may have occurred during the asynchronous managed +// rotation. +type ManagedRotationStatus struct { + // Error: Output only. Displays customer-facing issues that occurred during an + // asynchronous managed rotation. For example, if there are some permission + // errors. + Error *Status `json:"error,omitempty"` + // State: Output only. Indicates whether the Managed Rotation is active or not. + // + // Possible values: + // "STATE_UNSPECIFIED" - Not specified. This value is unused and invalid. + // "ACTIVE" - Indicates that the Managed rotation is ACTIVE. + // "INACTIVE" - Indicates that the Managed rotation is INACTIVE. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "Error") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Error") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ManagedRotationStatus) MarshalJSON() ([]byte, error) { + type NoMethod ManagedRotationStatus + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Operation: This resource represents a long-running operation that is the // result of a network API call. type Operation struct { @@ -1140,10 +1226,54 @@ func (s ReplicationStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ResourcePolicyMember: Output-only policy member strings of a Google Cloud +// resource's built-in identity. +type ResourcePolicyMember struct { + // IamPolicyNamePrincipal: Output only. IAM policy binding member referring to + // a Google Cloud resource by user-assigned name (https://google.aip.dev/122). + // If a resource is deleted and recreated with the same name, the binding will + // be applicable to the new resource. Example: + // `principal://parametermanager.googleapis.com/projects/12345/name/locations/us + // -central1-a/parameters/my-parameter` + IamPolicyNamePrincipal string `json:"iamPolicyNamePrincipal,omitempty"` + // IamPolicyUidPrincipal: Output only. IAM policy binding member referring to a + // Google Cloud resource by system-assigned unique identifier + // (https://google.aip.dev/148#uid). If a resource is deleted and recreated + // with the same name, the binding will not be applicable to the new resource + // Example: + // `principal://parametermanager.googleapis.com/projects/12345/uid/locations/us- + // central1-a/parameters/a918fed5` + IamPolicyUidPrincipal string `json:"iamPolicyUidPrincipal,omitempty"` + // ForceSendFields is a list of field names (e.g. "IamPolicyNamePrincipal") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "IamPolicyNamePrincipal") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ResourcePolicyMember) MarshalJSON() ([]byte, error) { + type NoMethod ResourcePolicyMember + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// RotateSecretRequest: Request message for SecretManagerService.RotateSecret. +type RotateSecretRequest struct { +} + // Rotation: The rotation time and period for a Secret. At next_rotation_time, // Secret Manager will send a Pub/Sub notification to the topics configured on // the Secret. Secret.topics must be set to configure rotation. type Rotation struct { + // ManagedRotationStatus: Output only. The current status of the managed + // rotation. This field is only applicable to Typed Secrets. This field is set + // by the service and cannot be set by the user. + ManagedRotationStatus *ManagedRotationStatus `json:"managedRotationStatus,omitempty"` // NextRotationTime: Optional. Timestamp in UTC at which the Secret is // scheduled to rotate. Cannot be set to less than 300s (5 min) in the future // and at most 3153600000s (100 years). next_rotation_time MUST be set if @@ -1155,15 +1285,15 @@ type Rotation struct { // next_rotation_time will be advanced by this period when the service // automatically sends rotation notifications. RotationPeriod string `json:"rotationPeriod,omitempty"` - // ForceSendFields is a list of field names (e.g. "NextRotationTime") to + // ForceSendFields is a list of field names (e.g. "ManagedRotationStatus") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextRotationTime") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "ManagedRotationStatus") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -1211,6 +1341,10 @@ type Secret struct { // Name: Output only. The resource name of the Secret in the format // `projects/*/secrets/*`. Name string `json:"name,omitempty"` + // PolicyMember: Output only. Defines the policy member for the secret. This + // will be used to check if the caller has the permission to perform certain + // operations on the typed secret. + PolicyMember *ResourcePolicyMember `json:"policyMember,omitempty"` // Replication: Optional. Immutable. The replication policy of the secret data // attached to the Secret. The replication policy cannot be changed after the // Secret has been created. @@ -1218,6 +1352,24 @@ type Secret struct { // Rotation: Optional. Rotation policy attached to the Secret. May be excluded // if there is no rotation policy. Rotation *Rotation `json:"rotation,omitempty"` + // SecretType: Optional. Immutable. This defines the type of the secret. + // Enforces certain structural requirements on the SecretVersions. For secret + // of type UNSPECIFIED, the SecretVersions can be of any type. + // + // Possible values: + // "SECRET_TYPE_UNSPECIFIED" - Applicable to all secrets which do not have + // any restriction on the SecretVersions. + // "CLOUD_SQL_DB_CREDENTIALS" - Applicable to secrets which are used for the + // managed rotation feature for Cloud SQL Single User. + // "ACCESS_KEY" - Applicable to secrets where the payload contains an access + // key. + // "CERTIFICATE" - Applicable to secrets where the payload contains a + // certificate. + // "OTHER_DB_CREDENTIALS" - Applicable to secrets where the payload contains + // database credentials. + // "OTHER" - Applicable to secrets whose type doesn't belong to any of the + // above defined types. + SecretType string `json:"secretType,omitempty"` // Tags: Optional. Input only. Immutable. Mapping of Tag keys/values directly // bound to this resource. For example: "123/environment": "production", // "123/costCenter": "marketing" Tags are used to organize and group resources. @@ -2156,6 +2308,114 @@ func (c *ProjectsLocationsSecretsDeleteCall) Do(opts ...googleapi.CallOption) (* return ret, nil } +type ProjectsLocationsSecretsEnableManagedRotationCall struct { + s *Service + parent string + enablemanagedrotationrequest *EnableManagedRotationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// EnableManagedRotation: Enables the managed rotation feature for a Secret. +// This method can only be triggered once for a secret. In order to do further +// rotations, RotateSecret should be used. This method will add a secret +// version and update the password in Cloud SQL. +// +// - parent: The resource name of the Secret to associate with the +// SecretVersion in the format `projects/*/secrets/*` or +// `projects/*/locations/*/secrets/*`. +func (r *ProjectsLocationsSecretsService) EnableManagedRotation(parent string, enablemanagedrotationrequest *EnableManagedRotationRequest) *ProjectsLocationsSecretsEnableManagedRotationCall { + c := &ProjectsLocationsSecretsEnableManagedRotationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.enablemanagedrotationrequest = enablemanagedrotationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsSecretsEnableManagedRotationCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecretsEnableManagedRotationCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsSecretsEnableManagedRotationCall) Context(ctx context.Context) *ProjectsLocationsSecretsEnableManagedRotationCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsSecretsEnableManagedRotationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSecretsEnableManagedRotationCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.enablemanagedrotationrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:enableManagedRotation") + 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{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "secretmanager.projects.locations.secrets.enableManagedRotation", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "secretmanager.projects.locations.secrets.enableManagedRotation" call. +// Any non-2xx status code is an error. Response headers are in either +// *SecretVersion.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 *ProjectsLocationsSecretsEnableManagedRotationCall) Do(opts ...googleapi.CallOption) (*SecretVersion, 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 := &SecretVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "secretmanager.projects.locations.secrets.enableManagedRotation", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsSecretsGetCall struct { s *Service name string @@ -2663,6 +2923,113 @@ func (c *ProjectsLocationsSecretsPatchCall) Do(opts ...googleapi.CallOption) (*S return ret, nil } +type ProjectsLocationsSecretsRotateSecretCall struct { + s *Service + parent string + rotatesecretrequest *RotateSecretRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RotateSecret: Do a managed rotation for a Secret. This can only be triggered +// after Managed rotation has been enabled. This method will add a secret +// version and update the password in Cloud SQL. +// +// - parent: The resource name of the Secret to associate with the +// SecretVersion in the format `projects/*/secrets/*` or +// `projects/*/locations/*/secrets/*`. +func (r *ProjectsLocationsSecretsService) RotateSecret(parent string, rotatesecretrequest *RotateSecretRequest) *ProjectsLocationsSecretsRotateSecretCall { + c := &ProjectsLocationsSecretsRotateSecretCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.rotatesecretrequest = rotatesecretrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsSecretsRotateSecretCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecretsRotateSecretCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsSecretsRotateSecretCall) Context(ctx context.Context) *ProjectsLocationsSecretsRotateSecretCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsSecretsRotateSecretCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSecretsRotateSecretCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.rotatesecretrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:rotateSecret") + 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{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "secretmanager.projects.locations.secrets.rotateSecret", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "secretmanager.projects.locations.secrets.rotateSecret" call. +// Any non-2xx status code is an error. Response headers are in either +// *SecretVersion.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 *ProjectsLocationsSecretsRotateSecretCall) Do(opts ...googleapi.CallOption) (*SecretVersion, 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 := &SecretVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "secretmanager.projects.locations.secrets.rotateSecret", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsSecretsSetIamPolicyCall struct { s *Service resource string @@ -3916,6 +4283,114 @@ func (c *ProjectsSecretsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, er return ret, nil } +type ProjectsSecretsEnableManagedRotationCall struct { + s *Service + parent string + enablemanagedrotationrequest *EnableManagedRotationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// EnableManagedRotation: Enables the managed rotation feature for a Secret. +// This method can only be triggered once for a secret. In order to do further +// rotations, RotateSecret should be used. This method will add a secret +// version and update the password in Cloud SQL. +// +// - parent: The resource name of the Secret to associate with the +// SecretVersion in the format `projects/*/secrets/*` or +// `projects/*/locations/*/secrets/*`. +func (r *ProjectsSecretsService) EnableManagedRotation(parent string, enablemanagedrotationrequest *EnableManagedRotationRequest) *ProjectsSecretsEnableManagedRotationCall { + c := &ProjectsSecretsEnableManagedRotationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.enablemanagedrotationrequest = enablemanagedrotationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsSecretsEnableManagedRotationCall) Fields(s ...googleapi.Field) *ProjectsSecretsEnableManagedRotationCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsSecretsEnableManagedRotationCall) Context(ctx context.Context) *ProjectsSecretsEnableManagedRotationCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsSecretsEnableManagedRotationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsSecretsEnableManagedRotationCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.enablemanagedrotationrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:enableManagedRotation") + 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{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "secretmanager.projects.secrets.enableManagedRotation", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "secretmanager.projects.secrets.enableManagedRotation" call. +// Any non-2xx status code is an error. Response headers are in either +// *SecretVersion.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 *ProjectsSecretsEnableManagedRotationCall) Do(opts ...googleapi.CallOption) (*SecretVersion, 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 := &SecretVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "secretmanager.projects.secrets.enableManagedRotation", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsSecretsGetCall struct { s *Service name string @@ -4423,6 +4898,113 @@ func (c *ProjectsSecretsPatchCall) Do(opts ...googleapi.CallOption) (*Secret, er return ret, nil } +type ProjectsSecretsRotateSecretCall struct { + s *Service + parent string + rotatesecretrequest *RotateSecretRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RotateSecret: Do a managed rotation for a Secret. This can only be triggered +// after Managed rotation has been enabled. This method will add a secret +// version and update the password in Cloud SQL. +// +// - parent: The resource name of the Secret to associate with the +// SecretVersion in the format `projects/*/secrets/*` or +// `projects/*/locations/*/secrets/*`. +func (r *ProjectsSecretsService) RotateSecret(parent string, rotatesecretrequest *RotateSecretRequest) *ProjectsSecretsRotateSecretCall { + c := &ProjectsSecretsRotateSecretCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.rotatesecretrequest = rotatesecretrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsSecretsRotateSecretCall) Fields(s ...googleapi.Field) *ProjectsSecretsRotateSecretCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsSecretsRotateSecretCall) Context(ctx context.Context) *ProjectsSecretsRotateSecretCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsSecretsRotateSecretCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsSecretsRotateSecretCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.rotatesecretrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:rotateSecret") + 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{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "secretmanager.projects.secrets.rotateSecret", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "secretmanager.projects.secrets.rotateSecret" call. +// Any non-2xx status code is an error. Response headers are in either +// *SecretVersion.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 *ProjectsSecretsRotateSecretCall) Do(opts ...googleapi.CallOption) (*SecretVersion, 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 := &SecretVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "secretmanager.projects.secrets.rotateSecret", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsSecretsSetIamPolicyCall struct { s *Service resource string diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index 03b6202ae71..d24d71981be 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -741,12 +741,12 @@ }, "resolve": { "description": "Retrieves connect settings about a Cloud SQL instance using the instance DNS name.", - "flatPath": "v1/dns/{dnsName}/locations/{location}:resolveConnectSettings", + "flatPath": "v1/locations/{location}/dns/{dnsName}:resolveConnectSettings", "httpMethod": "GET", "id": "sql.connect.resolve", "parameterOrder": [ - "dnsName", - "location" + "location", + "dnsName" ], "parameters": { "dnsName": { @@ -762,7 +762,7 @@ "type": "string" } }, - "path": "v1/dns/{dnsName}/locations/{location}:resolveConnectSettings", + "path": "v1/locations/{location}/dns/{dnsName}:resolveConnectSettings", "response": { "$ref": "ConnectSettings" }, @@ -1765,6 +1765,16 @@ "location": "path", "required": true, "type": "string" + }, + "reconcilePscNetworking": { + "description": "Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.", + "location": "query", + "type": "boolean" + }, + "reconcilePscNetworkingForce": { + "description": "Optional. Set PSC config to the same value as the existing config and force reconcile the PSC networking.", + "location": "query", + "type": "boolean" } }, "path": "v1/projects/{project}/instances/{instance}", @@ -3059,7 +3069,7 @@ } } }, - "revision": "20260529", + "revision": "20260627", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -3561,7 +3571,8 @@ "type": "boolean" }, "replicationLogArchivingEnabled": { - "description": "Reserved for future use.", + "deprecated": true, + "description": "Optional. Deprecated: replication_log_archiving_enabled is deprecated and will be removed from a future version of the API. Use point_in_time_recovery_enabled instead.", "type": "boolean" }, "startTime": { @@ -4151,6 +4162,11 @@ ], "type": "string" }, + "connectionName": { + "description": "Optional. Output only. Connection name of the Cloud SQL instance used in connection strings, in the format project:region:instance.", + "readOnly": true, + "type": "string" + }, "customSubjectAlternativeNames": { "description": "Custom subject alternative names for the server certificate.", "items": { @@ -7281,10 +7297,25 @@ "description": "Performance capture configuration.", "id": "PerformanceCaptureConfig", "properties": { + "cpuUtilizationThresholdPercent": { + "description": "Optional. Specifies the minimum percentage of CPU utilization to trigger the performance capture. Valid integers range from `10` to `99`. Enter `0` to disable the check.", + "format": "int32", + "type": "integer" + }, "enabled": { "description": "Optional. Enables or disables the performance capture feature.", "type": "boolean" }, + "historyListLengthThresholdCount": { + "description": "Optional. Specifies the minimum number of undo log entries in the history list length to trigger the performance capture. Valid integers range from `10000` to `10000000`. Enter `0` to disable the check.", + "format": "int32", + "type": "integer" + }, + "memoryUsageThresholdPercent": { + "description": "Optional. Specifies the minimum percentage of memory usage to trigger the performance capture. Valid integers range from `10` to `99`. Enter `0` to disable the check.", + "format": "int32", + "type": "integer" + }, "probeThreshold": { "description": "Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.", "format": "int32", @@ -7305,10 +7336,46 @@ "format": "int32", "type": "integer" }, + "semaphoreWaitThresholdCount": { + "description": "Optional. Specifies the minimum allowed number of semaphore waits to trigger the performance capture. Valid integers range from `10` to `10000`. Enter `0` to disable the check.", + "format": "int32", + "type": "integer" + }, "transactionDurationThreshold": { "description": "Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.", "format": "int32", "type": "integer" + }, + "transactionKillExcludedUserHosts": { + "description": "Optional. Specifies a customer-defined list of users to exclude from transaction termination. Entries can be in the format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', excluding the user from any host. Wildcard '%' is allowed in the host part of the 'user@host' format. Example: `[\"app_user\", \"db_admin@10.1.2.3\", \"report_user@%\"]`", + "items": { + "type": "string" + }, + "type": "array" + }, + "transactionKillThresholdSeconds": { + "description": "Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts terminating it. Valid integers range from `60` to `604800` (7 days). Enter `0` to disable. If enabled (i.e., \u003e 0), this value must be greater than or equal to `transaction_duration_threshold`. Configurations where `0 \u003c transaction_kill_threshold_seconds \u003c transaction_duration_threshold` will be rejected.", + "format": "int32", + "type": "integer" + }, + "transactionKillType": { + "description": "Optional. Determines which transactions are allowed to be terminated when they exceed `transaction_kill_threshold_seconds`. This allows protecting write-heavy transactions from auto-termination if desired. Defaults to `READ_ONLY_TRANSACTIONS` if unspecified.", + "enum": [ + "TRANSACTION_KILL_TYPE_UNSPECIFIED", + "READ_ONLY_TRANSACTIONS", + "ALL_TRANSACTIONS" + ], + "enumDescriptions": [ + "Unspecified.", + "Only read-only transactions are eligible for termination.", + "All transactions are eligible for termination, including those with write operations (such as INSERT, UPDATE, DELETE, or DDL)." + ], + "type": "string" + }, + "transactionLockWaitThresholdCount": { + "description": "Optional. Specifies the minimum allowed number of transactions in lock wait state to trigger the performance capture. Valid integers range from `10` to `10000`. Enter `0` to disable the check.", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -7700,6 +7767,23 @@ "description": "Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.", "type": "string" }, + "instanceAutoDnsStatus": { + "description": "Output only. The status of automated DNS provisioning.", + "enum": [ + "AUTO_DNS_STATUS_UNSPECIFIED", + "AUTO_DNS_OK", + "AUTO_DNS_FAILED", + "AUTO_DNS_UNKNOWN" + ], + "enumDescriptions": [ + "Unspecified status. This means status is missing from dependency service.", + "DNS provisioning is OK.", + "DNS provisioning failed.", + "DNS provisioning status is not recognized by Cloud SQL." + ], + "readOnly": true, + "type": "string" + }, "ipAddress": { "description": "The IP address of the consumer endpoint.", "type": "string" @@ -7717,6 +7801,23 @@ "status": { "description": "The connection status of the consumer endpoint.", "type": "string" + }, + "writeEndpointAutoDnsStatus": { + "description": "Output only. The status of automated DNS provisioning for the write endpoint.", + "enum": [ + "AUTO_DNS_STATUS_UNSPECIFIED", + "AUTO_DNS_OK", + "AUTO_DNS_FAILED", + "AUTO_DNS_UNKNOWN" + ], + "enumDescriptions": [ + "Unspecified status. This means status is missing from dependency service.", + "DNS provisioning is OK.", + "DNS provisioning failed.", + "DNS provisioning status is not recognized by Cloud SQL." + ], + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index aa13068cfff..60c960265b5 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -682,7 +682,9 @@ type BackupConfiguration struct { Location string `json:"location,omitempty"` // PointInTimeRecoveryEnabled: Whether point in time recovery is enabled. PointInTimeRecoveryEnabled bool `json:"pointInTimeRecoveryEnabled,omitempty"` - // ReplicationLogArchivingEnabled: Reserved for future use. + // ReplicationLogArchivingEnabled: Optional. Deprecated: + // replication_log_archiving_enabled is deprecated and will be removed from a + // future version of the API. Use point_in_time_recovery_enabled instead. ReplicationLogArchivingEnabled bool `json:"replicationLogArchivingEnabled,omitempty"` // StartTime: Start time for the daily backup configuration in UTC timezone in // the 24 hour format - `HH:MM`. @@ -1201,6 +1203,9 @@ type ConnectSettings struct { // "SECOND_GEN" - V2 speckle instance. // "EXTERNAL" - On premises instance. BackendType string `json:"backendType,omitempty"` + // ConnectionName: Optional. Output only. Connection name of the Cloud SQL + // instance used in connection strings, in the format project:region:instance. + ConnectionName string `json:"connectionName,omitempty"` // CustomSubjectAlternativeNames: Custom subject alternative names for the // server certificate. CustomSubjectAlternativeNames []string `json:"customSubjectAlternativeNames,omitempty"` @@ -4528,8 +4533,21 @@ func (s PerformDiskShrinkContext) MarshalJSON() ([]byte, error) { // PerformanceCaptureConfig: Performance capture configuration. type PerformanceCaptureConfig struct { + // CpuUtilizationThresholdPercent: Optional. Specifies the minimum percentage + // of CPU utilization to trigger the performance capture. Valid integers range + // from `10` to `99`. Enter `0` to disable the check. + CpuUtilizationThresholdPercent int64 `json:"cpuUtilizationThresholdPercent,omitempty"` // Enabled: Optional. Enables or disables the performance capture feature. Enabled bool `json:"enabled,omitempty"` + // HistoryListLengthThresholdCount: Optional. Specifies the minimum number of + // undo log entries in the history list length to trigger the performance + // capture. Valid integers range from `10000` to `10000000`. Enter `0` to + // disable the check. + HistoryListLengthThresholdCount int64 `json:"historyListLengthThresholdCount,omitempty"` + // MemoryUsageThresholdPercent: Optional. Specifies the minimum percentage of + // memory usage to trigger the performance capture. Valid integers range from + // `10` to `99`. Enter `0` to disable the check. + MemoryUsageThresholdPercent int64 `json:"memoryUsageThresholdPercent,omitempty"` // ProbeThreshold: Optional. Specifies the minimum number of consecutive probe // threshold that triggers performance capture. ProbeThreshold int64 `json:"probeThreshold,omitempty"` @@ -4545,19 +4563,57 @@ type PerformanceCaptureConfig struct { // seconds replica must be lagging behind primary instance to trigger the // performance capture on replica. SecondsBehindSourceThreshold int64 `json:"secondsBehindSourceThreshold,omitempty"` + // SemaphoreWaitThresholdCount: Optional. Specifies the minimum allowed number + // of semaphore waits to trigger the performance capture. Valid integers range + // from `10` to `10000`. Enter `0` to disable the check. + SemaphoreWaitThresholdCount int64 `json:"semaphoreWaitThresholdCount,omitempty"` // TransactionDurationThreshold: Optional. Specifies the amount of time in // seconds that a transaction needs to have been open before the watcher starts // recording it. TransactionDurationThreshold int64 `json:"transactionDurationThreshold,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. See + // TransactionKillExcludedUserHosts: Optional. Specifies a customer-defined + // list of users to exclude from transaction termination. Entries can be in the + // format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', + // excluding the user from any host. Wildcard '%' is allowed in the host part + // of the 'user@host' format. Example: `["app_user", "db_admin@10.1.2.3", + // "report_user@%"]` + TransactionKillExcludedUserHosts []string `json:"transactionKillExcludedUserHosts,omitempty"` + // TransactionKillThresholdSeconds: Optional. Specifies the amount of time in + // seconds that a transaction needs to have been open before the watcher starts + // terminating it. Valid integers range from `60` to `604800` (7 days). Enter + // `0` to disable. If enabled (i.e., > 0), this value must be greater than or + // equal to `transaction_duration_threshold`. Configurations where `0 < + // transaction_kill_threshold_seconds < transaction_duration_threshold` will be + // rejected. + TransactionKillThresholdSeconds int64 `json:"transactionKillThresholdSeconds,omitempty"` + // TransactionKillType: Optional. Determines which transactions are allowed to + // be terminated when they exceed `transaction_kill_threshold_seconds`. This + // allows protecting write-heavy transactions from auto-termination if desired. + // Defaults to `READ_ONLY_TRANSACTIONS` if unspecified. + // + // Possible values: + // "TRANSACTION_KILL_TYPE_UNSPECIFIED" - Unspecified. + // "READ_ONLY_TRANSACTIONS" - Only read-only transactions are eligible for + // termination. + // "ALL_TRANSACTIONS" - All transactions are eligible for termination, + // including those with write operations (such as INSERT, UPDATE, DELETE, or + // DDL). + TransactionKillType string `json:"transactionKillType,omitempty"` + // TransactionLockWaitThresholdCount: Optional. Specifies the minimum allowed + // number of transactions in lock wait state to trigger the performance + // capture. Valid integers range from `10` to `10000`. Enter `0` to disable the + // check. + TransactionLockWaitThresholdCount int64 `json:"transactionLockWaitThresholdCount,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "CpuUtilizationThresholdPercent") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Enabled") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "CpuUtilizationThresholdPercent") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -4853,6 +4909,17 @@ type PscAutoConnectionConfig struct { // project of this consumer endpoint. This is only applicable if // `consumer_network` is a shared VPC network. ConsumerProject string `json:"consumerProject,omitempty"` + // InstanceAutoDnsStatus: Output only. The status of automated DNS + // provisioning. + // + // Possible values: + // "AUTO_DNS_STATUS_UNSPECIFIED" - Unspecified status. This means status is + // missing from dependency service. + // "AUTO_DNS_OK" - DNS provisioning is OK. + // "AUTO_DNS_FAILED" - DNS provisioning failed. + // "AUTO_DNS_UNKNOWN" - DNS provisioning status is not recognized by Cloud + // SQL. + InstanceAutoDnsStatus string `json:"instanceAutoDnsStatus,omitempty"` // IpAddress: The IP address of the consumer endpoint. IpAddress string `json:"ipAddress,omitempty"` // ServiceConnectionPolicy: Output only. The service connection policy created @@ -4866,6 +4933,17 @@ type PscAutoConnectionConfig struct { ServiceConnectionPolicyCreationResult string `json:"serviceConnectionPolicyCreationResult,omitempty"` // Status: The connection status of the consumer endpoint. Status string `json:"status,omitempty"` + // WriteEndpointAutoDnsStatus: Output only. The status of automated DNS + // provisioning for the write endpoint. + // + // Possible values: + // "AUTO_DNS_STATUS_UNSPECIFIED" - Unspecified status. This means status is + // missing from dependency service. + // "AUTO_DNS_OK" - DNS provisioning is OK. + // "AUTO_DNS_FAILED" - DNS provisioning failed. + // "AUTO_DNS_UNKNOWN" - DNS provisioning status is not recognized by Cloud + // SQL. + WriteEndpointAutoDnsStatus string `json:"writeEndpointAutoDnsStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "ConsumerNetwork") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -8103,8 +8181,8 @@ func (c *ConnectGetCall) Do(opts ...googleapi.CallOption) (*ConnectSettings, err type ConnectResolveCall struct { s *Service - dnsName string location string + dnsName string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context @@ -8116,10 +8194,10 @@ type ConnectResolveCall struct { // // - dnsName: Cloud SQL instance ID. This does not include the project ID. // - location: The region of the instance. -func (r *ConnectService) Resolve(dnsName string, location string) *ConnectResolveCall { +func (r *ConnectService) Resolve(location string, dnsName string) *ConnectResolveCall { c := &ConnectResolveCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.dnsName = dnsName c.location = location + c.dnsName = dnsName return c } @@ -8161,7 +8239,7 @@ func (c *ConnectResolveCall) doRequest(alt string) (*http.Response, error) { } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/dns/{dnsName}/locations/{location}:resolveConnectSettings") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/locations/{location}/dns/{dnsName}:resolveConnectSettings") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -8169,8 +8247,8 @@ func (c *ConnectResolveCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "dnsName": c.dnsName, "location": c.location, + "dnsName": c.dnsName, }) c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "sql.connect.resolve", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) @@ -11310,6 +11388,22 @@ func (r *InstancesService) Patch(project string, instance string, databaseinstan return c } +// ReconcilePscNetworking sets the optional parameter "reconcilePscNetworking": +// Set PSC config to the same value as the existing config to reconcile the PSC +// networking. +func (c *InstancesPatchCall) ReconcilePscNetworking(reconcilePscNetworking bool) *InstancesPatchCall { + c.urlParams_.Set("reconcilePscNetworking", fmt.Sprint(reconcilePscNetworking)) + return c +} + +// ReconcilePscNetworkingForce sets the optional parameter +// "reconcilePscNetworkingForce": Set PSC config to the same value as the +// existing config and force reconcile the PSC networking. +func (c *InstancesPatchCall) ReconcilePscNetworkingForce(reconcilePscNetworkingForce bool) *InstancesPatchCall { + c.urlParams_.Set("reconcilePscNetworkingForce", fmt.Sprint(reconcilePscNetworkingForce)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index 127078203fb..761b6cc3162 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -741,12 +741,12 @@ }, "resolve": { "description": "Retrieves connect settings about a Cloud SQL instance using the instance DNS name.", - "flatPath": "sql/v1beta4/dns/{dnsName}/locations/{location}:resolveConnectSettings", + "flatPath": "sql/v1beta4/locations/{location}/dns/{dnsName}:resolveConnectSettings", "httpMethod": "GET", "id": "sql.connect.resolve", "parameterOrder": [ - "dnsName", - "location" + "location", + "dnsName" ], "parameters": { "dnsName": { @@ -762,7 +762,7 @@ "type": "string" } }, - "path": "sql/v1beta4/dns/{dnsName}/locations/{location}:resolveConnectSettings", + "path": "sql/v1beta4/locations/{location}/dns/{dnsName}:resolveConnectSettings", "response": { "$ref": "ConnectSettings" }, @@ -1765,6 +1765,16 @@ "location": "path", "required": true, "type": "string" + }, + "reconcilePscNetworking": { + "description": "Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.", + "location": "query", + "type": "boolean" + }, + "reconcilePscNetworkingForce": { + "description": "Optional. Set PSC config to the same value as the existing config and force reconcile the PSC networking.", + "location": "query", + "type": "boolean" } }, "path": "sql/v1beta4/projects/{project}/instances/{instance}", @@ -3059,7 +3069,7 @@ } } }, - "revision": "20260529", + "revision": "20260627", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -3561,7 +3571,8 @@ "type": "boolean" }, "replicationLogArchivingEnabled": { - "description": "Reserved for future use.", + "deprecated": true, + "description": "Optional. Deprecated: replication_log_archiving_enabled is deprecated and will be removed from a future version of the API. Use point_in_time_recovery_enabled instead.", "type": "boolean" }, "startTime": { @@ -4151,6 +4162,11 @@ ], "type": "string" }, + "connectionName": { + "description": "Optional. Output only. Connection name of the Cloud SQL instance used in connection strings, in the format project:region:instance.", + "readOnly": true, + "type": "string" + }, "customSubjectAlternativeNames": { "description": "Custom subject alternative names for the server certificate.", "items": { @@ -6933,7 +6949,8 @@ "REPAIR_READ_POOL", "CREATE_READ_POOL", "PRE_CHECK_MAJOR_VERSION_UPGRADE", - "SETUP_MIGRATION" + "SETUP_MIGRATION", + "AGENT_SEND_MESSAGE" ], "enumDeprecated": [ false, @@ -6989,6 +7006,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -7045,7 +7063,8 @@ "Repairs entire read pool or specified read pool nodes in the read pool.", "Creates a Cloud SQL read pool instance.", "Pre-checks for major version upgrade.", - "This operation type represents individual steps in a multi-step setup migration workflow: including configuration, replication, switchover/back, and data reseeding, as defined by operation's intent." + "This operation type represents individual steps in a multi-step setup migration workflow: including configuration, replication, switchover/back, and data reseeding, as defined by operation's intent.", + "Sends a message to a Cloud SQL agent." ], "type": "string" }, @@ -7282,10 +7301,25 @@ "description": "Performance capture configuration.", "id": "PerformanceCaptureConfig", "properties": { + "cpuUtilizationThresholdPercent": { + "description": "Optional. Specifies the minimum percentage of CPU utilization to trigger the performance capture. Valid integers range from `10` to `99`. Enter `0` to disable the check.", + "format": "int32", + "type": "integer" + }, "enabled": { "description": "Optional. Enables or disables the performance capture feature.", "type": "boolean" }, + "historyListLengthThresholdCount": { + "description": "Optional. Specifies the minimum number of undo log entries in the history list length to trigger the performance capture. Valid integers range from `10000` to `10000000`. Enter `0` to disable the check.", + "format": "int32", + "type": "integer" + }, + "memoryUsageThresholdPercent": { + "description": "Optional. Specifies the minimum percentage of memory usage to trigger the performance capture. Valid integers range from `10` to `99`. Enter `0` to disable the check.", + "format": "int32", + "type": "integer" + }, "probeThreshold": { "description": "Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.", "format": "int32", @@ -7306,10 +7340,46 @@ "format": "int32", "type": "integer" }, + "semaphoreWaitThresholdCount": { + "description": "Optional. Specifies the minimum allowed number of semaphore waits to trigger the performance capture. Valid integers range from `10` to `10000`. Enter `0` to disable the check.", + "format": "int32", + "type": "integer" + }, "transactionDurationThreshold": { "description": "Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.", "format": "int32", "type": "integer" + }, + "transactionKillExcludedUserHosts": { + "description": "Optional. Specifies a customer-defined list of users to exclude from transaction termination. Entries can be in the format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', excluding the user from any host. Wildcard '%' is allowed in the host part of the 'user@host' format. Example: `[\"app_user\", \"db_admin@10.1.2.3\", \"report_user@%\"]`", + "items": { + "type": "string" + }, + "type": "array" + }, + "transactionKillThresholdSeconds": { + "description": "Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts terminating it. Valid integers range from `60` to `604800` (7 days). Enter `0` to disable. If enabled (i.e., \u003e 0), this value must be greater than or equal to `transaction_duration_threshold`. Configurations where `0 \u003c transaction_kill_threshold_seconds \u003c transaction_duration_threshold` will be rejected.", + "format": "int32", + "type": "integer" + }, + "transactionKillType": { + "description": "Optional. Determines which transactions are allowed to be terminated when they exceed `transaction_kill_threshold_seconds`. This allows protecting write-heavy transactions from auto-termination if desired. Defaults to `READ_ONLY_TRANSACTIONS` if unspecified.", + "enum": [ + "TRANSACTION_KILL_TYPE_UNSPECIFIED", + "READ_ONLY_TRANSACTIONS", + "ALL_TRANSACTIONS" + ], + "enumDescriptions": [ + "Unspecified.", + "Only read-only transactions are eligible for termination.", + "All transactions are eligible for termination, including those with write operations (such as INSERT, UPDATE, DELETE, or DDL)." + ], + "type": "string" + }, + "transactionLockWaitThresholdCount": { + "description": "Optional. Specifies the minimum allowed number of transactions in lock wait state to trigger the performance capture. Valid integers range from `10` to `10000`. Enter `0` to disable the check.", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -7701,6 +7771,23 @@ "description": "Optional. This is the project ID of consumer service project of this consumer endpoint. Optional. This is only applicable if consumer_network is a shared vpc network.", "type": "string" }, + "instanceAutoDnsStatus": { + "description": "Output only. The status of automated DNS provisioning.", + "enum": [ + "AUTO_DNS_STATUS_UNSPECIFIED", + "AUTO_DNS_OK", + "AUTO_DNS_FAILED", + "AUTO_DNS_UNKNOWN" + ], + "enumDescriptions": [ + "Unspecified status. This means status is missing from dependency service.", + "DNS provisioning is OK.", + "DNS provisioning failed.", + "DNS provisioning status is not recognized by Cloud SQL." + ], + "readOnly": true, + "type": "string" + }, "ipAddress": { "description": "The IP address of the consumer endpoint.", "type": "string" @@ -7718,6 +7805,23 @@ "status": { "description": "The connection status of the consumer endpoint.", "type": "string" + }, + "writeEndpointAutoDnsStatus": { + "description": "Output only. The status of automated DNS provisioning for the write endpoint.", + "enum": [ + "AUTO_DNS_STATUS_UNSPECIFIED", + "AUTO_DNS_OK", + "AUTO_DNS_FAILED", + "AUTO_DNS_UNKNOWN" + ], + "enumDescriptions": [ + "Unspecified status. This means status is missing from dependency service.", + "DNS provisioning is OK.", + "DNS provisioning failed.", + "DNS provisioning status is not recognized by Cloud SQL." + ], + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index d32adcb4359..8ba40d1c741 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -682,7 +682,9 @@ type BackupConfiguration struct { Location string `json:"location,omitempty"` // PointInTimeRecoveryEnabled: Whether point in time recovery is enabled. PointInTimeRecoveryEnabled bool `json:"pointInTimeRecoveryEnabled,omitempty"` - // ReplicationLogArchivingEnabled: Reserved for future use. + // ReplicationLogArchivingEnabled: Optional. Deprecated: + // replication_log_archiving_enabled is deprecated and will be removed from a + // future version of the API. Use point_in_time_recovery_enabled instead. ReplicationLogArchivingEnabled bool `json:"replicationLogArchivingEnabled,omitempty"` // StartTime: Start time for the daily backup configuration in UTC timezone in // the 24 hour format - `HH:MM`. @@ -1200,6 +1202,9 @@ type ConnectSettings struct { // "SECOND_GEN" - V2 speckle instance. // "EXTERNAL" - On premises instance. BackendType string `json:"backendType,omitempty"` + // ConnectionName: Optional. Output only. Connection name of the Cloud SQL + // instance used in connection strings, in the format project:region:instance. + ConnectionName string `json:"connectionName,omitempty"` // CustomSubjectAlternativeNames: Custom subject alternative names for the // server certificate. CustomSubjectAlternativeNames []string `json:"customSubjectAlternativeNames,omitempty"` @@ -4267,6 +4272,7 @@ type Operation struct { // "SETUP_MIGRATION" - This operation type represents individual steps in a // multi-step setup migration workflow: including configuration, replication, // switchover/back, and data reseeding, as defined by operation's intent. + // "AGENT_SEND_MESSAGE" - Sends a message to a Cloud SQL agent. OperationType string `json:"operationType,omitempty"` // PreCheckMajorVersionUpgradeContext: The context for pre-check major version // upgrade operation, if applicable. This field is only populated when the @@ -4535,8 +4541,21 @@ func (s PerformDiskShrinkContext) MarshalJSON() ([]byte, error) { // PerformanceCaptureConfig: Performance capture configuration. type PerformanceCaptureConfig struct { + // CpuUtilizationThresholdPercent: Optional. Specifies the minimum percentage + // of CPU utilization to trigger the performance capture. Valid integers range + // from `10` to `99`. Enter `0` to disable the check. + CpuUtilizationThresholdPercent int64 `json:"cpuUtilizationThresholdPercent,omitempty"` // Enabled: Optional. Enables or disables the performance capture feature. Enabled bool `json:"enabled,omitempty"` + // HistoryListLengthThresholdCount: Optional. Specifies the minimum number of + // undo log entries in the history list length to trigger the performance + // capture. Valid integers range from `10000` to `10000000`. Enter `0` to + // disable the check. + HistoryListLengthThresholdCount int64 `json:"historyListLengthThresholdCount,omitempty"` + // MemoryUsageThresholdPercent: Optional. Specifies the minimum percentage of + // memory usage to trigger the performance capture. Valid integers range from + // `10` to `99`. Enter `0` to disable the check. + MemoryUsageThresholdPercent int64 `json:"memoryUsageThresholdPercent,omitempty"` // ProbeThreshold: Optional. Specifies the minimum number of consecutive probe // threshold that triggers performance capture. ProbeThreshold int64 `json:"probeThreshold,omitempty"` @@ -4552,19 +4571,57 @@ type PerformanceCaptureConfig struct { // seconds replica must be lagging behind primary instance to trigger the // performance capture on replica. SecondsBehindSourceThreshold int64 `json:"secondsBehindSourceThreshold,omitempty"` + // SemaphoreWaitThresholdCount: Optional. Specifies the minimum allowed number + // of semaphore waits to trigger the performance capture. Valid integers range + // from `10` to `10000`. Enter `0` to disable the check. + SemaphoreWaitThresholdCount int64 `json:"semaphoreWaitThresholdCount,omitempty"` // TransactionDurationThreshold: Optional. Specifies the amount of time in // seconds that a transaction needs to have been open before the watcher starts // recording it. TransactionDurationThreshold int64 `json:"transactionDurationThreshold,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. See + // TransactionKillExcludedUserHosts: Optional. Specifies a customer-defined + // list of users to exclude from transaction termination. Entries can be in the + // format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', + // excluding the user from any host. Wildcard '%' is allowed in the host part + // of the 'user@host' format. Example: `["app_user", "db_admin@10.1.2.3", + // "report_user@%"]` + TransactionKillExcludedUserHosts []string `json:"transactionKillExcludedUserHosts,omitempty"` + // TransactionKillThresholdSeconds: Optional. Specifies the amount of time in + // seconds that a transaction needs to have been open before the watcher starts + // terminating it. Valid integers range from `60` to `604800` (7 days). Enter + // `0` to disable. If enabled (i.e., > 0), this value must be greater than or + // equal to `transaction_duration_threshold`. Configurations where `0 < + // transaction_kill_threshold_seconds < transaction_duration_threshold` will be + // rejected. + TransactionKillThresholdSeconds int64 `json:"transactionKillThresholdSeconds,omitempty"` + // TransactionKillType: Optional. Determines which transactions are allowed to + // be terminated when they exceed `transaction_kill_threshold_seconds`. This + // allows protecting write-heavy transactions from auto-termination if desired. + // Defaults to `READ_ONLY_TRANSACTIONS` if unspecified. + // + // Possible values: + // "TRANSACTION_KILL_TYPE_UNSPECIFIED" - Unspecified. + // "READ_ONLY_TRANSACTIONS" - Only read-only transactions are eligible for + // termination. + // "ALL_TRANSACTIONS" - All transactions are eligible for termination, + // including those with write operations (such as INSERT, UPDATE, DELETE, or + // DDL). + TransactionKillType string `json:"transactionKillType,omitempty"` + // TransactionLockWaitThresholdCount: Optional. Specifies the minimum allowed + // number of transactions in lock wait state to trigger the performance + // capture. Valid integers range from `10` to `10000`. Enter `0` to disable the + // check. + TransactionLockWaitThresholdCount int64 `json:"transactionLockWaitThresholdCount,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "CpuUtilizationThresholdPercent") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Enabled") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "CpuUtilizationThresholdPercent") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -4860,6 +4917,17 @@ type PscAutoConnectionConfig struct { // project of this consumer endpoint. Optional. This is only applicable if // consumer_network is a shared vpc network. ConsumerProject string `json:"consumerProject,omitempty"` + // InstanceAutoDnsStatus: Output only. The status of automated DNS + // provisioning. + // + // Possible values: + // "AUTO_DNS_STATUS_UNSPECIFIED" - Unspecified status. This means status is + // missing from dependency service. + // "AUTO_DNS_OK" - DNS provisioning is OK. + // "AUTO_DNS_FAILED" - DNS provisioning failed. + // "AUTO_DNS_UNKNOWN" - DNS provisioning status is not recognized by Cloud + // SQL. + InstanceAutoDnsStatus string `json:"instanceAutoDnsStatus,omitempty"` // IpAddress: The IP address of the consumer endpoint. IpAddress string `json:"ipAddress,omitempty"` // ServiceConnectionPolicy: Output only. The service connection policy created @@ -4873,6 +4941,17 @@ type PscAutoConnectionConfig struct { ServiceConnectionPolicyCreationResult string `json:"serviceConnectionPolicyCreationResult,omitempty"` // Status: The connection status of the consumer endpoint. Status string `json:"status,omitempty"` + // WriteEndpointAutoDnsStatus: Output only. The status of automated DNS + // provisioning for the write endpoint. + // + // Possible values: + // "AUTO_DNS_STATUS_UNSPECIFIED" - Unspecified status. This means status is + // missing from dependency service. + // "AUTO_DNS_OK" - DNS provisioning is OK. + // "AUTO_DNS_FAILED" - DNS provisioning failed. + // "AUTO_DNS_UNKNOWN" - DNS provisioning status is not recognized by Cloud + // SQL. + WriteEndpointAutoDnsStatus string `json:"writeEndpointAutoDnsStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "ConsumerNetwork") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -8105,8 +8184,8 @@ func (c *ConnectGetCall) Do(opts ...googleapi.CallOption) (*ConnectSettings, err type ConnectResolveCall struct { s *Service - dnsName string location string + dnsName string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context @@ -8118,10 +8197,10 @@ type ConnectResolveCall struct { // // - dnsName: Cloud SQL instance ID. This does not include the project ID. // - location: The region of the instance. -func (r *ConnectService) Resolve(dnsName string, location string) *ConnectResolveCall { +func (r *ConnectService) Resolve(location string, dnsName string) *ConnectResolveCall { c := &ConnectResolveCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.dnsName = dnsName c.location = location + c.dnsName = dnsName return c } @@ -8163,7 +8242,7 @@ func (c *ConnectResolveCall) doRequest(alt string) (*http.Response, error) { } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/dns/{dnsName}/locations/{location}:resolveConnectSettings") + urls := googleapi.ResolveRelative(c.s.BasePath, "sql/v1beta4/locations/{location}/dns/{dnsName}:resolveConnectSettings") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -8171,8 +8250,8 @@ func (c *ConnectResolveCall) doRequest(alt string) (*http.Response, error) { } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "dnsName": c.dnsName, "location": c.location, + "dnsName": c.dnsName, }) c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "sql.connect.resolve", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) @@ -11312,6 +11391,22 @@ func (r *InstancesService) Patch(project string, instance string, databaseinstan return c } +// ReconcilePscNetworking sets the optional parameter "reconcilePscNetworking": +// Set PSC config to the same value as the existing config to reconcile the PSC +// networking. +func (c *InstancesPatchCall) ReconcilePscNetworking(reconcilePscNetworking bool) *InstancesPatchCall { + c.urlParams_.Set("reconcilePscNetworking", fmt.Sprint(reconcilePscNetworking)) + return c +} + +// ReconcilePscNetworkingForce sets the optional parameter +// "reconcilePscNetworkingForce": Set PSC config to the same value as the +// existing config and force reconcile the PSC networking. +func (c *InstancesPatchCall) ReconcilePscNetworkingForce(reconcilePscNetworkingForce bool) *InstancesPatchCall { + c.urlParams_.Set("reconcilePscNetworkingForce", fmt.Sprint(reconcilePscNetworkingForce)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/tagmanager/v2/tagmanager-api.json b/tagmanager/v2/tagmanager-api.json index 7bfd97a60ba..e0c598c37e8 100644 --- a/tagmanager/v2/tagmanager-api.json +++ b/tagmanager/v2/tagmanager-api.json @@ -3988,7 +3988,7 @@ } } }, - "revision": "20260608", + "revision": "20260706", "rootUrl": "https://tagmanager.googleapis.com/", "schemas": { "Account": { @@ -4407,116 +4407,6 @@ }, "type": "object" }, - "CompilerErrorLite": { - "id": "CompilerErrorLite", - "properties": { - "errorMessage": { - "type": "string" - }, - "errorType": { - "enum": [ - "unknownErrorType", - "duplicateAutoEventName", - "duplicateConditionId", - "duplicateDefaultMacro", - "duplicateTagName", - "internalCompilerError", - "invalidMacroKey", - "invalidNumberPredicateArgs", - "invalidMacroFormat", - "invalidMacroNameReference", - "invalidMacroParameter", - "invalidUsageContext", - "invalidRegex", - "macroCycle", - "unknownConditionId", - "unknownMacroInstance", - "invalidManualEscaping", - "invalidHtmlCssJs", - "macroInCommentsError", - "jsCompilerError", - "jsonError", - "invalidTagParameter", - "javascriptTooLong", - "unknownTagInstance", - "invalidTagReference", - "unknownTriggerId", - "customTriggerMissingEventFilter", - "duplicateTriggerId", - "unsupportedTriggerType", - "invalidTriggerParameter", - "duplicateExperimentId", - "pixieCompilerError", - "macroNotServerSideResolvable", - "invalidBlockingTrigger", - "lineTooLong", - "invalidTypeInSelect", - "gaExperimentMacroIsDeprecated", - "unsafeHtmlContent", - "unsafeHtmlAttributeValue", - "unsafeCssContent", - "parameterReferenceNotFound", - "invalidCustomTemplateRuntimeCode", - "conflictingDestinationRouting", - "missingRequiredActivity", - "unresolvableDestinationTag", - "invalidDestinationTag", - "tosRequiredForThirdPartyTags" - ], - "enumDescriptions": [ - "Unknown error type. Place holder for the enum's default value; not valid.", - "There are multiple auto-event instances with the same name. parent - N EntityKeys each with their auto_event_key populated.", - "There are multiple conditions with the same id. parent - N EntityKeys each with their condition_key populated.", - "There are multiple default macros with the same name. parent - N EntityKeys each with their macro_key populated. context - The macro name.", - "There are multiple tag instances with the same name. parent - N EntityKeys each with their tag_key populated.", - "An internal compiler invariant was broken. parent - 1 EntityKey which may have macro_key, condition_key, or tag_key populated. It's also possible that no keys are populated. context - An internal string (shouldn't be shown to the user) describing the problem.", - "An macro instance key was invalid e.g. foo#bar parent - 1 EntityKey with one of the following populated: macro_key, condition_key, tag_key. context - The string of the invalid name.", - "Wrong number of args passed to a predicate. parent - 1 EntityKey with its condition_key populated.", - "Macro format was invalid e.g. foo#bar parent - 1 EntityKey with one of the following populated: condition_key, tag_key. context - The full string of the invalid macro and surrounding literals.", - "A macro name was referenced instead of a macro key. parent - 1 EntityKey with one of the following populated: condition_key, tag_key. context - The name of the invalid macro name.", - "Macro had an invalid parameter. This could be anything from a parameter being a complex type or a macro parameter containing a macro reference. parent - 1 EntityKey with its macro_key populated. context - The value of the offending parameter if it is string-able.", - "Usage context of a container was invalid. Currently, this error can occur when a container context specifies both web and mobile. The UI shouldn't allowed creating such a mixed container. parent - not set context - The description of the context", - "Contents of an Regex predicate had an invalid pattern. parent - 1 EntityKey with one of the following populated: condition_key. context - The offending pattern.", - "There was a macro whose resolution would depend on itself. parent - N EntityKeys each with their macro_key, trigger_key, or condition_key populated. This represents the macro cycle. context - Empty.", - "A condition id was used which doesn't exist in the conditions list. parent - 1 EntityKey with its tag_key populated. context - The integer id of the missing conditional.", - "A macro name was used which doesn't exist in the macro list. parent - 1 EntityKey with one of the following populated: condition_key, tag_key. context - The name of the missing macro instance.", - "User-provided escaping inappropriate for the context in which it is used. parent - 1 EntityKey with one of the following populated: macro_key, condition_key, tag_key. context - Empty.", - "Auto-escaped content is not valid HTML, CSS or JavaScript. parent - 1 EntityKey with one of the following populated: tag_key. context - Empty.", - "Macro reference found inside an HTML, CSS or JavaScript comment. parent - 1 EntityKey with one of the following populated: tag_key. context - Empty.", - "Contents of an HTML script tag could not be compiled by JsCompiler. parent - 1 EntityKey with one of the following populated: tag_key. context - Empty.", - "Contents of a ConfigurationValue script tag could not be parsed by the JSON parser. parent - 1 EntityKey with one of the following populated: tag_key. context - Empty.", - "Tag had an invalid parameter. This could be anything from a parameter being a complex type or a macro parameter containing a macro reference. parent - 1 EntityKey with its tag_key populated. context - The value of the offending parameter if it is string-able.", - "An arbitrary HTML tag contains a piece of javascript with too many contiguous non-whitespace characters (e.g. a long array with no spaces between elements or an extremely long variable name).", - "A tag name was used which doesn't exist in the input tag list. parent - 1 EntityKey with tag_key populated. context - The name of the missing tag instance.", - "A tag name was used which doesn't exist in the compiled tag list. This happens if a tag is dependent on another tag, but the other tag has no rules attached to it and is pruned in the compiler. parent - 1 EntityKey with tag_key populated. context - The name of the missing tag instance.", - "A trigger id was used which doesn't exist in the triggers list. parent - 1 EntityKey parent of the unknown trigger. context - The id of the missing trigger instance.", - "A trigger of type custom trigger was created that doesn't include a custom event filter. parent - 1 EntityKey with its trigger_key populated. context - Empty.", - "There are multiple triggers with the same id. parent - N EntityKeys each with their trigger_key populated. context - Empty.", - "There is an unknown or unsupported trigger type. parent - 1 EntityKey with its trigger_key populated. context - The trigger type.", - "A trigger has an invalid parameter. parent - 1 EntityKey with its trigger_key populated. context - The invalid field.", - "There are multiple experiments with the same id. parent - N EntityKeys each with their experiment_key populated. context - Empty.", - "Contents of a pixie tag/macro could not be compiled by Pixie Parser. parent - 1 EntityKey with one of the following populated: tag_key, macro_key. context - Empty.", - "The macro cannot be resolved at server side. parent - 1 EntityKey indicating the entity in which this macro is used. context - The macro name.", - "The trigger cannot be used in blocking predicates (i.e. only All/Some pages triggers work for AMP, NS etc.) parent - 1 EntityKey indicating the tag in which this trigger is used. context - The trigger name.", - "A line in the input text is too long.", - "The value of a SELECT parameter in a vendor template instance does not point to an allowed vendor template instance. For details, see the documentation of the typesInSelect property in a vendor template. parent - 1 EntityKey indicating the tag/macro with this parameter. context - The parameter name.", - "The input container version contains a deprecated GA content experiment macro that needs to be removed.", - "Reminder: new error types will be treated as internal errors and trigger alerts unless they are handled in j/c/g/analytics/containertag/compiler/ErrorReporter.java\u0026l=104 Please also remember to add new error types to CTUI at j/c/g/analytics/containertag/ui/app/components/container/compilererror/ HTML is not sanitized and contains unsafe content.", - "HTML attribute is not sanitized and the value is unsafe.", - "CSS is not sanitized and contains unsafe content.", - "The specified parameter was not found in the referenced entity. parent - 1 EntityKey with tag_key populated. context - The missing parameter in the form of \".\".", - "The custom template has invalid runtime code. parent - Entity key for the custom template. context - The error message.", - "The container version contains a Google tag tag and a destination tag that use the same destination ID. parent - Entity key for the conflicting Google tag. context - The Google tag tag name.", - "The container version has routing destinations, but is missing required activity instances. parent - Empty. context - Empty. proposed_change - The proposed change to add the missing activities.", - "The container version contains a product destination tag with a destination ID value that cannot be resolved statically. parent - Entity key of the destination tag. context - The name of the variable that could not be resolved. If the destination ID was a template value, then this will be the serialized value.", - "The container version contains a product destination tag with a destination ID value that is in an invalid format. parent - Entity key of the destination tag. context - The invalid destination ID.", - "GTM ToS is required for publishing versions with 3P tags. parent - not set context - Empty." - ], - "type": "string" - } - }, - "type": "object" - }, "Condition": { "description": "Represents a predicate.", "id": "Condition", @@ -4963,13 +4853,6 @@ "description": "Compiler errors or not.", "type": "boolean" }, - "compilerErrors": { - "description": "Compiler error details.", - "items": { - "$ref": "CompilerErrorLite" - }, - "type": "array" - }, "containerVersion": { "$ref": "ContainerVersion", "description": "The container version created." @@ -5804,13 +5687,6 @@ "description": "Compiler errors or not.", "type": "boolean" }, - "compilerErrors": { - "description": "Compiler error details.", - "items": { - "$ref": "CompilerErrorLite" - }, - "type": "array" - }, "containerVersion": { "$ref": "ContainerVersion", "description": "The container version created." @@ -5826,13 +5702,6 @@ "description": "Were there compiler errors or not.", "type": "boolean" }, - "compilerErrors": { - "description": "Compiler error details.", - "items": { - "$ref": "CompilerErrorLite" - }, - "type": "array" - }, "containerVersion": { "$ref": "ContainerVersion", "description": "The quick previewed container version." @@ -6595,12 +6464,14 @@ "enum": [ "decimalSeparatorTypeUnspecified", "period", - "comma" + "comma", + "automatic" ], "enumDescriptions": [ "", "The option to convert a variable value to a number with a period as the decimal separator.", - "The option to convert a variable value to a number with a comma as the decimal separator." + "The option to convert a variable value to a number with a comma as the decimal separator.", + "The option to convert a variable value to a number with automatic decimal separator detection." ], "type": "string" }, diff --git a/tagmanager/v2/tagmanager-gen.go b/tagmanager/v2/tagmanager-gen.go index bfb4c63c8a8..2a65e0b259c 100644 --- a/tagmanager/v2/tagmanager-gen.go +++ b/tagmanager/v2/tagmanager-gen.go @@ -721,176 +721,6 @@ func (s Client) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type CompilerErrorLite struct { - ErrorMessage string `json:"errorMessage,omitempty"` - // Possible values: - // "unknownErrorType" - Unknown error type. Place holder for the enum's - // default value; not valid. - // "duplicateAutoEventName" - There are multiple auto-event instances with - // the same name. parent - N EntityKeys each with their auto_event_key - // populated. - // "duplicateConditionId" - There are multiple conditions with the same id. - // parent - N EntityKeys each with their condition_key populated. - // "duplicateDefaultMacro" - There are multiple default macros with the same - // name. parent - N EntityKeys each with their macro_key populated. context - - // The macro name. - // "duplicateTagName" - There are multiple tag instances with the same name. - // parent - N EntityKeys each with their tag_key populated. - // "internalCompilerError" - An internal compiler invariant was broken. - // parent - 1 EntityKey which may have macro_key, condition_key, or tag_key - // populated. It's also possible that no keys are populated. context - An - // internal string (shouldn't be shown to the user) describing the problem. - // "invalidMacroKey" - An macro instance key was invalid e.g. foo#bar parent - // - 1 EntityKey with one of the following populated: macro_key, condition_key, - // tag_key. context - The string of the invalid name. - // "invalidNumberPredicateArgs" - Wrong number of args passed to a predicate. - // parent - 1 EntityKey with its condition_key populated. - // "invalidMacroFormat" - Macro format was invalid e.g. foo#bar parent - 1 - // EntityKey with one of the following populated: condition_key, tag_key. - // context - The full string of the invalid macro and surrounding literals. - // "invalidMacroNameReference" - A macro name was referenced instead of a - // macro key. parent - 1 EntityKey with one of the following populated: - // condition_key, tag_key. context - The name of the invalid macro name. - // "invalidMacroParameter" - Macro had an invalid parameter. This could be - // anything from a parameter being a complex type or a macro parameter - // containing a macro reference. parent - 1 EntityKey with its macro_key - // populated. context - The value of the offending parameter if it is - // string-able. - // "invalidUsageContext" - Usage context of a container was invalid. - // Currently, this error can occur when a container context specifies both web - // and mobile. The UI shouldn't allowed creating such a mixed container. parent - // - not set context - The description of the context - // "invalidRegex" - Contents of an Regex predicate had an invalid pattern. - // parent - 1 EntityKey with one of the following populated: condition_key. - // context - The offending pattern. - // "macroCycle" - There was a macro whose resolution would depend on itself. - // parent - N EntityKeys each with their macro_key, trigger_key, or - // condition_key populated. This represents the macro cycle. context - Empty. - // "unknownConditionId" - A condition id was used which doesn't exist in the - // conditions list. parent - 1 EntityKey with its tag_key populated. context - - // The integer id of the missing conditional. - // "unknownMacroInstance" - A macro name was used which doesn't exist in the - // macro list. parent - 1 EntityKey with one of the following populated: - // condition_key, tag_key. context - The name of the missing macro instance. - // "invalidManualEscaping" - User-provided escaping inappropriate for the - // context in which it is used. parent - 1 EntityKey with one of the following - // populated: macro_key, condition_key, tag_key. context - Empty. - // "invalidHtmlCssJs" - Auto-escaped content is not valid HTML, CSS or - // JavaScript. parent - 1 EntityKey with one of the following populated: - // tag_key. context - Empty. - // "macroInCommentsError" - Macro reference found inside an HTML, CSS or - // JavaScript comment. parent - 1 EntityKey with one of the following - // populated: tag_key. context - Empty. - // "jsCompilerError" - Contents of an HTML script tag could not be compiled - // by JsCompiler. parent - 1 EntityKey with one of the following populated: - // tag_key. context - Empty. - // "jsonError" - Contents of a ConfigurationValue script tag could not be - // parsed by the JSON parser. parent - 1 EntityKey with one of the following - // populated: tag_key. context - Empty. - // "invalidTagParameter" - Tag had an invalid parameter. This could be - // anything from a parameter being a complex type or a macro parameter - // containing a macro reference. parent - 1 EntityKey with its tag_key - // populated. context - The value of the offending parameter if it is - // string-able. - // "javascriptTooLong" - An arbitrary HTML tag contains a piece of javascript - // with too many contiguous non-whitespace characters (e.g. a long array with - // no spaces between elements or an extremely long variable name). - // "unknownTagInstance" - A tag name was used which doesn't exist in the - // input tag list. parent - 1 EntityKey with tag_key populated. context - The - // name of the missing tag instance. - // "invalidTagReference" - A tag name was used which doesn't exist in the - // compiled tag list. This happens if a tag is dependent on another tag, but - // the other tag has no rules attached to it and is pruned in the compiler. - // parent - 1 EntityKey with tag_key populated. context - The name of the - // missing tag instance. - // "unknownTriggerId" - A trigger id was used which doesn't exist in the - // triggers list. parent - 1 EntityKey parent of the unknown trigger. context - - // The id of the missing trigger instance. - // "customTriggerMissingEventFilter" - A trigger of type custom trigger was - // created that doesn't include a custom event filter. parent - 1 EntityKey - // with its trigger_key populated. context - Empty. - // "duplicateTriggerId" - There are multiple triggers with the same id. - // parent - N EntityKeys each with their trigger_key populated. context - - // Empty. - // "unsupportedTriggerType" - There is an unknown or unsupported trigger - // type. parent - 1 EntityKey with its trigger_key populated. context - The - // trigger type. - // "invalidTriggerParameter" - A trigger has an invalid parameter. parent - 1 - // EntityKey with its trigger_key populated. context - The invalid field. - // "duplicateExperimentId" - There are multiple experiments with the same id. - // parent - N EntityKeys each with their experiment_key populated. context - - // Empty. - // "pixieCompilerError" - Contents of a pixie tag/macro could not be compiled - // by Pixie Parser. parent - 1 EntityKey with one of the following populated: - // tag_key, macro_key. context - Empty. - // "macroNotServerSideResolvable" - The macro cannot be resolved at server - // side. parent - 1 EntityKey indicating the entity in which this macro is - // used. context - The macro name. - // "invalidBlockingTrigger" - The trigger cannot be used in blocking - // predicates (i.e. only All/Some pages triggers work for AMP, NS etc.) parent - // - 1 EntityKey indicating the tag in which this trigger is used. context - - // The trigger name. - // "lineTooLong" - A line in the input text is too long. - // "invalidTypeInSelect" - The value of a SELECT parameter in a vendor - // template instance does not point to an allowed vendor template instance. For - // details, see the documentation of the typesInSelect property in a vendor - // template. parent - 1 EntityKey indicating the tag/macro with this parameter. - // context - The parameter name. - // "gaExperimentMacroIsDeprecated" - The input container version contains a - // deprecated GA content experiment macro that needs to be removed. - // "unsafeHtmlContent" - Reminder: new error types will be treated as - // internal errors and trigger alerts unless they are handled in - // j/c/g/analytics/containertag/compiler/ErrorReporter.java&l=104 Please also - // remember to add new error types to CTUI at - // j/c/g/analytics/containertag/ui/app/components/container/compilererror/ HTML - // is not sanitized and contains unsafe content. - // "unsafeHtmlAttributeValue" - HTML attribute is not sanitized and the value - // is unsafe. - // "unsafeCssContent" - CSS is not sanitized and contains unsafe content. - // "parameterReferenceNotFound" - The specified parameter was not found in - // the referenced entity. parent - 1 EntityKey with tag_key populated. context - // - The missing parameter in the form of ".". - // "invalidCustomTemplateRuntimeCode" - The custom template has invalid - // runtime code. parent - Entity key for the custom template. context - The - // error message. - // "conflictingDestinationRouting" - The container version contains a Google - // tag tag and a destination tag that use the same destination ID. parent - - // Entity key for the conflicting Google tag. context - The Google tag tag - // name. - // "missingRequiredActivity" - The container version has routing - // destinations, but is missing required activity instances. parent - Empty. - // context - Empty. proposed_change - The proposed change to add the missing - // activities. - // "unresolvableDestinationTag" - The container version contains a product - // destination tag with a destination ID value that cannot be resolved - // statically. parent - Entity key of the destination tag. context - The name - // of the variable that could not be resolved. If the destination ID was a - // template value, then this will be the serialized value. - // "invalidDestinationTag" - The container version contains a product - // destination tag with a destination ID value that is in an invalid format. - // parent - Entity key of the destination tag. context - The invalid - // destination ID. - // "tosRequiredForThirdPartyTags" - GTM ToS is required for publishing - // versions with 3P tags. parent - not set context - Empty. - ErrorType string `json:"errorType,omitempty"` - // ForceSendFields is a list of field names (e.g. "ErrorMessage") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ErrorMessage") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CompilerErrorLite) MarshalJSON() ([]byte, error) { - type NoMethod CompilerErrorLite - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Condition: Represents a predicate. type Condition struct { // Parameter: A list of named parameters (key/value), depending on the @@ -1257,8 +1087,6 @@ func (s CreateContainerVersionRequestVersionOptions) MarshalJSON() ([]byte, erro type CreateContainerVersionResponse struct { // CompilerError: Compiler errors or not. CompilerError bool `json:"compilerError,omitempty"` - // CompilerErrors: Compiler error details. - CompilerErrors []*CompilerErrorLite `json:"compilerErrors,omitempty"` // ContainerVersion: The container version created. ContainerVersion *ContainerVersion `json:"containerVersion,omitempty"` // NewWorkspacePath: Auto generated workspace path created as a result of @@ -2263,8 +2091,6 @@ func (s ProposedChange) MarshalJSON() ([]byte, error) { type PublishContainerVersionResponse struct { // CompilerError: Compiler errors or not. CompilerError bool `json:"compilerError,omitempty"` - // CompilerErrors: Compiler error details. - CompilerErrors []*CompilerErrorLite `json:"compilerErrors,omitempty"` // ContainerVersion: The container version created. ContainerVersion *ContainerVersion `json:"containerVersion,omitempty"` @@ -2292,8 +2118,6 @@ func (s PublishContainerVersionResponse) MarshalJSON() ([]byte, error) { type QuickPreviewResponse struct { // CompilerError: Were there compiler errors or not. CompilerError bool `json:"compilerError,omitempty"` - // CompilerErrors: Compiler error details. - CompilerErrors []*CompilerErrorLite `json:"compilerErrors,omitempty"` // ContainerVersion: The quick previewed container version. ContainerVersion *ContainerVersion `json:"containerVersion,omitempty"` // SyncStatus: Whether quick previewing failed when syncing the workspace to @@ -3125,6 +2949,8 @@ type VariableFormatValue struct { // period as the decimal separator. // "comma" - The option to convert a variable value to a number with a comma // as the decimal separator. + // "automatic" - The option to convert a variable value to a number with + // automatic decimal separator detection. ConvertToNumber string `json:"convertToNumber,omitempty"` // ConvertTrueToValue: The value to convert if a variable value is true. ConvertTrueToValue *Parameter `json:"convertTrueToValue,omitempty"` diff --git a/workstations/v1beta/workstations-api.json b/workstations/v1beta/workstations-api.json index 409e060a06e..d4cbc6aa981 100644 --- a/workstations/v1beta/workstations-api.json +++ b/workstations/v1beta/workstations-api.json @@ -1143,6 +1143,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "suspend": { + "description": "Suspends a workstation to reduce costs.", + "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}:suspend", + "httpMethod": "POST", + "id": "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.suspend", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the workstation to suspend.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workstationClusters/[^/]+/workstationConfigs/[^/]+/workstations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}:suspend", + "request": { + "$ref": "SuspendWorkstationRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "testIamPermissions": { "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/workstationClusters/{workstationClustersId}/workstationConfigs/{workstationConfigsId}/workstations/{workstationsId}:testIamPermissions", @@ -1182,7 +1210,7 @@ } } }, - "revision": "20260604", + "revision": "20260622", "rootUrl": "https://workstations.googleapis.com/", "schemas": { "Accelerator": { @@ -2264,6 +2292,21 @@ }, "type": "object" }, + "SuspendWorkstationRequest": { + "description": "Request message for SuspendWorkstation.", + "id": "SuspendWorkstationRequest", + "properties": { + "etag": { + "description": "Optional. If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag.", + "type": "string" + }, + "validateOnly": { + "description": "Optional. If set, validate the request and preview the result, but do not actually apply it.", + "type": "boolean" + } + }, + "type": "object" + }, "TestIamPermissionsRequest": { "description": "Request message for `TestIamPermissions` method.", "id": "TestIamPermissionsRequest", @@ -2416,14 +2459,18 @@ "STATE_STARTING", "STATE_RUNNING", "STATE_STOPPING", - "STATE_STOPPED" + "STATE_STOPPED", + "STATE_SUSPENDING", + "STATE_SUSPENDED" ], "enumDescriptions": [ "Do not use.", "The workstation is not yet ready to accept requests from users but will be soon.", "The workstation is ready to accept requests from users.", "The workstation is being stopped.", - "The workstation is stopped and will not be able to receive requests until it is started." + "The workstation is stopped and will not be able to receive requests until it is started.", + "The workstation is being suspended.", + "The workstation is suspended." ], "readOnly": true, "type": "string" @@ -2673,6 +2720,20 @@ "$ref": "HttpOptions", "description": "Optional. HTTP options that customize the behavior of the workstation service's HTTP proxy." }, + "idleAction": { + "description": "Optional. The action to take when the workstation has been idle for the duration specified in idle_timeout. Defaults to STOP.", + "enum": [ + "IDLE_ACTION_UNSPECIFIED", + "STOP", + "SUSPEND" + ], + "enumDescriptions": [ + "Defaults to STOP.", + "Stop the workstation after idle_timeout.", + "Suspend the workstation after idle_timeout." + ], + "type": "string" + }, "idleTimeout": { "description": "Optional. Number of seconds to wait before automatically stopping a workstation after it last received user traffic. A value of `\"0s\"` indicates that Cloud Workstations VMs created with this configuration should never time out due to idleness. Provide [duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration) terminated by `s` for seconds—for example, `\"7200s\"` (2 hours). The default is `\"1200s\"` (20 minutes).", "format": "google-duration", diff --git a/workstations/v1beta/workstations-gen.go b/workstations/v1beta/workstations-gen.go index 9c444a87d7c..15f8a75b0e9 100644 --- a/workstations/v1beta/workstations-gen.go +++ b/workstations/v1beta/workstations-gen.go @@ -1930,6 +1930,32 @@ func (s StopWorkstationRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// SuspendWorkstationRequest: Request message for SuspendWorkstation. +type SuspendWorkstationRequest struct { + // Etag: Optional. If set, the request will be rejected if the latest version + // of the workstation on the server does not have this ETag. + Etag string `json:"etag,omitempty"` + // ValidateOnly: Optional. If set, validate the request and preview the result, + // but do not actually apply it. + ValidateOnly bool `json:"validateOnly,omitempty"` + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SuspendWorkstationRequest) MarshalJSON() ([]byte, error) { + type NoMethod SuspendWorkstationRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // TestIamPermissionsRequest: Request message for `TestIamPermissions` method. type TestIamPermissionsRequest struct { // Permissions: The set of permissions to check for the `resource`. Permissions @@ -2057,6 +2083,8 @@ type Workstation struct { // "STATE_STOPPING" - The workstation is being stopped. // "STATE_STOPPED" - The workstation is stopped and will not be able to // receive requests until it is started. + // "STATE_SUSPENDING" - The workstation is being suspended. + // "STATE_SUSPENDED" - The workstation is suspended. State string `json:"state,omitempty"` // Uid: Output only. A system-assigned unique identifier for this workstation. Uid string `json:"uid,omitempty"` @@ -2306,6 +2334,14 @@ type WorkstationConfig struct { // HttpOptions: Optional. HTTP options that customize the behavior of the // workstation service's HTTP proxy. HttpOptions *HttpOptions `json:"httpOptions,omitempty"` + // IdleAction: Optional. The action to take when the workstation has been idle + // for the duration specified in idle_timeout. Defaults to STOP. + // + // Possible values: + // "IDLE_ACTION_UNSPECIFIED" - Defaults to STOP. + // "STOP" - Stop the workstation after idle_timeout. + // "SUSPEND" - Suspend the workstation after idle_timeout. + IdleAction string `json:"idleAction,omitempty"` // IdleTimeout: Optional. Number of seconds to wait before automatically // stopping a workstation after it last received user traffic. A value of // "0s" indicates that Cloud Workstations VMs created with this configuration @@ -6070,6 +6106,109 @@ func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsStopC return ret, nil } +type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSuspendCall struct { + s *Service + name string + suspendworkstationrequest *SuspendWorkstationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Suspend: Suspends a workstation to reduce costs. +// +// - name: Name of the workstation to suspend. +func (r *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsService) Suspend(name string, suspendworkstationrequest *SuspendWorkstationRequest) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSuspendCall { + c := &ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSuspendCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.suspendworkstationrequest = suspendworkstationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSuspendCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSuspendCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSuspendCall) Context(ctx context.Context) *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSuspendCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSuspendCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSuspendCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.suspendworkstationrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:suspend") + 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, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.suspend", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.suspend" call. +// 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 *ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsSuspendCall) 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 + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "workstations.projects.locations.workstationClusters.workstationConfigs.workstations.suspend", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstationsTestIamPermissionsCall struct { s *Service resource string diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index 94b2d6b7f5f..427c86dc17a 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -4192,7 +4192,7 @@ } } }, - "revision": "20260608", + "revision": "20260707", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { @@ -9041,6 +9041,7 @@ "type": "object" }, "LiveChatMessageDeletedDetails": { + "deprecated": true, "id": "LiveChatMessageDeletedDetails", "properties": { "deletedMessageId": { @@ -9106,6 +9107,7 @@ "type": "object" }, "LiveChatMessageRetractedDetails": { + "deprecated": true, "id": "LiveChatMessageRetractedDetails", "properties": { "retractedMessageId": { @@ -9119,7 +9121,7 @@ "id": "LiveChatMessageSnippet", "properties": { "authorChannelId": { - "description": "The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor memberMilestoneChatEvent - the member that sent the message membershipGiftingEvent - the user that made the purchase giftMembershipReceivedEvent - the user that received the gift membership messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase pollEvent - the user that created the poll", + "description": "The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor memberMilestoneChatEvent - the member that sent the message membershipGiftingEvent - the user that made the purchase giftMembershipReceivedEvent - the user that received the gift membership messageDeletedEvent - the moderator that took the action. Unused. messageRetractedEvent - the author that retracted their message. Unused. userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase pollEvent - the user that created the poll", "type": "string" }, "displayMessage": { @@ -9155,10 +9157,12 @@ "description": "Details about the Membership Gifting event, this is only set if the type is 'membershipGiftingEvent'." }, "messageDeletedDetails": { - "$ref": "LiveChatMessageDeletedDetails" + "$ref": "LiveChatMessageDeletedDetails", + "deprecated": true }, "messageRetractedDetails": { - "$ref": "LiveChatMessageRetractedDetails" + "$ref": "LiveChatMessageRetractedDetails", + "deprecated": true }, "newSponsorDetails": { "$ref": "LiveChatNewSponsorDetails", @@ -9207,6 +9211,26 @@ "pollEvent", "giftEvent" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + true, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "", "", diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index 5e54cbd7357..f075bfee990 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -4991,8 +4991,8 @@ type LiveChatMessageSnippet struct { // user that just became a sponsor memberMilestoneChatEvent - the member that // sent the message membershipGiftingEvent - the user that made the purchase // giftMembershipReceivedEvent - the user that received the gift membership - // messageDeletedEvent - the moderator that took the action - // messageRetractedEvent - the author that retracted their message + // messageDeletedEvent - the moderator that took the action. Unused. + // messageRetractedEvent - the author that retracted their message. Unused. // userBannedEvent - the moderator that took the action superChatEvent - the // user that made the purchase superStickerEvent - the user that made the // purchase pollEvent - the user that created the poll