From 17702192ed1c3520841bf005504d62a675f9a2b0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 15 Aug 2023 00:22:14 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2115) --- aiplatform/v1/aiplatform-api.json | 15 +- aiplatform/v1/aiplatform-gen.go | 24 +- aiplatform/v1beta1/aiplatform-api.json | 323 +- aiplatform/v1beta1/aiplatform-gen.go | 2977 ++++++++++++----- .../v1/androidmanagement-api.json | 6 +- androidmanagement/v1/androidmanagement-gen.go | 9 +- api-list.json | 45 +- assuredworkloads/v1/assuredworkloads-api.json | 4 +- assuredworkloads/v1/assuredworkloads-gen.go | 2 +- .../v1beta1/assuredworkloads-api.json | 127 +- .../v1beta1/assuredworkloads-gen.go | 552 ++- batch/v1/batch-api.json | 4 +- batch/v1/batch-gen.go | 21 +- cloudbilling/v1beta/cloudbilling-api.json | 44 +- cloudbilling/v1beta/cloudbilling-gen.go | 42 +- cloudbuild/v1/cloudbuild-api.json | 25 +- cloudbuild/v1/cloudbuild-gen.go | 59 +- cloudsearch/v1/cloudsearch-api.json | 4 +- cloudsearch/v1/cloudsearch-gen.go | 4 +- contentwarehouse/v1/contentwarehouse-api.json | 322 +- contentwarehouse/v1/contentwarehouse-gen.go | 306 +- datamigration/v1/datamigration-api.json | 6 +- datamigration/v1/datamigration-gen.go | 16 +- .../v1alpha/discoveryengine-api.json | 48 +- .../v1alpha/discoveryengine-gen.go | 75 + .../v1beta/discoveryengine-api.json | 48 +- discoveryengine/v1beta/discoveryengine-gen.go | 75 + metastore/v1/metastore-api.json | 4 +- metastore/v1/metastore-gen.go | 4 +- metastore/v1alpha/metastore-api.json | 4 +- metastore/v1alpha/metastore-gen.go | 4 +- ml/v1/ml-api.json | 6 +- ml/v1/ml-gen.go | 16 +- .../v1/networkmanagement-api.json | 18 +- networkmanagement/v1/networkmanagement-gen.go | 9 + .../v1/paymentsresellersubscription-api.json | 38 +- .../v1/paymentsresellersubscription-gen.go | 79 +- sasportal/v1alpha1/sasportal-api.json | 4 +- sasportal/v1alpha1/sasportal-gen.go | 4 +- 39 files changed, 3805 insertions(+), 1568 deletions(-) diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 5dbf89845d8..9ac4117d19f 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -12270,7 +12270,7 @@ } } }, - "revision": "20230727", + "revision": "20230809", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -20077,6 +20077,11 @@ "$ref": "GoogleCloudAiplatformV1PipelineJobRuntimeConfig", "description": "Runtime config of the pipeline." }, + "scheduleName": { + "description": "Output only. The schedule resource name. Only returned if the Pipeline is created by Schedule API.", + "readOnly": true, + "type": "string" + }, "serviceAccount": { "description": "The service account that the pipeline workload runs as. If not specified, the Compute Engine default service account in the project will be used. See https://cloud.google.com/compute/docs/access/service-accounts#default_service_account Users starting the pipeline must have the `iam.serviceAccounts.actAs` permission on this service account.", "type": "string" @@ -20753,6 +20758,10 @@ "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionDeploy", "description": "Optional. Deploy the PublisherModel to Vertex Endpoint." }, + "openEvaluationPipeline": { + "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences", + "description": "Optional. Open evaluation pipeline of the PublisherModel." + }, "openFineTuningPipeline": { "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences", "description": "Optional. Open fine-tuning pipeline of the PublisherModel." @@ -27333,7 +27342,7 @@ "type": "object" }, "GoogleIamV1Policy": { - "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", "id": "GoogleIamV1Policy", "properties": { "bindings": { @@ -27428,7 +27437,7 @@ "description": "Properties of the object. Contains field @type with type URL.", "type": "any" }, - "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", "type": "object" } }, diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index d80d7ad91ac..f3d81219a11 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -15542,6 +15542,10 @@ type GoogleCloudAiplatformV1PipelineJob struct { // RuntimeConfig: Runtime config of the pipeline. RuntimeConfig *GoogleCloudAiplatformV1PipelineJobRuntimeConfig `json:"runtimeConfig,omitempty"` + // ScheduleName: Output only. The schedule resource name. Only returned + // if the Pipeline is created by Schedule API. + ScheduleName string `json:"scheduleName,omitempty"` + // ServiceAccount: The service account that the pipeline workload runs // as. If not specified, the Compute Engine default service account in // the project will be used. See @@ -16590,6 +16594,10 @@ type GoogleCloudAiplatformV1PublisherModelCallToAction struct { // Deploy: Optional. Deploy the PublisherModel to Vertex Endpoint. Deploy *GoogleCloudAiplatformV1PublisherModelCallToActionDeploy `json:"deploy,omitempty"` + // OpenEvaluationPipeline: Optional. Open evaluation pipeline of the + // PublisherModel. + OpenEvaluationPipeline *GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences `json:"openEvaluationPipeline,omitempty"` + // OpenFineTuningPipeline: Optional. Open fine-tuning pipeline of the // PublisherModel. OpenFineTuningPipeline *GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences `json:"openFineTuningPipeline,omitempty"` @@ -29745,7 +29753,7 @@ func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) { // both. To learn which resources support conditions in their IAM // policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). -// **JSON example:** { "bindings": [ { "role": +// **JSON example:** ``` { "bindings": [ { "role": // "roles/resourcemanager.organizationAdmin", "members": [ // "user:mike@example.com", "group:admins@example.com", // "domain:google.com", @@ -29754,17 +29762,17 @@ func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) { // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - +// "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` +// bindings: - members: - user:mike@example.com - +// group:admins@example.com - domain:google.com - // serviceAccount:my-project-id@appspot.gserviceaccount.com role: // roles/resourcemanager.organizationAdmin - members: - // user:eve@example.com role: roles/resourcemanager.organizationViewer // condition: title: expirable access description: Does not grant access // after Sep 2020 expression: request.time < // timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 -// For a description of IAM and its features, see the IAM documentation -// (https://cloud.google.com/iam/docs/). +// ``` For a description of IAM and its features, see the IAM +// documentation (https://cloud.google.com/iam/docs/). type GoogleIamV1Policy struct { // Bindings: Associates a list of `members`, or principals, with a // `role`. Optionally, may specify a `condition` that determines how and @@ -29965,8 +29973,8 @@ type GoogleLongrunningOperation struct { // `operations/{unique_id}`. Name string `json:"name,omitempty"` - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the + // Response: The normal, successful response of the operation. If the + // original method returns no data on success, such as `Delete`, the // response is `google.protobuf.Empty`. If the original method is // standard `Get`/`Create`/`Update`, the response should be the // resource. For other methods, the response should have the type diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index a2bc9db7af9..fb3f4421566 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -3844,6 +3844,266 @@ } } }, + "featureGroups": { + "resources": { + "features": { + "resources": { + "operations": { + "methods": { + "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.featureGroups.features.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+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": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.features.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+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": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.features.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/[^/]+/featureGroups/[^/]+/features/[^/]+$", + "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" + } + }, + "path": "v1beta1/{+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": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureGroups.features.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/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": "v1beta1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "operations": { + "methods": { + "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.featureGroups.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+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": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+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": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.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/[^/]+/featureGroups/[^/]+$", + "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" + } + }, + "path": "v1beta1/{+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": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureGroups.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/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": "v1beta1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, "featureOnlineStores": { "resources": { "featureViews": { @@ -14489,7 +14749,7 @@ } } }, - "revision": "20230727", + "revision": "20230809", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -15955,6 +16215,28 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1CreateExtensionControllerOperationMetadata": { + "description": "Details of ExtensionControllerService.CreateExtensionController operation.", + "id": "GoogleCloudAiplatformV1beta1CreateExtensionControllerOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1beta1GenericOperationMetadata", + "description": "The common part of the operation metadata." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1CreateExtensionDeploymentOperationMetadata": { + "description": "Details of ExtensionRegistryService.CreateExtensionDeployment operation.", + "id": "GoogleCloudAiplatformV1beta1CreateExtensionDeploymentOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1beta1GenericOperationMetadata", + "description": "The common part of the operation metadata." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1CreateFeatureOperationMetadata": { "description": "Details of operations that perform create Feature.", "id": "GoogleCloudAiplatformV1beta1CreateFeatureOperationMetadata", @@ -19281,6 +19563,17 @@ "properties": {}, "type": "object" }, + "GoogleCloudAiplatformV1beta1ImportExtensionOperationMetadata": { + "description": "Details of ExtensionRegistryService.ImportExtension operation.", + "id": "GoogleCloudAiplatformV1beta1ImportExtensionOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1beta1GenericOperationMetadata", + "description": "The common part of the operation metadata." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ImportFeatureValuesOperationMetadata": { "description": "Details of operations that perform import Feature values.", "id": "GoogleCloudAiplatformV1beta1ImportFeatureValuesOperationMetadata", @@ -22665,6 +22958,12 @@ "description": "Required. The display name of the NotebookRuntime. The name can be up to 128 characters long and can consist of any UTF-8 characters.", "type": "string" }, + "expirationTime": { + "description": "Output only. Timestamp when this NotebookRuntime will be expired: 1. System Predefined NotebookRuntime: 24 hours after creation. After expiration, system predifined runtime will be deleted. 2. User created NotebookRuntime: 6 months after last upgrade. After expiration, user created runtime will be stopped and allowed for upgrade.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "healthState": { "description": "Output only. The health state of the NotebookRuntime.", "enum": [ @@ -23009,6 +23308,11 @@ "$ref": "GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfig", "description": "Runtime config of the pipeline." }, + "scheduleName": { + "description": "Output only. The schedule resource name. Only returned if the Pipeline is created by Schedule API.", + "readOnly": true, + "type": "string" + }, "serviceAccount": { "description": "The service account that the pipeline workload runs as. If not specified, the Compute Engine default service account in the project will be used. See https://cloud.google.com/compute/docs/access/service-accounts#default_service_account Users starting the pipeline must have the `iam.serviceAccounts.actAs` permission on this service account.", "type": "string" @@ -23689,6 +23993,10 @@ "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeploy", "description": "Optional. Deploy the PublisherModel to Vertex Endpoint." }, + "openEvaluationPipeline": { + "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences", + "description": "Optional. Open evaluation pipeline of the PublisherModel." + }, "openFineTuningPipeline": { "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences", "description": "Optional. Open fine-tuning pipeline of the PublisherModel." @@ -24375,14 +24683,7 @@ "description": "Optional. Disk spec for the machine in this node pool." }, "id": { - "description": "Optional. The unique ID in a PersistentResource to refer the this resource pool. User can specify it if need to use it, otherwise we will generate it automatically.", - "type": "string" - }, - "idleReplicaCount": { - "deprecated": true, - "description": "Output only. The number of machines currently not in use by training jobs for this resource pool. Deprecated. Use `used_replica_count` instead.", - "format": "int64", - "readOnly": true, + "description": "Immutable. The unique ID in a PersistentResource to refer the this resource pool. User can specify it if need to use it, otherwise we will generate it automatically.", "type": "string" }, "machineSpec": { @@ -30568,7 +30869,7 @@ "type": "object" }, "GoogleIamV1Policy": { - "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", "id": "GoogleIamV1Policy", "properties": { "bindings": { @@ -30677,7 +30978,7 @@ "description": "Properties of the object. Contains field @type with type URL.", "type": "any" }, - "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", "type": "object" } }, diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index e16632214de..0b8a677c6a5 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -173,6 +173,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.Endpoints = NewProjectsLocationsEndpointsService(s) rs.ExtensionControllers = NewProjectsLocationsExtensionControllersService(s) rs.Extensions = NewProjectsLocationsExtensionsService(s) + rs.FeatureGroups = NewProjectsLocationsFeatureGroupsService(s) rs.FeatureOnlineStores = NewProjectsLocationsFeatureOnlineStoresService(s) rs.Featurestores = NewProjectsLocationsFeaturestoresService(s) rs.HyperparameterTuningJobs = NewProjectsLocationsHyperparameterTuningJobsService(s) @@ -220,6 +221,8 @@ type ProjectsLocationsService struct { Extensions *ProjectsLocationsExtensionsService + FeatureGroups *ProjectsLocationsFeatureGroupsService + FeatureOnlineStores *ProjectsLocationsFeatureOnlineStoresService Featurestores *ProjectsLocationsFeaturestoresService @@ -564,6 +567,51 @@ type ProjectsLocationsExtensionsOperationsService struct { s *Service } +func NewProjectsLocationsFeatureGroupsService(s *Service) *ProjectsLocationsFeatureGroupsService { + rs := &ProjectsLocationsFeatureGroupsService{s: s} + rs.Features = NewProjectsLocationsFeatureGroupsFeaturesService(s) + rs.Operations = NewProjectsLocationsFeatureGroupsOperationsService(s) + return rs +} + +type ProjectsLocationsFeatureGroupsService struct { + s *Service + + Features *ProjectsLocationsFeatureGroupsFeaturesService + + Operations *ProjectsLocationsFeatureGroupsOperationsService +} + +func NewProjectsLocationsFeatureGroupsFeaturesService(s *Service) *ProjectsLocationsFeatureGroupsFeaturesService { + rs := &ProjectsLocationsFeatureGroupsFeaturesService{s: s} + rs.Operations = NewProjectsLocationsFeatureGroupsFeaturesOperationsService(s) + return rs +} + +type ProjectsLocationsFeatureGroupsFeaturesService struct { + s *Service + + Operations *ProjectsLocationsFeatureGroupsFeaturesOperationsService +} + +func NewProjectsLocationsFeatureGroupsFeaturesOperationsService(s *Service) *ProjectsLocationsFeatureGroupsFeaturesOperationsService { + rs := &ProjectsLocationsFeatureGroupsFeaturesOperationsService{s: s} + return rs +} + +type ProjectsLocationsFeatureGroupsFeaturesOperationsService struct { + s *Service +} + +func NewProjectsLocationsFeatureGroupsOperationsService(s *Service) *ProjectsLocationsFeatureGroupsOperationsService { + rs := &ProjectsLocationsFeatureGroupsOperationsService{s: s} + return rs +} + +type ProjectsLocationsFeatureGroupsOperationsService struct { + s *Service +} + func NewProjectsLocationsFeatureOnlineStoresService(s *Service) *ProjectsLocationsFeatureOnlineStoresService { rs := &ProjectsLocationsFeatureOnlineStoresService{s: s} rs.FeatureViews = NewProjectsLocationsFeatureOnlineStoresFeatureViewsService(s) @@ -4129,152 +4177,13 @@ func (s *GoogleCloudAiplatformV1beta1CreateEntityTypeOperationMetadata) MarshalJ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1CreateFeatureOperationMetadata: Details -// of operations that perform create Feature. -type GoogleCloudAiplatformV1beta1CreateFeatureOperationMetadata struct { - // GenericMetadata: Operation metadata for Feature. - GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. "GenericMetadata") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GenericMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1beta1CreateFeatureOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1CreateFeatureOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudAiplatformV1beta1CreateFeatureRequest: Request message for -// FeaturestoreService.CreateFeature and -// FeatureRegistryService.CreateFeature. -type GoogleCloudAiplatformV1beta1CreateFeatureRequest struct { - // Feature: Required. The Feature to create. - Feature *GoogleCloudAiplatformV1beta1Feature `json:"feature,omitempty"` - - // FeatureId: Required. The ID to use for the Feature, which will become - // the final component of the Feature's resource name. This value may be - // up to 128 characters, and valid characters are `[a-z0-9_]`. The first - // character cannot be a number. The value must be unique within an - // EntityType/FeatureGroup. - FeatureId string `json:"featureId,omitempty"` - - // Parent: Required. The resource name of the EntityType or FeatureGroup - // to create a Feature. Format: - // `projects/{project}/locations/{location}/featurestores/{featurestore}/ - // entityTypes/{entity_type}` - // `projects/{project}/locations/{location}/featureGroups/{feature_group} - // ` - Parent string `json:"parent,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Feature") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Feature") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1beta1CreateFeatureRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1CreateFeatureRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudAiplatformV1beta1CreateFeaturestoreOperationMetadata: -// Details of operations that perform create Featurestore. -type GoogleCloudAiplatformV1beta1CreateFeaturestoreOperationMetadata struct { - // GenericMetadata: Operation metadata for Featurestore. - GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. "GenericMetadata") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GenericMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1beta1CreateFeaturestoreOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1CreateFeaturestoreOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudAiplatformV1beta1CreateIndexEndpointOperationMetadata: -// Runtime operation information for -// IndexEndpointService.CreateIndexEndpoint. -type GoogleCloudAiplatformV1beta1CreateIndexEndpointOperationMetadata struct { - // GenericMetadata: The operation generic information. - GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. "GenericMetadata") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GenericMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1beta1CreateIndexEndpointOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1CreateIndexEndpointOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudAiplatformV1beta1CreateIndexOperationMetadata: Runtime -// operation information for IndexService.CreateIndex. -type GoogleCloudAiplatformV1beta1CreateIndexOperationMetadata struct { - // GenericMetadata: The operation generic information. +// GoogleCloudAiplatformV1beta1CreateExtensionControllerOperationMetadata +// : Details of ExtensionControllerService.CreateExtensionController +// operation. +type GoogleCloudAiplatformV1beta1CreateExtensionControllerOperationMetadata struct { + // GenericMetadata: The common part of the operation metadata. GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` - // NearestNeighborSearchOperationMetadata: The operation metadata with - // regard to Matching Engine Index operation. - NearestNeighborSearchOperationMetadata *GoogleCloudAiplatformV1beta1NearestNeighborSearchOperationMetadata `json:"nearestNeighborSearchOperationMetadata,omitempty"` - // ForceSendFields is a list of field names (e.g. "GenericMetadata") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -4293,17 +4202,17 @@ type GoogleCloudAiplatformV1beta1CreateIndexOperationMetadata struct { NullFields []string `json:"-"` } -func (s *GoogleCloudAiplatformV1beta1CreateIndexOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1CreateIndexOperationMetadata +func (s *GoogleCloudAiplatformV1beta1CreateExtensionControllerOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreateExtensionControllerOperationMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1CreateMetadataStoreOperationMetadata: -// Details of operations that perform -// MetadataService.CreateMetadataStore. -type GoogleCloudAiplatformV1beta1CreateMetadataStoreOperationMetadata struct { - // GenericMetadata: Operation metadata for creating a MetadataStore. +// GoogleCloudAiplatformV1beta1CreateExtensionDeploymentOperationMetadata +// : Details of ExtensionRegistryService.CreateExtensionDeployment +// operation. +type GoogleCloudAiplatformV1beta1CreateExtensionDeploymentOperationMetadata struct { + // GenericMetadata: The common part of the operation metadata. GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` // ForceSendFields is a list of field names (e.g. "GenericMetadata") to @@ -4324,17 +4233,16 @@ type GoogleCloudAiplatformV1beta1CreateMetadataStoreOperationMetadata struct { NullFields []string `json:"-"` } -func (s *GoogleCloudAiplatformV1beta1CreateMetadataStoreOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1CreateMetadataStoreOperationMetadata +func (s *GoogleCloudAiplatformV1beta1CreateExtensionDeploymentOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreateExtensionDeploymentOperationMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1CreateNotebookRuntimeTemplateOperationMeta -// data: Metadata information for -// NotebookService.CreateNotebookRuntimeTemplate. -type GoogleCloudAiplatformV1beta1CreateNotebookRuntimeTemplateOperationMetadata struct { - // GenericMetadata: The operation generic information. +// GoogleCloudAiplatformV1beta1CreateFeatureOperationMetadata: Details +// of operations that perform create Feature. +type GoogleCloudAiplatformV1beta1CreateFeatureOperationMetadata struct { + // GenericMetadata: Operation metadata for Feature. GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` // ForceSendFields is a list of field names (e.g. "GenericMetadata") to @@ -4355,60 +4263,35 @@ type GoogleCloudAiplatformV1beta1CreateNotebookRuntimeTemplateOperationMetadata NullFields []string `json:"-"` } -func (s *GoogleCloudAiplatformV1beta1CreateNotebookRuntimeTemplateOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1CreateNotebookRuntimeTemplateOperationMetadata +func (s *GoogleCloudAiplatformV1beta1CreateFeatureOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreateFeatureOperationMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1CreatePersistentResourceOperationMetadata: -// -// Details of operations that perform create PersistentResource. -type GoogleCloudAiplatformV1beta1CreatePersistentResourceOperationMetadata struct { - // GenericMetadata: Operation metadata for PersistentResource. - GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. "GenericMetadata") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GenericMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} +// GoogleCloudAiplatformV1beta1CreateFeatureRequest: Request message for +// FeaturestoreService.CreateFeature and +// FeatureRegistryService.CreateFeature. +type GoogleCloudAiplatformV1beta1CreateFeatureRequest struct { + // Feature: Required. The Feature to create. + Feature *GoogleCloudAiplatformV1beta1Feature `json:"feature,omitempty"` -func (s *GoogleCloudAiplatformV1beta1CreatePersistentResourceOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1CreatePersistentResourceOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // FeatureId: Required. The ID to use for the Feature, which will become + // the final component of the Feature's resource name. This value may be + // up to 128 characters, and valid characters are `[a-z0-9_]`. The first + // character cannot be a number. The value must be unique within an + // EntityType/FeatureGroup. + FeatureId string `json:"featureId,omitempty"` -// GoogleCloudAiplatformV1beta1CreatePipelineJobRequest: Request message -// for PipelineService.CreatePipelineJob. -type GoogleCloudAiplatformV1beta1CreatePipelineJobRequest struct { - // Parent: Required. The resource name of the Location to create the - // PipelineJob in. Format: `projects/{project}/locations/{location}` + // Parent: Required. The resource name of the EntityType or FeatureGroup + // to create a Feature. Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/ + // entityTypes/{entity_type}` + // `projects/{project}/locations/{location}/featureGroups/{feature_group} + // ` Parent string `json:"parent,omitempty"` - // PipelineJob: Required. The PipelineJob to create. - PipelineJob *GoogleCloudAiplatformV1beta1PipelineJob `json:"pipelineJob,omitempty"` - - // PipelineJobId: The ID to use for the PipelineJob, which will become - // the final component of the PipelineJob name. If not provided, an ID - // will be automatically generated. This value should be less than 128 - // characters, and valid characters are /a-z-/. - PipelineJobId string `json:"pipelineJobId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Parent") to + // ForceSendFields is a list of field names (e.g. "Feature") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4416,8 +4299,8 @@ type GoogleCloudAiplatformV1beta1CreatePipelineJobRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Parent") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Feature") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -4425,16 +4308,16 @@ type GoogleCloudAiplatformV1beta1CreatePipelineJobRequest struct { NullFields []string `json:"-"` } -func (s *GoogleCloudAiplatformV1beta1CreatePipelineJobRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1CreatePipelineJobRequest +func (s *GoogleCloudAiplatformV1beta1CreateFeatureRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreateFeatureRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1CreateSolverOperationMetadata: Runtime -// operation information for SolverService.CreateSolver. -type GoogleCloudAiplatformV1beta1CreateSolverOperationMetadata struct { - // GenericMetadata: The generic operation information. +// GoogleCloudAiplatformV1beta1CreateFeaturestoreOperationMetadata: +// Details of operations that perform create Featurestore. +type GoogleCloudAiplatformV1beta1CreateFeaturestoreOperationMetadata struct { + // GenericMetadata: Operation metadata for Featurestore. GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` // ForceSendFields is a list of field names (e.g. "GenericMetadata") to @@ -4455,16 +4338,243 @@ type GoogleCloudAiplatformV1beta1CreateSolverOperationMetadata struct { NullFields []string `json:"-"` } -func (s *GoogleCloudAiplatformV1beta1CreateSolverOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1CreateSolverOperationMetadata +func (s *GoogleCloudAiplatformV1beta1CreateFeaturestoreOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreateFeaturestoreOperationMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1CreateSpecialistPoolOperationMetadata: +// GoogleCloudAiplatformV1beta1CreateIndexEndpointOperationMetadata: // Runtime operation information for -// SpecialistPoolService.CreateSpecialistPool. -type GoogleCloudAiplatformV1beta1CreateSpecialistPoolOperationMetadata struct { +// IndexEndpointService.CreateIndexEndpoint. +type GoogleCloudAiplatformV1beta1CreateIndexEndpointOperationMetadata struct { + // GenericMetadata: The operation generic information. + GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1CreateIndexEndpointOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreateIndexEndpointOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1CreateIndexOperationMetadata: Runtime +// operation information for IndexService.CreateIndex. +type GoogleCloudAiplatformV1beta1CreateIndexOperationMetadata struct { + // GenericMetadata: The operation generic information. + GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // NearestNeighborSearchOperationMetadata: The operation metadata with + // regard to Matching Engine Index operation. + NearestNeighborSearchOperationMetadata *GoogleCloudAiplatformV1beta1NearestNeighborSearchOperationMetadata `json:"nearestNeighborSearchOperationMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1CreateIndexOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreateIndexOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1CreateMetadataStoreOperationMetadata: +// Details of operations that perform +// MetadataService.CreateMetadataStore. +type GoogleCloudAiplatformV1beta1CreateMetadataStoreOperationMetadata struct { + // GenericMetadata: Operation metadata for creating a MetadataStore. + GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1CreateMetadataStoreOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreateMetadataStoreOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1CreateNotebookRuntimeTemplateOperationMeta +// data: Metadata information for +// NotebookService.CreateNotebookRuntimeTemplate. +type GoogleCloudAiplatformV1beta1CreateNotebookRuntimeTemplateOperationMetadata struct { + // GenericMetadata: The operation generic information. + GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1CreateNotebookRuntimeTemplateOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreateNotebookRuntimeTemplateOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1CreatePersistentResourceOperationMetadata: +// +// Details of operations that perform create PersistentResource. +type GoogleCloudAiplatformV1beta1CreatePersistentResourceOperationMetadata struct { + // GenericMetadata: Operation metadata for PersistentResource. + GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1CreatePersistentResourceOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreatePersistentResourceOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1CreatePipelineJobRequest: Request message +// for PipelineService.CreatePipelineJob. +type GoogleCloudAiplatformV1beta1CreatePipelineJobRequest struct { + // Parent: Required. The resource name of the Location to create the + // PipelineJob in. Format: `projects/{project}/locations/{location}` + Parent string `json:"parent,omitempty"` + + // PipelineJob: Required. The PipelineJob to create. + PipelineJob *GoogleCloudAiplatformV1beta1PipelineJob `json:"pipelineJob,omitempty"` + + // PipelineJobId: The ID to use for the PipelineJob, which will become + // the final component of the PipelineJob name. If not provided, an ID + // will be automatically generated. This value should be less than 128 + // characters, and valid characters are /a-z-/. + PipelineJobId string `json:"pipelineJobId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Parent") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Parent") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1CreatePipelineJobRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreatePipelineJobRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1CreateSolverOperationMetadata: Runtime +// operation information for SolverService.CreateSolver. +type GoogleCloudAiplatformV1beta1CreateSolverOperationMetadata struct { + // GenericMetadata: The generic operation information. + GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1CreateSolverOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreateSolverOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1CreateSpecialistPoolOperationMetadata: +// Runtime operation information for +// SpecialistPoolService.CreateSpecialistPool. +type GoogleCloudAiplatformV1beta1CreateSpecialistPoolOperationMetadata struct { // GenericMetadata: The operation generic information. GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` @@ -10405,6 +10515,36 @@ func (s *GoogleCloudAiplatformV1beta1ImportDataRequest) MarshalJSON() ([]byte, e type GoogleCloudAiplatformV1beta1ImportDataResponse struct { } +// GoogleCloudAiplatformV1beta1ImportExtensionOperationMetadata: Details +// of ExtensionRegistryService.ImportExtension operation. +type GoogleCloudAiplatformV1beta1ImportExtensionOperationMetadata struct { + // GenericMetadata: The common part of the operation metadata. + GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ImportExtensionOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ImportExtensionOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1ImportFeatureValuesOperationMetadata: // Details of operations that perform import Feature values. type GoogleCloudAiplatformV1beta1ImportFeatureValuesOperationMetadata struct { @@ -16628,6 +16768,14 @@ type GoogleCloudAiplatformV1beta1NotebookRuntime struct { // characters. DisplayName string `json:"displayName,omitempty"` + // ExpirationTime: Output only. Timestamp when this NotebookRuntime will + // be expired: 1. System Predefined NotebookRuntime: 24 hours after + // creation. After expiration, system predifined runtime will be + // deleted. 2. User created NotebookRuntime: 6 months after last + // upgrade. After expiration, user created runtime will be stopped and + // allowed for upgrade. + ExpirationTime string `json:"expirationTime,omitempty"` + // HealthState: Output only. The health state of the NotebookRuntime. // // Possible values: @@ -17054,6 +17202,10 @@ type GoogleCloudAiplatformV1beta1PipelineJob struct { // RuntimeConfig: Runtime config of the pipeline. RuntimeConfig *GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfig `json:"runtimeConfig,omitempty"` + // ScheduleName: Output only. The schedule resource name. Only returned + // if the Pipeline is created by Schedule API. + ScheduleName string `json:"scheduleName,omitempty"` + // ServiceAccount: The service account that the pipeline workload runs // as. If not specified, the Compute Engine default service account in // the project will be used. See @@ -18111,6 +18263,10 @@ type GoogleCloudAiplatformV1beta1PublisherModelCallToAction struct { // Deploy: Optional. Deploy the PublisherModel to Vertex Endpoint. Deploy *GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeploy `json:"deploy,omitempty"` + // OpenEvaluationPipeline: Optional. Open evaluation pipeline of the + // PublisherModel. + OpenEvaluationPipeline *GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences `json:"openEvaluationPipeline,omitempty"` + // OpenFineTuningPipeline: Optional. Open fine-tuning pipeline of the // PublisherModel. OpenFineTuningPipeline *GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences `json:"openFineTuningPipeline,omitempty"` @@ -19512,16 +19668,11 @@ type GoogleCloudAiplatformV1beta1ResourcePool struct { // DiskSpec: Optional. Disk spec for the machine in this node pool. DiskSpec *GoogleCloudAiplatformV1beta1DiskSpec `json:"diskSpec,omitempty"` - // Id: Optional. The unique ID in a PersistentResource to refer the this - // resource pool. User can specify it if need to use it, otherwise we - // will generate it automatically. + // Id: Immutable. The unique ID in a PersistentResource to refer the + // this resource pool. User can specify it if need to use it, otherwise + // we will generate it automatically. Id string `json:"id,omitempty"` - // IdleReplicaCount: Output only. The number of machines currently not - // in use by training jobs for this resource pool. Deprecated. Use - // `used_replica_count` instead. - IdleReplicaCount int64 `json:"idleReplicaCount,omitempty,string"` - // MachineSpec: Required. Immutable. The specification of a single // machine. MachineSpec *GoogleCloudAiplatformV1beta1MachineSpec `json:"machineSpec,omitempty"` @@ -31906,7 +32057,7 @@ func (s *GoogleIamV1GetPolicyOptions) MarshalJSON() ([]byte, error) { // both. To learn which resources support conditions in their IAM // policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). -// **JSON example:** { "bindings": [ { "role": +// **JSON example:** ``` { "bindings": [ { "role": // "roles/resourcemanager.organizationAdmin", "members": [ // "user:mike@example.com", "group:admins@example.com", // "domain:google.com", @@ -31915,17 +32066,17 @@ func (s *GoogleIamV1GetPolicyOptions) MarshalJSON() ([]byte, error) { // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - +// "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` +// bindings: - members: - user:mike@example.com - +// group:admins@example.com - domain:google.com - // serviceAccount:my-project-id@appspot.gserviceaccount.com role: // roles/resourcemanager.organizationAdmin - members: - // user:eve@example.com role: roles/resourcemanager.organizationViewer // condition: title: expirable access description: Does not grant access // after Sep 2020 expression: request.time < // timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 -// For a description of IAM and its features, see the IAM documentation -// (https://cloud.google.com/iam/docs/). +// ``` For a description of IAM and its features, see the IAM +// documentation (https://cloud.google.com/iam/docs/). type GoogleIamV1Policy struct { // Bindings: Associates a list of `members`, or principals, with a // `role`. Optionally, may specify a `condition` that determines how and @@ -32158,8 +32309,8 @@ type GoogleLongrunningOperation struct { // `operations/{unique_id}`. Name string `json:"name,omitempty"` - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the + // Response: The normal, successful response of the operation. If the + // original method returns no data on success, such as `Delete`, the // response is `google.protobuf.Empty`. If the original method is // standard `Get`/`Create`/`Update`, the response should be the // resource. For other methods, the response should have the type @@ -48297,9 +48448,1583 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) Do(opts ...googleapi.Ca return ret, nil // { // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}:cancel", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:cancel", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.endpoints.operations.delete": + +type ProjectsLocationsEndpointsOperationsDeleteCall 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 *ProjectsLocationsEndpointsOperationsService) Delete(name string) *ProjectsLocationsEndpointsOperationsDeleteCall { + c := &ProjectsLocationsEndpointsOperationsDeleteCall{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 information. +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.endpoints.operations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsEndpointsOperationsDeleteCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.endpoints.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.endpoints.operations.get": + +type ProjectsLocationsEndpointsOperationsGetCall 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 *ProjectsLocationsEndpointsOperationsService) Get(name string) *ProjectsLocationsEndpointsOperationsGetCall { + c := &ProjectsLocationsEndpointsOperationsGetCall{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 information. +func (c *ProjectsLocationsEndpointsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsEndpointsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsEndpointsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsEndpointsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEndpointsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.endpoints.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// 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 *ProjectsLocationsEndpointsOperationsGetCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.endpoints.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.endpoints.operations.list": + +type ProjectsLocationsEndpointsOperationsListCall 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 *ProjectsLocationsEndpointsOperationsService) List(name string) *ProjectsLocationsEndpointsOperationsListCall { + c := &ProjectsLocationsEndpointsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsEndpointsOperationsListCall) Filter(filter string) *ProjectsLocationsEndpointsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsEndpointsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsEndpointsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsEndpointsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsEndpointsOperationsListCall { + 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 information. +func (c *ProjectsLocationsEndpointsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsEndpointsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsEndpointsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsEndpointsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEndpointsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.endpoints.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. 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 *ProjectsLocationsEndpointsOperationsListCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.endpoints.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/[^/]+/endpoints/[^/]+$", + // "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" + // } + // }, + // "path": "v1beta1/{+name}/operations", + // "response": { + // "$ref": "GoogleLongrunningListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// 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 *ProjectsLocationsEndpointsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + 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) + } +} + +// method id "aiplatform.projects.locations.endpoints.operations.wait": + +type ProjectsLocationsEndpointsOperationsWaitCall 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 *ProjectsLocationsEndpointsOperationsService) Wait(name string) *ProjectsLocationsEndpointsOperationsWaitCall { + c := &ProjectsLocationsEndpointsOperationsWaitCall{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 *ProjectsLocationsEndpointsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsEndpointsOperationsWaitCall { + 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 information. +func (c *ProjectsLocationsEndpointsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsWaitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsEndpointsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsWaitCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsEndpointsOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEndpointsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.endpoints.operations.wait" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// 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 *ProjectsLocationsEndpointsOperationsWaitCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.operations.wait", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to wait on.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/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": "v1beta1/{+name}:wait", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.extensionControllers.operations.cancel": + +type ProjectsLocationsExtensionControllersOperationsCancelCall 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 *ProjectsLocationsExtensionControllersOperationsService) Cancel(name string) *ProjectsLocationsExtensionControllersOperationsCancelCall { + c := &ProjectsLocationsExtensionControllersOperationsCancelCall{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 information. +func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.extensionControllers.operations.cancel" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExtensionControllersOperationsCancelCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.extensionControllers.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:cancel", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.extensionControllers.operations.delete": + +type ProjectsLocationsExtensionControllersOperationsDeleteCall 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 *ProjectsLocationsExtensionControllersOperationsService) Delete(name string) *ProjectsLocationsExtensionControllersOperationsDeleteCall { + c := &ProjectsLocationsExtensionControllersOperationsDeleteCall{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 information. +func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.extensionControllers.operations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExtensionControllersOperationsDeleteCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.extensionControllers.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.extensionControllers.operations.get": + +type ProjectsLocationsExtensionControllersOperationsGetCall 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 *ProjectsLocationsExtensionControllersOperationsService) Get(name string) *ProjectsLocationsExtensionControllersOperationsGetCall { + c := &ProjectsLocationsExtensionControllersOperationsGetCall{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 information. +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionControllersOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.extensionControllers.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// 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 *ProjectsLocationsExtensionControllersOperationsGetCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.extensionControllers.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.extensionControllers.operations.list": + +type ProjectsLocationsExtensionControllersOperationsListCall 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 *ProjectsLocationsExtensionControllersOperationsService) List(name string) *ProjectsLocationsExtensionControllersOperationsListCall { + c := &ProjectsLocationsExtensionControllersOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionControllersOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsExtensionControllersOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionControllersOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsExtensionControllersOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionControllersOperationsListCall { + 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 information. +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsExtensionControllersOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionControllersOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsExtensionControllersOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.extensionControllers.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. 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 *ProjectsLocationsExtensionControllersOperationsListCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.extensionControllers.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/[^/]+/extensionControllers/[^/]+$", + // "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" + // } + // }, + // "path": "v1beta1/{+name}/operations", + // "response": { + // "$ref": "GoogleLongrunningListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// 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 *ProjectsLocationsExtensionControllersOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + 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) + } +} + +// method id "aiplatform.projects.locations.extensionControllers.operations.wait": + +type ProjectsLocationsExtensionControllersOperationsWaitCall 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 *ProjectsLocationsExtensionControllersOperationsService) Wait(name string) *ProjectsLocationsExtensionControllersOperationsWaitCall { + c := &ProjectsLocationsExtensionControllersOperationsWaitCall{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 *ProjectsLocationsExtensionControllersOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionControllersOperationsWaitCall { + 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 information. +func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsWaitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsWaitCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.extensionControllers.operations.wait" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// 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 *ProjectsLocationsExtensionControllersOperationsWaitCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.extensionControllers.operations.wait", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to wait on.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/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": "v1beta1/{+name}:wait", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.extensions.deployments.operations.cancel": + +type ProjectsLocationsExtensionsDeploymentsOperationsCancelCall 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 *ProjectsLocationsExtensionsDeploymentsOperationsService) Cancel(name string) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { + c := &ProjectsLocationsExtensionsDeploymentsOperationsCancelCall{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 information. +func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.cancel" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) 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 + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.operations.cancel", + // "id": "aiplatform.projects.locations.extensions.deployments.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -48307,7 +50032,7 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) Do(opts ...googleapi.Ca // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -48323,9 +50048,9 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.endpoints.operations.delete": +// method id "aiplatform.projects.locations.extensions.deployments.operations.delete": -type ProjectsLocationsEndpointsOperationsDeleteCall struct { +type ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -48339,8 +50064,8 @@ type ProjectsLocationsEndpointsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsEndpointsOperationsService) Delete(name string) *ProjectsLocationsEndpointsOperationsDeleteCall { - c := &ProjectsLocationsEndpointsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Delete(name string) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { + c := &ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -48348,7 +50073,7 @@ func (r *ProjectsLocationsEndpointsOperationsService) Delete(name string) *Proje // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsDeleteCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -48356,21 +50081,21 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsDeleteCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -48393,14 +50118,14 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.operations.delete" call. +// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.delete" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsEndpointsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -48432,9 +50157,9 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Do(opts ...googleapi.Ca return ret, nil // { // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.endpoints.operations.delete", + // "id": "aiplatform.projects.locations.extensions.deployments.operations.delete", // "parameterOrder": [ // "name" // ], @@ -48442,7 +50167,7 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Do(opts ...googleapi.Ca // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -48458,9 +50183,9 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.endpoints.operations.get": +// method id "aiplatform.projects.locations.extensions.deployments.operations.get": -type ProjectsLocationsEndpointsOperationsGetCall struct { +type ProjectsLocationsExtensionsDeploymentsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -48474,8 +50199,8 @@ type ProjectsLocationsEndpointsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsEndpointsOperationsService) Get(name string) *ProjectsLocationsEndpointsOperationsGetCall { - c := &ProjectsLocationsEndpointsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Get(name string) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { + c := &ProjectsLocationsExtensionsDeploymentsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -48483,7 +50208,7 @@ func (r *ProjectsLocationsEndpointsOperationsService) Get(name string) *Projects // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsGetCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -48493,7 +50218,7 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) Fields(s ...googleapi.Fiel // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsEndpointsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsOperationsGetCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -48501,21 +50226,21 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) IfNoneMatch(entityTag stri // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsGetCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -48541,14 +50266,14 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.operations.get" call. +// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.get" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // 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 *ProjectsLocationsEndpointsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -48580,9 +50305,9 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) Do(opts ...googleapi.CallO return ret, nil // { // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.endpoints.operations.get", + // "id": "aiplatform.projects.locations.extensions.deployments.operations.get", // "parameterOrder": [ // "name" // ], @@ -48590,7 +50315,7 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) Do(opts ...googleapi.CallO // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -48606,9 +50331,9 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.endpoints.operations.list": +// method id "aiplatform.projects.locations.extensions.deployments.operations.list": -type ProjectsLocationsEndpointsOperationsListCall struct { +type ProjectsLocationsExtensionsDeploymentsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -48622,29 +50347,29 @@ type ProjectsLocationsEndpointsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsEndpointsOperationsService) List(name string) *ProjectsLocationsEndpointsOperationsListCall { - c := &ProjectsLocationsEndpointsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) List(name string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { + c := &ProjectsLocationsExtensionsDeploymentsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsEndpointsOperationsListCall) Filter(filter string) *ProjectsLocationsEndpointsOperationsListCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsEndpointsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsEndpointsOperationsListCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsEndpointsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsEndpointsOperationsListCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -48652,7 +50377,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) PageToken(pageToken strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsListCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -48662,7 +50387,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) Fields(s ...googleapi.Fie // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsEndpointsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsOperationsListCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -48670,21 +50395,21 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) IfNoneMatch(entityTag str // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsListCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -48710,7 +50435,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.operations.list" call. +// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.list" call. // Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either @@ -48718,7 +50443,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) doRequest(alt string) (*h // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsEndpointsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -48750,9 +50475,9 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) Do(opts ...googleapi.Call return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.endpoints.operations.list", + // "id": "aiplatform.projects.locations.extensions.deployments.operations.list", // "parameterOrder": [ // "name" // ], @@ -48765,7 +50490,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) Do(opts ...googleapi.Call // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+$", // "required": true, // "type": "string" // }, @@ -48795,7 +50520,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) Do(opts ...googleapi.Call // 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 *ProjectsLocationsEndpointsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -48813,9 +50538,9 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) Pages(ctx context.Context } } -// method id "aiplatform.projects.locations.endpoints.operations.wait": +// method id "aiplatform.projects.locations.extensions.deployments.operations.wait": -type ProjectsLocationsEndpointsOperationsWaitCall struct { +type ProjectsLocationsExtensionsDeploymentsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -48835,8 +50560,8 @@ type ProjectsLocationsEndpointsOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsEndpointsOperationsService) Wait(name string) *ProjectsLocationsEndpointsOperationsWaitCall { - c := &ProjectsLocationsEndpointsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Wait(name string) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { + c := &ProjectsLocationsExtensionsDeploymentsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -48845,7 +50570,7 @@ func (r *ProjectsLocationsEndpointsOperationsService) Wait(name string) *Project // 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 *ProjectsLocationsEndpointsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsEndpointsOperationsWaitCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -48853,7 +50578,7 @@ func (c *ProjectsLocationsEndpointsOperationsWaitCall) Timeout(timeout string) * // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsWaitCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -48861,21 +50586,21 @@ func (c *ProjectsLocationsEndpointsOperationsWaitCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsWaitCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -48898,14 +50623,14 @@ func (c *ProjectsLocationsEndpointsOperationsWaitCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.operations.wait" call. +// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.wait" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // 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 *ProjectsLocationsEndpointsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -48937,9 +50662,9 @@ func (c *ProjectsLocationsEndpointsOperationsWaitCall) Do(opts ...googleapi.Call return ret, nil // { // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.operations.wait", + // "id": "aiplatform.projects.locations.extensions.deployments.operations.wait", // "parameterOrder": [ // "name" // ], @@ -48947,7 +50672,7 @@ func (c *ProjectsLocationsEndpointsOperationsWaitCall) Do(opts ...googleapi.Call // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -48969,9 +50694,9 @@ func (c *ProjectsLocationsEndpointsOperationsWaitCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.extensionControllers.operations.cancel": +// method id "aiplatform.projects.locations.extensions.operations.cancel": -type ProjectsLocationsExtensionControllersOperationsCancelCall struct { +type ProjectsLocationsExtensionsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -48991,8 +50716,8 @@ type ProjectsLocationsExtensionControllersOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsExtensionControllersOperationsService) Cancel(name string) *ProjectsLocationsExtensionControllersOperationsCancelCall { - c := &ProjectsLocationsExtensionControllersOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionsOperationsService) Cancel(name string) *ProjectsLocationsExtensionsOperationsCancelCall { + c := &ProjectsLocationsExtensionsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -49000,7 +50725,7 @@ func (r *ProjectsLocationsExtensionControllersOperationsService) Cancel(name str // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsCancelCall { +func (c *ProjectsLocationsExtensionsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -49008,21 +50733,21 @@ func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Fields(s ... // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsCancelCall { +func (c *ProjectsLocationsExtensionsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -49045,14 +50770,14 @@ func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) doRequest(al return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensionControllers.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.extensions.operations.cancel" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExtensionControllersOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsExtensionsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49084,9 +50809,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Do(opts ...g return ret, nil // { // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}:cancel", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensionControllers.operations.cancel", + // "id": "aiplatform.projects.locations.extensions.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -49094,7 +50819,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Do(opts ...g // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -49110,9 +50835,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Do(opts ...g } -// method id "aiplatform.projects.locations.extensionControllers.operations.delete": +// method id "aiplatform.projects.locations.extensions.operations.delete": -type ProjectsLocationsExtensionControllersOperationsDeleteCall struct { +type ProjectsLocationsExtensionsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -49126,8 +50851,8 @@ type ProjectsLocationsExtensionControllersOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsExtensionControllersOperationsService) Delete(name string) *ProjectsLocationsExtensionControllersOperationsDeleteCall { - c := &ProjectsLocationsExtensionControllersOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionsOperationsService) Delete(name string) *ProjectsLocationsExtensionsOperationsDeleteCall { + c := &ProjectsLocationsExtensionsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -49135,7 +50860,7 @@ func (r *ProjectsLocationsExtensionControllersOperationsService) Delete(name str // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsDeleteCall { +func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -49143,21 +50868,21 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Fields(s ... // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsDeleteCall { +func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -49180,14 +50905,14 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) doRequest(al return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensionControllers.operations.delete" call. +// Do executes the "aiplatform.projects.locations.extensions.operations.delete" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExtensionControllersOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49219,9 +50944,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Do(opts ...g return ret, nil // { // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.extensionControllers.operations.delete", + // "id": "aiplatform.projects.locations.extensions.operations.delete", // "parameterOrder": [ // "name" // ], @@ -49229,7 +50954,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Do(opts ...g // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -49245,9 +50970,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Do(opts ...g } -// method id "aiplatform.projects.locations.extensionControllers.operations.get": +// method id "aiplatform.projects.locations.extensions.operations.get": -type ProjectsLocationsExtensionControllersOperationsGetCall struct { +type ProjectsLocationsExtensionsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -49261,8 +50986,8 @@ type ProjectsLocationsExtensionControllersOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsExtensionControllersOperationsService) Get(name string) *ProjectsLocationsExtensionControllersOperationsGetCall { - c := &ProjectsLocationsExtensionControllersOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionsOperationsService) Get(name string) *ProjectsLocationsExtensionsOperationsGetCall { + c := &ProjectsLocationsExtensionsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -49270,7 +50995,7 @@ func (r *ProjectsLocationsExtensionControllersOperationsService) Get(name string // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsGetCall { +func (c *ProjectsLocationsExtensionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -49280,7 +51005,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Fields(s ...goo // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionControllersOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionControllersOperationsGetCall { +func (c *ProjectsLocationsExtensionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -49288,21 +51013,21 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) IfNoneMatch(ent // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsGetCall { +func (c *ProjectsLocationsExtensionsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionControllersOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -49328,14 +51053,14 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) doRequest(alt s return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensionControllers.operations.get" call. +// Do executes the "aiplatform.projects.locations.extensions.operations.get" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // 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 *ProjectsLocationsExtensionControllersOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExtensionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49367,9 +51092,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Do(opts ...goog return ret, nil // { // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensionControllers.operations.get", + // "id": "aiplatform.projects.locations.extensions.operations.get", // "parameterOrder": [ // "name" // ], @@ -49377,7 +51102,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Do(opts ...goog // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -49393,9 +51118,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.extensionControllers.operations.list": +// method id "aiplatform.projects.locations.extensions.operations.list": -type ProjectsLocationsExtensionControllersOperationsListCall struct { +type ProjectsLocationsExtensionsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -49409,29 +51134,29 @@ type ProjectsLocationsExtensionControllersOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsExtensionControllersOperationsService) List(name string) *ProjectsLocationsExtensionControllersOperationsListCall { - c := &ProjectsLocationsExtensionControllersOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionsOperationsService) List(name string) *ProjectsLocationsExtensionsOperationsListCall { + c := &ProjectsLocationsExtensionsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionControllersOperationsListCall { +func (c *ProjectsLocationsExtensionsOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionControllersOperationsListCall { +func (c *ProjectsLocationsExtensionsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionControllersOperationsListCall { +func (c *ProjectsLocationsExtensionsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -49439,7 +51164,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) PageToken(page // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsListCall { +func (c *ProjectsLocationsExtensionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -49449,7 +51174,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) Fields(s ...go // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionControllersOperationsListCall { +func (c *ProjectsLocationsExtensionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -49457,21 +51182,21 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) IfNoneMatch(en // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsListCall { +func (c *ProjectsLocationsExtensionsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionControllersOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -49497,7 +51222,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensionControllers.operations.list" call. +// Do executes the "aiplatform.projects.locations.extensions.operations.list" call. // Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either @@ -49505,7 +51230,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) doRequest(alt // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsExtensionsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49537,9 +51262,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) Do(opts ...goo return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensionControllers.operations.list", + // "id": "aiplatform.projects.locations.extensions.operations.list", // "parameterOrder": [ // "name" // ], @@ -49552,7 +51277,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) Do(opts ...goo // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+$", // "required": true, // "type": "string" // }, @@ -49582,7 +51307,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) Do(opts ...goo // 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 *ProjectsLocationsExtensionControllersOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsExtensionsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -49600,9 +51325,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) Pages(ctx cont } } -// method id "aiplatform.projects.locations.extensionControllers.operations.wait": +// method id "aiplatform.projects.locations.extensions.operations.wait": -type ProjectsLocationsExtensionControllersOperationsWaitCall struct { +type ProjectsLocationsExtensionsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -49622,8 +51347,8 @@ type ProjectsLocationsExtensionControllersOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsExtensionControllersOperationsService) Wait(name string) *ProjectsLocationsExtensionControllersOperationsWaitCall { - c := &ProjectsLocationsExtensionControllersOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionsOperationsService) Wait(name string) *ProjectsLocationsExtensionsOperationsWaitCall { + c := &ProjectsLocationsExtensionsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -49632,7 +51357,7 @@ func (r *ProjectsLocationsExtensionControllersOperationsService) Wait(name strin // 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 *ProjectsLocationsExtensionControllersOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionControllersOperationsWaitCall { +func (c *ProjectsLocationsExtensionsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -49640,7 +51365,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Timeout(timeou // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsWaitCall { +func (c *ProjectsLocationsExtensionsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -49648,21 +51373,21 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Fields(s ...go // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsWaitCall { +func (c *ProjectsLocationsExtensionsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -49685,14 +51410,14 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensionControllers.operations.wait" call. +// Do executes the "aiplatform.projects.locations.extensions.operations.wait" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // 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 *ProjectsLocationsExtensionControllersOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExtensionsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49724,9 +51449,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Do(opts ...goo return ret, nil // { // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensionControllers.operations.wait", + // "id": "aiplatform.projects.locations.extensions.operations.wait", // "parameterOrder": [ // "name" // ], @@ -49734,7 +51459,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Do(opts ...goo // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -49756,150 +51481,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Do(opts ...goo } -// method id "aiplatform.projects.locations.extensions.deployments.operations.cancel": +// method id "aiplatform.projects.locations.featureGroups.features.operations.delete": -type ProjectsLocationsExtensionsDeploymentsOperationsCancelCall 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 *ProjectsLocationsExtensionsDeploymentsOperationsService) Cancel(name string) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsCancelCall{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 information. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.cancel" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) 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 - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensions.deployments.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:cancel", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.extensions.deployments.operations.delete": - -type ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall struct { +type ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -49913,8 +51497,8 @@ type ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Delete(name string) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Delete(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { + c := &ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -49922,7 +51506,7 @@ func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Delete(name st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -49930,21 +51514,21 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Fields(s .. // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -49967,14 +51551,14 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.delete" call. +// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.delete" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50006,9 +51590,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Do(opts ... return ret, nil // { // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.extensions.deployments.operations.delete", + // "id": "aiplatform.projects.locations.featureGroups.features.operations.delete", // "parameterOrder": [ // "name" // ], @@ -50016,7 +51600,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Do(opts ... // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -50032,9 +51616,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Do(opts ... } -// method id "aiplatform.projects.locations.extensions.deployments.operations.get": +// method id "aiplatform.projects.locations.featureGroups.features.operations.get": -type ProjectsLocationsExtensionsDeploymentsOperationsGetCall struct { +type ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -50048,8 +51632,8 @@ type ProjectsLocationsExtensionsDeploymentsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Get(name string) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Get(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { + c := &ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -50057,7 +51641,7 @@ func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Get(name strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -50067,7 +51651,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Fields(s ...go // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -50075,21 +51659,21 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) IfNoneMatch(en // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -50115,14 +51699,14 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.get" call. +// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.get" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // 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 *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50154,9 +51738,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...goo return ret, nil // { // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensions.deployments.operations.get", + // "id": "aiplatform.projects.locations.featureGroups.features.operations.get", // "parameterOrder": [ // "name" // ], @@ -50164,7 +51748,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...goo // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -50180,9 +51764,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...goo } -// method id "aiplatform.projects.locations.extensions.deployments.operations.list": +// method id "aiplatform.projects.locations.featureGroups.features.operations.list": -type ProjectsLocationsExtensionsDeploymentsOperationsListCall struct { +type ProjectsLocationsFeatureGroupsFeaturesOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -50196,29 +51780,29 @@ type ProjectsLocationsExtensionsDeploymentsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) List(name string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) List(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { + c := &ProjectsLocationsFeatureGroupsFeaturesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -50226,7 +51810,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageToken(pag // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -50236,7 +51820,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Fields(s ...g // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -50244,21 +51828,21 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) IfNoneMatch(e // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -50284,7 +51868,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.list" call. +// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.list" call. // Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either @@ -50292,7 +51876,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) doRequest(alt // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50324,9 +51908,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...go return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensions.deployments.operations.list", + // "id": "aiplatform.projects.locations.featureGroups.features.operations.list", // "parameterOrder": [ // "name" // ], @@ -50339,7 +51923,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...go // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", // "required": true, // "type": "string" // }, @@ -50369,7 +51953,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...go // 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 *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -50387,9 +51971,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Pages(ctx con } } -// method id "aiplatform.projects.locations.extensions.deployments.operations.wait": +// method id "aiplatform.projects.locations.featureGroups.features.operations.wait": -type ProjectsLocationsExtensionsDeploymentsOperationsWaitCall struct { +type ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -50409,8 +51993,8 @@ type ProjectsLocationsExtensionsDeploymentsOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Wait(name string) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Wait(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { + c := &ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -50419,7 +52003,7 @@ func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Wait(name stri // 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 *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -50427,7 +52011,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Timeout(timeo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -50435,21 +52019,21 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -50472,14 +52056,14 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.wait" call. +// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.wait" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // 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 *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50511,9 +52095,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...go return ret, nil // { // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensions.deployments.operations.wait", + // "id": "aiplatform.projects.locations.featureGroups.features.operations.wait", // "parameterOrder": [ // "name" // ], @@ -50521,7 +52105,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...go // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -50543,150 +52127,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...go } -// method id "aiplatform.projects.locations.extensions.operations.cancel": +// method id "aiplatform.projects.locations.featureGroups.operations.delete": -type ProjectsLocationsExtensionsOperationsCancelCall 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 *ProjectsLocationsExtensionsOperationsService) Cancel(name string) *ProjectsLocationsExtensionsOperationsCancelCall { - c := &ProjectsLocationsExtensionsOperationsCancelCall{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 information. -func (c *ProjectsLocationsExtensionsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsCancelCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsExtensionsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsCancelCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsOperationsCancelCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsExtensionsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+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, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.extensions.operations.cancel" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExtensionsOperationsCancelCall) 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 - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensions.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:cancel", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.extensions.operations.delete": - -type ProjectsLocationsExtensionsOperationsDeleteCall struct { +type ProjectsLocationsFeatureGroupsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -50700,8 +52143,8 @@ type ProjectsLocationsExtensionsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsExtensionsOperationsService) Delete(name string) *ProjectsLocationsExtensionsOperationsDeleteCall { - c := &ProjectsLocationsExtensionsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsOperationsService) Delete(name string) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { + c := &ProjectsLocationsFeatureGroupsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -50709,7 +52152,7 @@ func (r *ProjectsLocationsExtensionsOperationsService) Delete(name string) *Proj // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -50717,21 +52160,21 @@ func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Fields(s ...googleapi. // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -50754,14 +52197,14 @@ func (c *ProjectsLocationsExtensionsOperationsDeleteCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.operations.delete" call. +// Do executes the "aiplatform.projects.locations.featureGroups.operations.delete" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. 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 *ProjectsLocationsExtensionsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50793,9 +52236,9 @@ func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Do(opts ...googleapi.C return ret, nil // { // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.extensions.operations.delete", + // "id": "aiplatform.projects.locations.featureGroups.operations.delete", // "parameterOrder": [ // "name" // ], @@ -50803,7 +52246,7 @@ func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Do(opts ...googleapi.C // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -50819,9 +52262,9 @@ func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.extensions.operations.get": +// method id "aiplatform.projects.locations.featureGroups.operations.get": -type ProjectsLocationsExtensionsOperationsGetCall struct { +type ProjectsLocationsFeatureGroupsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -50835,8 +52278,8 @@ type ProjectsLocationsExtensionsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsExtensionsOperationsService) Get(name string) *ProjectsLocationsExtensionsOperationsGetCall { - c := &ProjectsLocationsExtensionsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsOperationsService) Get(name string) *ProjectsLocationsFeatureGroupsOperationsGetCall { + c := &ProjectsLocationsFeatureGroupsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -50844,7 +52287,7 @@ func (r *ProjectsLocationsExtensionsOperationsService) Get(name string) *Project // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -50854,7 +52297,7 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) Fields(s ...googleapi.Fie // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -50862,21 +52305,21 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) IfNoneMatch(entityTag str // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -50902,14 +52345,14 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.operations.get" call. +// Do executes the "aiplatform.projects.locations.featureGroups.operations.get" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // 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 *ProjectsLocationsExtensionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50941,9 +52384,9 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) Do(opts ...googleapi.Call return ret, nil // { // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensions.operations.get", + // "id": "aiplatform.projects.locations.featureGroups.operations.get", // "parameterOrder": [ // "name" // ], @@ -50951,7 +52394,7 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) Do(opts ...googleapi.Call // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -50967,9 +52410,9 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.extensions.operations.list": +// method id "aiplatform.projects.locations.featureGroups.operations.list": -type ProjectsLocationsExtensionsOperationsListCall struct { +type ProjectsLocationsFeatureGroupsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -50983,29 +52426,29 @@ type ProjectsLocationsExtensionsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsExtensionsOperationsService) List(name string) *ProjectsLocationsExtensionsOperationsListCall { - c := &ProjectsLocationsExtensionsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsOperationsService) List(name string) *ProjectsLocationsFeatureGroupsOperationsListCall { + c := &ProjectsLocationsFeatureGroupsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsExtensionsOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsExtensionsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsExtensionsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -51013,7 +52456,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) PageToken(pageToken stri // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -51023,7 +52466,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) Fields(s ...googleapi.Fi // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -51031,21 +52474,21 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) IfNoneMatch(entityTag st // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -51071,7 +52514,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.operations.list" call. +// Do executes the "aiplatform.projects.locations.featureGroups.operations.list" call. // Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either @@ -51079,7 +52522,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) doRequest(alt string) (* // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -51111,9 +52554,9 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) Do(opts ...googleapi.Cal return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensions.operations.list", + // "id": "aiplatform.projects.locations.featureGroups.operations.list", // "parameterOrder": [ // "name" // ], @@ -51126,7 +52569,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) Do(opts ...googleapi.Cal // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", // "required": true, // "type": "string" // }, @@ -51156,7 +52599,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) Do(opts ...googleapi.Cal // 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 *ProjectsLocationsExtensionsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -51174,9 +52617,9 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) Pages(ctx context.Contex } } -// method id "aiplatform.projects.locations.extensions.operations.wait": +// method id "aiplatform.projects.locations.featureGroups.operations.wait": -type ProjectsLocationsExtensionsOperationsWaitCall struct { +type ProjectsLocationsFeatureGroupsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -51196,8 +52639,8 @@ type ProjectsLocationsExtensionsOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsExtensionsOperationsService) Wait(name string) *ProjectsLocationsExtensionsOperationsWaitCall { - c := &ProjectsLocationsExtensionsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsOperationsService) Wait(name string) *ProjectsLocationsFeatureGroupsOperationsWaitCall { + c := &ProjectsLocationsFeatureGroupsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -51206,7 +52649,7 @@ func (r *ProjectsLocationsExtensionsOperationsService) Wait(name string) *Projec // 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 *ProjectsLocationsExtensionsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionsOperationsWaitCall { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureGroupsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -51214,7 +52657,7 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) Timeout(timeout string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsWaitCall { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -51222,21 +52665,21 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) Fields(s ...googleapi.Fi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsWaitCall { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -51259,14 +52702,14 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.operations.wait" call. +// Do executes the "aiplatform.projects.locations.featureGroups.operations.wait" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // 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 *ProjectsLocationsExtensionsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -51298,9 +52741,9 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) Do(opts ...googleapi.Cal return ret, nil // { // "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": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensions.operations.wait", + // "id": "aiplatform.projects.locations.featureGroups.operations.wait", // "parameterOrder": [ // "name" // ], @@ -51308,7 +52751,7 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) Do(opts ...googleapi.Cal // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index b2c122cdb03..835bd8c0ed1 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -1095,7 +1095,7 @@ } } }, - "revision": "20230731", + "revision": "20230807", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { @@ -2216,7 +2216,7 @@ "type": "object" }, "CrossProfilePolicies": { - "description": "Cross-profile policies applied on the device.", + "description": "Controls the data from the work profile that can be accessed from the personal profile and vice versa. A nonComplianceDetail with MANAGEMENT_MODE is reported if the device does not have a work profile.", "id": "CrossProfilePolicies", "properties": { "crossProfileCopyPaste": { @@ -4006,7 +4006,7 @@ "description": "Properties of the object. Contains field @type with type URL.", "type": "any" }, - "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.", + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.", "type": "object" } }, diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index d334406ea9e..b6881cb738c 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -1843,7 +1843,10 @@ func (s *ContentProviderEndpoint) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CrossProfilePolicies: Cross-profile policies applied on the device. +// CrossProfilePolicies: Controls the data from the work profile that +// can be accessed from the personal profile and vice versa. A +// nonComplianceDetail with MANAGEMENT_MODE is reported if the device +// does not have a work profile. type CrossProfilePolicies struct { // CrossProfileCopyPaste: Whether text copied from one profile (personal // or work) can be pasted in the other profile. @@ -4547,8 +4550,8 @@ type Operation struct { // operations/{unique_id}. Name string `json:"name,omitempty"` - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as Delete, the + // Response: The normal, successful response of the operation. If the + // original method returns no data on success, such as Delete, the // response is google.protobuf.Empty. If the original method is standard // Get/Create/Update, the response should be the resource. For other // methods, the response should have the type XxxResponse, where Xxx is diff --git a/api-list.json b/api-list.json index cb81708f72a..e766b5b273c 100644 --- a/api-list.json +++ b/api-list.json @@ -3066,36 +3066,6 @@ "documentationLink": "https://developers.google.com/games/", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "gameservices:v1beta", - "name": "gameservices", - "version": "v1beta", - "title": "Game Services API", - "description": "Deploy and manage infrastructure for global multiplayer gaming experiences.", - "discoveryRestUrl": "https://gameservices.googleapis.com/$discovery/rest?version=v1beta", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://cloud.google.com/solutions/gaming/", - "preferred": false - }, - { - "kind": "discovery#directoryItem", - "id": "gameservices:v1", - "name": "gameservices", - "version": "v1", - "title": "Game Services API", - "description": "Deploy and manage infrastructure for global multiplayer gaming experiences.", - "discoveryRestUrl": "https://gameservices.googleapis.com/$discovery/rest?version=v1", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://cloud.google.com/solutions/gaming/", - "preferred": true - }, { "kind": "discovery#directoryItem", "id": "gkebackup:v1", @@ -3634,6 +3604,21 @@ "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://cloud.google.com/natural-language/", + "preferred": false + }, + { + "kind": "discovery#directoryItem", + "id": "language:v2", + "name": "language", + "version": "v2", + "title": "Cloud Natural Language API", + "description": "Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers.", + "discoveryRestUrl": "https://language.googleapis.com/$discovery/rest?version=v2", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/natural-language/", "preferred": true }, { diff --git a/assuredworkloads/v1/assuredworkloads-api.json b/assuredworkloads/v1/assuredworkloads-api.json index 8420a41e47c..a04dd09747b 100644 --- a/assuredworkloads/v1/assuredworkloads-api.json +++ b/assuredworkloads/v1/assuredworkloads-api.json @@ -519,7 +519,7 @@ } } }, - "revision": "20230804", + "revision": "20230811", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest": { @@ -692,7 +692,7 @@ "type": "object" }, "GoogleCloudAssuredworkloadsV1Violation": { - "description": "Workload monitoring Violation. Next Id: 27", + "description": "Workload monitoring Violation. Next Id: 28", "id": "GoogleCloudAssuredworkloadsV1Violation", "properties": { "acknowledged": { diff --git a/assuredworkloads/v1/assuredworkloads-gen.go b/assuredworkloads/v1/assuredworkloads-gen.go index 775b08f918e..974efafa134 100644 --- a/assuredworkloads/v1/assuredworkloads-gen.go +++ b/assuredworkloads/v1/assuredworkloads-gen.go @@ -472,7 +472,7 @@ type GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse struct { } // GoogleCloudAssuredworkloadsV1Violation: Workload monitoring -// Violation. Next Id: 27 +// Violation. Next Id: 28 type GoogleCloudAssuredworkloadsV1Violation struct { // Acknowledged: A boolean that indicates if the violation is // acknowledged diff --git a/assuredworkloads/v1beta1/assuredworkloads-api.json b/assuredworkloads/v1beta1/assuredworkloads-api.json index cfb1d146431..929a1fe03bc 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-api.json +++ b/assuredworkloads/v1beta1/assuredworkloads-api.json @@ -181,6 +181,58 @@ }, "workloads": { "methods": { + "analyzeWorkloadMove": { + "description": "Analyzes a hypothetical move of a source resource to a target(destination) folder-based workload to surface compliance risks.", + "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}:analyzeWorkloadMove", + "httpMethod": "GET", + "id": "assuredworkloads.organizations.locations.workloads.analyzeWorkloadMove", + "parameterOrder": [ + "target" + ], + "parameters": { + "analyzeChildAssets": { + "description": "Optional. Indicates if all child assets of the source resource should also be analyzed in addition to the source.", + "location": "query", + "type": "boolean" + }, + "pageSize": { + "description": "Optional. Page size. If a value is not specified, the default value of 10 is used.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The page token from the previous response. It needs to be passed in the second and following requests.", + "location": "query", + "type": "string" + }, + "project": { + "description": "The source type is a project. Specify the project's relative resource name, formatted as either a project number or a project ID: \"projects/{PROJECT_NUMBER}\" or \"projects/{PROJECT_ID}\" For example: \"projects/951040570662\" when specifying a project number, or \"projects/my-project-123\" when specifying a project ID.", + "location": "query", + "type": "string" + }, + "source": { + "deprecated": true, + "description": "The source type is a project-based workload. Specify the workloads's relative resource name, formatted as: \"organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}\" For example: \"organizations/123/locations/us-east1/workloads/assured-workload-1\" This option is now deprecated.", + "location": "query", + "type": "string" + }, + "target": { + "description": "Required. The resource ID of the folder-based destination workload. This workload is where the source resource will hypothetically be moved to. Specify the workload's relative resource name, formatted as: \"organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}\" For example: \"organizations/123/locations/us-east1/workloads/assured-workload-2\"", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+target}:analyzeWorkloadMove", + "response": { + "$ref": "GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Creates Assured Workload.", "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/workloads", @@ -514,80 +566,9 @@ } } } - }, - "projects": { - "resources": { - "organizations": { - "resources": { - "locations": { - "resources": { - "workloads": { - "methods": { - "analyzeWorkloadMove": { - "description": "Analyzes a hypothetical move of a source resource to a target(destination) folder-based workload to surface compliance risks.", - "flatPath": "v1beta1/projects/{projectsId}/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}:analyzeWorkloadMove", - "httpMethod": "GET", - "id": "assuredworkloads.projects.organizations.locations.workloads.analyzeWorkloadMove", - "parameterOrder": [ - "project", - "target" - ], - "parameters": { - "analyzeChildAssets": { - "description": "Optional. Indicates if all child assets of the source resource should also be analyzed in addition to the source.", - "location": "query", - "type": "boolean" - }, - "pageSize": { - "description": "Optional. Page size. If a value is not specified, the default value of 10 is used.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. The page token from the previous response. It needs to be passed in the second and following requests.", - "location": "query", - "type": "string" - }, - "project": { - "description": "The source type is a project. Specify the project's relative resource name, formatted as either a project number or a project ID: \"projects/{PROJECT_NUMBER}\" or \"projects/{PROJECT_ID}\" For example: \"projects/951040570662\" when specifying a project number, or \"projects/my-project-123\" when specifying a project ID.", - "location": "path", - "pattern": "^projects/[^/]+$", - "required": true, - "type": "string" - }, - "source": { - "deprecated": true, - "description": "The source type is a project-based workload. Specify the workloads's relative resource name, formatted as: \"organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}\" For example: \"organizations/123/locations/us-east1/workloads/assured-workload-1\" This option is now deprecated.", - "location": "query", - "type": "string" - }, - "target": { - "description": "Required. The resource ID of the folder-based destination workload. This workload is where the source resource will hypothetically be moved to. Specify the workload's relative resource name, formatted as: \"organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}\" For example: \"organizations/123/locations/us-east1/workloads/assured-workload-2\"", - "location": "path", - "pattern": "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+project}/{+target}:analyzeWorkloadMove", - "response": { - "$ref": "GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - } - } - } - } } }, - "revision": "20230804", + "revision": "20230811", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest": { @@ -866,7 +847,7 @@ "type": "object" }, "GoogleCloudAssuredworkloadsV1beta1Violation": { - "description": "Workload monitoring Violation. Next Id: 27", + "description": "Workload monitoring Violation. Next Id: 28", "id": "GoogleCloudAssuredworkloadsV1beta1Violation", "properties": { "acknowledged": { diff --git a/assuredworkloads/v1beta1/assuredworkloads-gen.go b/assuredworkloads/v1beta1/assuredworkloads-gen.go index acf1845661b..84eca94cd5e 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-gen.go +++ b/assuredworkloads/v1beta1/assuredworkloads-gen.go @@ -120,7 +120,6 @@ func New(client *http.Client) (*Service, error) { } s := &Service{client: client, BasePath: basePath} s.Organizations = NewOrganizationsService(s) - s.Projects = NewProjectsService(s) return s, nil } @@ -130,8 +129,6 @@ type Service struct { UserAgent string // optional additional User-Agent fragment Organizations *OrganizationsService - - Projects *ProjectsService } func (s *Service) userAgent() string { @@ -198,51 +195,6 @@ type OrganizationsLocationsWorkloadsViolationsService struct { s *Service } -func NewProjectsService(s *Service) *ProjectsService { - rs := &ProjectsService{s: s} - rs.Organizations = NewProjectsOrganizationsService(s) - return rs -} - -type ProjectsService struct { - s *Service - - Organizations *ProjectsOrganizationsService -} - -func NewProjectsOrganizationsService(s *Service) *ProjectsOrganizationsService { - rs := &ProjectsOrganizationsService{s: s} - rs.Locations = NewProjectsOrganizationsLocationsService(s) - return rs -} - -type ProjectsOrganizationsService struct { - s *Service - - Locations *ProjectsOrganizationsLocationsService -} - -func NewProjectsOrganizationsLocationsService(s *Service) *ProjectsOrganizationsLocationsService { - rs := &ProjectsOrganizationsLocationsService{s: s} - rs.Workloads = NewProjectsOrganizationsLocationsWorkloadsService(s) - return rs -} - -type ProjectsOrganizationsLocationsService struct { - s *Service - - Workloads *ProjectsOrganizationsLocationsWorkloadsService -} - -func NewProjectsOrganizationsLocationsWorkloadsService(s *Service) *ProjectsOrganizationsLocationsWorkloadsService { - rs := &ProjectsOrganizationsLocationsWorkloadsService{s: s} - return rs -} - -type ProjectsOrganizationsLocationsWorkloadsService struct { - s *Service -} - // GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest: // Request for acknowledging the violation Next Id: 5 type GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest struct { @@ -691,7 +643,7 @@ type GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesResponse struct { } // GoogleCloudAssuredworkloadsV1beta1Violation: Workload monitoring -// Violation. Next Id: 27 +// Violation. Next Id: 28 type GoogleCloudAssuredworkloadsV1beta1Violation struct { // Acknowledged: A boolean that indicates if the violation is // acknowledged @@ -2188,6 +2140,257 @@ func (c *OrganizationsLocationsOperationsListCall) Pages(ctx context.Context, f } } +// method id "assuredworkloads.organizations.locations.workloads.analyzeWorkloadMove": + +type OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall struct { + s *Service + target string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// AnalyzeWorkloadMove: Analyzes a hypothetical move of a source +// resource to a target(destination) folder-based workload to surface +// compliance risks. +// +// - target: The resource ID of the folder-based destination workload. +// This workload is where the source resource will hypothetically be +// moved to. Specify the workload's relative resource name, formatted +// as: +// "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{ +// WORKLOAD_ID}" For example: +// "organizations/123/locations/us-east1/workloads/assured-workload-2". +func (r *OrganizationsLocationsWorkloadsService) AnalyzeWorkloadMove(target string) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { + c := &OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.target = target + return c +} + +// AnalyzeChildAssets sets the optional parameter "analyzeChildAssets": +// Indicates if all child assets of the source resource should also be +// analyzed in addition to the source. +func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) AnalyzeChildAssets(analyzeChildAssets bool) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { + c.urlParams_.Set("analyzeChildAssets", fmt.Sprint(analyzeChildAssets)) + return c +} + +// PageSize sets the optional parameter "pageSize": Page size. If a +// value is not specified, the default value of 10 is used. +func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) PageSize(pageSize int64) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The page token +// from the previous response. It needs to be passed in the second and +// following requests. +func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) PageToken(pageToken string) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Project sets the optional parameter "project": The source type is a +// project. Specify the project's relative resource name, formatted as +// either a project number or a project ID: "projects/{PROJECT_NUMBER}" +// or "projects/{PROJECT_ID}" For example: "projects/951040570662" when +// specifying a project number, or "projects/my-project-123" when +// specifying a project ID. +func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Project(project string) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { + c.urlParams_.Set("project", project) + return c +} + +// Source sets the optional parameter "source": The source type is a +// project-based workload. Specify the workloads's relative resource +// name, formatted as: +// "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WO +// RKLOAD_ID}" For example: +// "organizations/123/locations/us-east1/workloads/assured-workload-1" +// This option is now deprecated. +func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Source(source string) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { + c.urlParams_.Set("source", source) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) IfNoneMatch(entityTag string) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+target}:analyzeWorkloadMove") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "target": c.target, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "assuredworkloads.organizations.locations.workloads.analyzeWorkloadMove" call. +// Exactly one of +// *GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse.ServerR +// esponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse, 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 := &GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Analyzes a hypothetical move of a source resource to a target(destination) folder-based workload to surface compliance risks.", + // "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}:analyzeWorkloadMove", + // "httpMethod": "GET", + // "id": "assuredworkloads.organizations.locations.workloads.analyzeWorkloadMove", + // "parameterOrder": [ + // "target" + // ], + // "parameters": { + // "analyzeChildAssets": { + // "description": "Optional. Indicates if all child assets of the source resource should also be analyzed in addition to the source.", + // "location": "query", + // "type": "boolean" + // }, + // "pageSize": { + // "description": "Optional. Page size. If a value is not specified, the default value of 10 is used.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. The page token from the previous response. It needs to be passed in the second and following requests.", + // "location": "query", + // "type": "string" + // }, + // "project": { + // "description": "The source type is a project. Specify the project's relative resource name, formatted as either a project number or a project ID: \"projects/{PROJECT_NUMBER}\" or \"projects/{PROJECT_ID}\" For example: \"projects/951040570662\" when specifying a project number, or \"projects/my-project-123\" when specifying a project ID.", + // "location": "query", + // "type": "string" + // }, + // "source": { + // "deprecated": true, + // "description": "The source type is a project-based workload. Specify the workloads's relative resource name, formatted as: \"organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}\" For example: \"organizations/123/locations/us-east1/workloads/assured-workload-1\" This option is now deprecated.", + // "location": "query", + // "type": "string" + // }, + // "target": { + // "description": "Required. The resource ID of the folder-based destination workload. This workload is where the source resource will hypothetically be moved to. Specify the workload's relative resource name, formatted as: \"organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}\" For example: \"organizations/123/locations/us-east1/workloads/assured-workload-2\"", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+target}:analyzeWorkloadMove", + // "response": { + // "$ref": "GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// 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 *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Pages(ctx context.Context, f func(*GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + 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) + } +} + // method id "assuredworkloads.organizations.locations.workloads.create": type OrganizationsLocationsWorkloadsCreateCall struct { @@ -3853,254 +4056,3 @@ func (c *OrganizationsLocationsWorkloadsViolationsListCall) Pages(ctx context.Co c.PageToken(x.NextPageToken) } } - -// method id "assuredworkloads.projects.organizations.locations.workloads.analyzeWorkloadMove": - -type ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall struct { - s *Service - project string - target string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// AnalyzeWorkloadMove: Analyzes a hypothetical move of a source -// resource to a target(destination) folder-based workload to surface -// compliance risks. -// -// - project: The source type is a project. Specify the project's -// relative resource name, formatted as either a project number or a -// project ID: "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}" -// For example: "projects/951040570662" when specifying a project -// number, or "projects/my-project-123" when specifying a project ID. -// - target: The resource ID of the folder-based destination workload. -// This workload is where the source resource will hypothetically be -// moved to. Specify the workload's relative resource name, formatted -// as: -// "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{ -// WORKLOAD_ID}" For example: -// "organizations/123/locations/us-east1/workloads/assured-workload-2". -func (r *ProjectsOrganizationsLocationsWorkloadsService) AnalyzeWorkloadMove(project string, target string) *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { - c := &ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.target = target - return c -} - -// AnalyzeChildAssets sets the optional parameter "analyzeChildAssets": -// Indicates if all child assets of the source resource should also be -// analyzed in addition to the source. -func (c *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) AnalyzeChildAssets(analyzeChildAssets bool) *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { - c.urlParams_.Set("analyzeChildAssets", fmt.Sprint(analyzeChildAssets)) - return c -} - -// PageSize sets the optional parameter "pageSize": Page size. If a -// value is not specified, the default value of 10 is used. -func (c *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) PageSize(pageSize int64) *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The page token -// from the previous response. It needs to be passed in the second and -// following requests. -func (c *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) PageToken(pageToken string) *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Source sets the optional parameter "source": The source type is a -// project-based workload. Specify the workloads's relative resource -// name, formatted as: -// "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WO -// RKLOAD_ID}" For example: -// "organizations/123/locations/us-east1/workloads/assured-workload-1" -// This option is now deprecated. -func (c *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Source(source string) *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { - c.urlParams_.Set("source", source) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Fields(s ...googleapi.Field) *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) IfNoneMatch(entityTag string) *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Context(ctx context.Context) *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+project}/{+target}:analyzeWorkloadMove") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "target": c.target, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "assuredworkloads.projects.organizations.locations.workloads.analyzeWorkloadMove" call. -// Exactly one of -// *GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse.ServerR -// esponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse, 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 := &GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Analyzes a hypothetical move of a source resource to a target(destination) folder-based workload to surface compliance risks.", - // "flatPath": "v1beta1/projects/{projectsId}/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}:analyzeWorkloadMove", - // "httpMethod": "GET", - // "id": "assuredworkloads.projects.organizations.locations.workloads.analyzeWorkloadMove", - // "parameterOrder": [ - // "project", - // "target" - // ], - // "parameters": { - // "analyzeChildAssets": { - // "description": "Optional. Indicates if all child assets of the source resource should also be analyzed in addition to the source.", - // "location": "query", - // "type": "boolean" - // }, - // "pageSize": { - // "description": "Optional. Page size. If a value is not specified, the default value of 10 is used.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. The page token from the previous response. It needs to be passed in the second and following requests.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "The source type is a project. Specify the project's relative resource name, formatted as either a project number or a project ID: \"projects/{PROJECT_NUMBER}\" or \"projects/{PROJECT_ID}\" For example: \"projects/951040570662\" when specifying a project number, or \"projects/my-project-123\" when specifying a project ID.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "source": { - // "deprecated": true, - // "description": "The source type is a project-based workload. Specify the workloads's relative resource name, formatted as: \"organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}\" For example: \"organizations/123/locations/us-east1/workloads/assured-workload-1\" This option is now deprecated.", - // "location": "query", - // "type": "string" - // }, - // "target": { - // "description": "Required. The resource ID of the folder-based destination workload. This workload is where the source resource will hypothetically be moved to. Specify the workload's relative resource name, formatted as: \"organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}\" For example: \"organizations/123/locations/us-east1/workloads/assured-workload-2\"", - // "location": "path", - // "pattern": "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+project}/{+target}:analyzeWorkloadMove", - // "response": { - // "$ref": "GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// 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 *ProjectsOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Pages(ctx context.Context, f func(*GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - 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) - } -} diff --git a/batch/v1/batch-api.json b/batch/v1/batch-api.json index 088b2b54cff..e6ae9365d3a 100644 --- a/batch/v1/batch-api.json +++ b/batch/v1/batch-api.json @@ -561,7 +561,7 @@ } } }, - "revision": "20230804", + "revision": "20230807", "rootUrl": "https://batch.googleapis.com/", "schemas": { "Accelerator": { @@ -1095,7 +1095,7 @@ "type": "string" }, "sizeGb": { - "description": "Disk size in GB. For persistent disk, this field is ignored if `data_source` is `image` or `snapshot`. For local SSD, size_gb should be a multiple of 375GB, otherwise, the final size will be the next greater multiple of 375 GB. For boot disk, Batch will calculate the boot disk size based on source image and task requirements if you do not speicify the size. If both this field and the boot_disk_mib field in task spec's compute_resource are defined, Batch will only honor this field.", + "description": "Disk size in GB. **Non-Boot Disk**: If the `type` specifies a persistent disk, this field is ignored if `data_source` is set as `image` or `snapshot`. If the `type` specifies a local SSD, this field should be a multiple of 375 GB, otherwise, the final size will be the next greater multiple of 375 GB. **Boot Disk**: Batch will calculate the boot disk size based on source image and task requirements if you do not speicify the size. If both this field and the `boot_disk_mib` field in task spec's `compute_resource` are defined, Batch will only honor this field. Also, this field should be no smaller than the source disk's size when the `data_source` is set as `snapshot` or `image`. For example, if you set an image as the `data_source` field and the image's default disk size 30 GB, you can only use this field to make the disk larger or equal to 30 GB.", "format": "int64", "type": "string" }, diff --git a/batch/v1/batch-gen.go b/batch/v1/batch-gen.go index cf1da5f88d3..b3491a47063 100644 --- a/batch/v1/batch-gen.go +++ b/batch/v1/batch-gen.go @@ -1076,14 +1076,19 @@ type Disk struct { // `batch-hpc-centos`: use Batch HPC CentOS images. Image string `json:"image,omitempty"` - // SizeGb: Disk size in GB. For persistent disk, this field is ignored - // if `data_source` is `image` or `snapshot`. For local SSD, size_gb - // should be a multiple of 375GB, otherwise, the final size will be the - // next greater multiple of 375 GB. For boot disk, Batch will calculate - // the boot disk size based on source image and task requirements if you - // do not speicify the size. If both this field and the boot_disk_mib - // field in task spec's compute_resource are defined, Batch will only - // honor this field. + // SizeGb: Disk size in GB. **Non-Boot Disk**: If the `type` specifies a + // persistent disk, this field is ignored if `data_source` is set as + // `image` or `snapshot`. If the `type` specifies a local SSD, this + // field should be a multiple of 375 GB, otherwise, the final size will + // be the next greater multiple of 375 GB. **Boot Disk**: Batch will + // calculate the boot disk size based on source image and task + // requirements if you do not speicify the size. If both this field and + // the `boot_disk_mib` field in task spec's `compute_resource` are + // defined, Batch will only honor this field. Also, this field should be + // no smaller than the source disk's size when the `data_source` is set + // as `snapshot` or `image`. For example, if you set an image as the + // `data_source` field and the image's default disk size 30 GB, you can + // only use this field to make the disk larger or equal to 30 GB. SizeGb int64 `json:"sizeGb,omitempty,string"` // Snapshot: Name of a snapshot used as the data source. Snapshot is not diff --git a/cloudbilling/v1beta/cloudbilling-api.json b/cloudbilling/v1beta/cloudbilling-api.json index 485f89ba1de..9fc0271f178 100644 --- a/cloudbilling/v1beta/cloudbilling-api.json +++ b/cloudbilling/v1beta/cloudbilling-api.json @@ -664,7 +664,7 @@ } } }, - "revision": "20230724", + "revision": "20230811", "rootUrl": "https://cloudbilling.googleapis.com/", "schemas": { "CacheFillRegions": { @@ -684,14 +684,14 @@ "CACHE_FILL_DESTINATION_REGION_OTHERS" ], "enumDescriptions": [ - "Not specified.", - "Asia Pacific.", + "Not specified", + "Asia Pacific", "Europe", - "North America.", - "Oceania.", - "South America.", - "China.", - "Others." + "North America", + "Oceania", + "South America", + "China", + "Others" ], "type": "string" }, @@ -706,12 +706,12 @@ "CACHE_FILL_SOURCE_REGION_SOUTH_AMERICA" ], "enumDescriptions": [ - "Not specified.", - "Asia Pacific.", + "Not specified", + "Asia Pacific", "Europe", - "North America.", - "Oceania.", - "South America." + "North America", + "Oceania", + "South America" ], "type": "string" } @@ -829,16 +829,16 @@ "type": "array" }, "interconnectType": { - "description": "Vlan attachment type.", + "description": "VLAN attachment type", "enum": [ "INTERCONNECT_TYPE_UNSPECIFIED", "INTERCONNECT_TYPE_DEDICATED", "INTERCONNECT_TYPE_PARTNER" ], "enumDescriptions": [ - "Unspecified.", - "Type is dedicated.", - "Type is partner." + "Unspecified", + "Type is dedicated", + "Type is partner" ], "type": "string" }, @@ -850,9 +850,9 @@ "LINK_TYPE_ETHERNET_100G_LR" ], "enumDescriptions": [ - "Unspecified.", - "Link type is 10 gbps.", - "Link type is 100 gbps." + "Unspecified", + "Link type is 10 Gbps.", + "Link type is 100 Gbps." ], "type": "string" }, @@ -2558,7 +2558,7 @@ "type": "object" }, "VlanAttachment": { - "description": "VLAN attachment for cloud interconnect.", + "description": "VLAN attachment for Cloud Interconnect.", "id": "VlanAttachment", "properties": { "bandwidth": { @@ -2579,7 +2579,7 @@ "BANDWIDTH_BPS_50G" ], "enumDescriptions": [ - "Unspecified.", + "Unspecified", "50 Mbit/s", "100 Mbit/s", "200 Mbit/s", diff --git a/cloudbilling/v1beta/cloudbilling-gen.go b/cloudbilling/v1beta/cloudbilling-gen.go index c3b573230d8..bc91eb0408a 100644 --- a/cloudbilling/v1beta/cloudbilling-gen.go +++ b/cloudbilling/v1beta/cloudbilling-gen.go @@ -284,25 +284,25 @@ type CacheFillRegions struct { // DestinationRegion: The destination region for cache fill. // // Possible values: - // "CACHE_FILL_DESTINATION_REGION_UNSPECIFIED" - Not specified. - // "CACHE_FILL_DESTINATION_REGION_ASIA_PACIFIC" - Asia Pacific. + // "CACHE_FILL_DESTINATION_REGION_UNSPECIFIED" - Not specified + // "CACHE_FILL_DESTINATION_REGION_ASIA_PACIFIC" - Asia Pacific // "CACHE_FILL_DESTINATION_REGION_EUROPE" - Europe - // "CACHE_FILL_DESTINATION_REGION_NORTH_AMERICA" - North America. - // "CACHE_FILL_DESTINATION_REGION_OCEANIA" - Oceania. - // "CACHE_FILL_DESTINATION_REGION_SOUTH_AMERICA" - South America. - // "CACHE_FILL_DESTINATION_REGION_CHINA" - China. - // "CACHE_FILL_DESTINATION_REGION_OTHERS" - Others. + // "CACHE_FILL_DESTINATION_REGION_NORTH_AMERICA" - North America + // "CACHE_FILL_DESTINATION_REGION_OCEANIA" - Oceania + // "CACHE_FILL_DESTINATION_REGION_SOUTH_AMERICA" - South America + // "CACHE_FILL_DESTINATION_REGION_CHINA" - China + // "CACHE_FILL_DESTINATION_REGION_OTHERS" - Others DestinationRegion string `json:"destinationRegion,omitempty"` // SourceRegion: The source region for cache fill. // // Possible values: - // "CACHE_FILL_SOURCE_REGION_UNSPECIFIED" - Not specified. - // "CACHE_FILL_REGION_ASIA_PACIFIC" - Asia Pacific. + // "CACHE_FILL_SOURCE_REGION_UNSPECIFIED" - Not specified + // "CACHE_FILL_REGION_ASIA_PACIFIC" - Asia Pacific // "CACHE_FILL_SOURCE_REGION_EUROPE" - Europe - // "CACHE_FILL_SOURCE_REGION_NORTH_AMERICA" - North America. - // "CACHE_FILL_SOURCE_REGION_OCEANIA" - Oceania. - // "CACHE_FILL_SOURCE_REGION_SOUTH_AMERICA" - South America. + // "CACHE_FILL_SOURCE_REGION_NORTH_AMERICA" - North America + // "CACHE_FILL_SOURCE_REGION_OCEANIA" - Oceania + // "CACHE_FILL_SOURCE_REGION_SOUTH_AMERICA" - South America SourceRegion string `json:"sourceRegion,omitempty"` // ForceSendFields is a list of field names (e.g. "DestinationRegion") @@ -479,20 +479,20 @@ type CloudInterconnectWorkload struct { // InterconnectAttachments: VLAN attachment used for interconnect. InterconnectAttachments []*VlanAttachment `json:"interconnectAttachments,omitempty"` - // InterconnectType: Vlan attachment type. + // InterconnectType: VLAN attachment type // // Possible values: - // "INTERCONNECT_TYPE_UNSPECIFIED" - Unspecified. - // "INTERCONNECT_TYPE_DEDICATED" - Type is dedicated. - // "INTERCONNECT_TYPE_PARTNER" - Type is partner. + // "INTERCONNECT_TYPE_UNSPECIFIED" - Unspecified + // "INTERCONNECT_TYPE_DEDICATED" - Type is dedicated + // "INTERCONNECT_TYPE_PARTNER" - Type is partner InterconnectType string `json:"interconnectType,omitempty"` // LinkType: Interconnect circuit link type. // // Possible values: - // "LINK_TYPE_UNSPECIFIED" - Unspecified. - // "LINK_TYPE_ETHERNET_10G_LR" - Link type is 10 gbps. - // "LINK_TYPE_ETHERNET_100G_LR" - Link type is 100 gbps. + // "LINK_TYPE_UNSPECIFIED" - Unspecified + // "LINK_TYPE_ETHERNET_10G_LR" - Link type is 10 Gbps. + // "LINK_TYPE_ETHERNET_100G_LR" - Link type is 100 Gbps. LinkType string `json:"linkType,omitempty"` // ProvisionedLinkCount: Interconnect usage. This is specified as a @@ -3910,7 +3910,7 @@ func (s *UsageRateTimelineEntry) UnmarshalJSON(data []byte) error { return nil } -// VlanAttachment: VLAN attachment for cloud interconnect. +// VlanAttachment: VLAN attachment for Cloud Interconnect. type VlanAttachment struct { // Bandwidth: Capacities in the pricing table // (https://cloud.google.com/vpc/network-pricing#interconnect-pricing) @@ -3918,7 +3918,7 @@ type VlanAttachment struct { // 1/2/5/10/20/50-Gbps. // // Possible values: - // "BANDWIDTH_UNSPECIFIED" - Unspecified. + // "BANDWIDTH_UNSPECIFIED" - Unspecified // "BANDWIDTH_BPS_50M" - 50 Mbit/s // "BANDWIDTH_BPS_100M" - 100 Mbit/s // "BANDWIDTH_BPS_200M" - 200 Mbit/s diff --git a/cloudbuild/v1/cloudbuild-api.json b/cloudbuild/v1/cloudbuild-api.json index a7ba4252602..f162d1be432 100644 --- a/cloudbuild/v1/cloudbuild-api.json +++ b/cloudbuild/v1/cloudbuild-api.json @@ -2319,7 +2319,7 @@ } } }, - "revision": "20230801", + "revision": "20230811", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -3462,6 +3462,25 @@ "properties": {}, "type": "object" }, + "ConnectedRepository": { + "description": "Location of the source in a 2nd-gen Google Cloud Build repository resource.", + "id": "ConnectedRepository", + "properties": { + "dir": { + "description": "Directory, relative to the source root, in which to run the build.", + "type": "string" + }, + "repository": { + "description": "Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`.", + "type": "string" + }, + "revision": { + "description": "The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.", + "type": "string" + } + }, + "type": "object" + }, "CreateBitbucketServerConfigOperationMetadata": { "description": "Metadata for `CreateBitbucketServerConfig` operation.", "id": "CreateBitbucketServerConfigOperationMetadata", @@ -4915,6 +4934,10 @@ "description": "Location of the source in a supported storage service.", "id": "Source", "properties": { + "connectedRepository": { + "$ref": "ConnectedRepository", + "description": "Optional. If provided, get the source from this 2nd-gen Google Cloud Build repository resource." + }, "gitSource": { "$ref": "GitSource", "description": "If provided, get the source from this Git repository." diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index 594d728e4b5..159176f9e1c 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -1934,6 +1934,44 @@ func (s *CancelBuildRequest) MarshalJSON() ([]byte, error) { type CancelOperationRequest struct { } +// ConnectedRepository: Location of the source in a 2nd-gen Google Cloud +// Build repository resource. +type ConnectedRepository struct { + // Dir: Directory, relative to the source root, in which to run the + // build. + Dir string `json:"dir,omitempty"` + + // Repository: Required. Name of the Google Cloud Build repository, + // formatted as `projects/*/locations/*/connections/*/repositories/*`. + Repository string `json:"repository,omitempty"` + + // Revision: The revision to fetch from the Git repository such as a + // branch, a tag, a commit SHA, or any Git ref. + Revision string `json:"revision,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dir") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dir") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ConnectedRepository) MarshalJSON() ([]byte, error) { + type NoMethod ConnectedRepository + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CreateBitbucketServerConfigOperationMetadata: Metadata for // `CreateBitbucketServerConfig` operation. type CreateBitbucketServerConfigOperationMetadata struct { @@ -4472,6 +4510,10 @@ func (s *ServiceDirectoryConfig) MarshalJSON() ([]byte, error) { // Source: Location of the source in a supported storage service. type Source struct { + // ConnectedRepository: Optional. If provided, get the source from this + // 2nd-gen Google Cloud Build repository resource. + ConnectedRepository *ConnectedRepository `json:"connectedRepository,omitempty"` + // GitSource: If provided, get the source from this Git repository. GitSource *GitSource `json:"gitSource,omitempty"` @@ -4488,20 +4530,21 @@ type Source struct { // (https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). StorageSourceManifest *StorageSourceManifest `json:"storageSourceManifest,omitempty"` - // ForceSendFields is a list of field names (e.g. "GitSource") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "ConnectedRepository") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GitSource") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ConnectedRepository") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } diff --git a/cloudsearch/v1/cloudsearch-api.json b/cloudsearch/v1/cloudsearch-api.json index f645f02815c..c18b9122de1 100644 --- a/cloudsearch/v1/cloudsearch-api.json +++ b/cloudsearch/v1/cloudsearch-api.json @@ -2096,7 +2096,7 @@ } } }, - "revision": "20230705", + "revision": "20230809", "rootUrl": "https://cloudsearch.googleapis.com/", "schemas": { "Action": { @@ -5992,7 +5992,7 @@ "description": "Properties of the object. Contains field @type with type URL.", "type": "any" }, - "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", "type": "object" } }, diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index 162138578f8..0dd91adead5 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -6588,8 +6588,8 @@ type Operation struct { // `operations/{unique_id}`. Name string `json:"name,omitempty"` - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the + // Response: The normal, successful response of the operation. If the + // original method returns no data on success, such as `Delete`, the // response is `google.protobuf.Empty`. If the original method is // standard `Get`/`Create`/`Update`, the response should be the // resource. For other methods, the response should have the type diff --git a/contentwarehouse/v1/contentwarehouse-api.json b/contentwarehouse/v1/contentwarehouse-api.json index 7894dd065c1..27a46c259fa 100644 --- a/contentwarehouse/v1/contentwarehouse-api.json +++ b/contentwarehouse/v1/contentwarehouse-api.json @@ -1156,7 +1156,7 @@ } } }, - "revision": "20230804", + "revision": "20230814", "rootUrl": "https://contentwarehouse.googleapis.com/", "schemas": { "AbuseiamAbuseType": { @@ -3723,7 +3723,9 @@ "DATA_STUDIO_GAIA_ONLY_AFFINITY", "TWENTYPERCENT_JOBPOSTINGS_AFFINITY", "ENGAGEMENTS_AFFINITY", - "TRUSTED_CONTACTS_FL_AFFINITY" + "TRUSTED_CONTACTS_FL_AFFINITY", + "CALENDAR_WEB_TEAM_MEMBERS_AFFINITY", + "CLOUDCONNECT_AFFINITY" ], "enumDeprecated": [ false, @@ -3987,6 +3989,8 @@ false, false, false, + false, + false, false ], "enumDescriptions": [ @@ -4251,6 +4255,8 @@ "", "", "", + "", + "", "" ], "type": "string" @@ -15521,6 +15527,7 @@ }, "gcmSettings": { "$ref": "AssistantApiSettingsGcmSettings", + "deprecated": true, "description": "Stores GCM info associated with a device. See go/quartz-design-doc for more info." }, "homeGraphData": { @@ -19633,7 +19640,7 @@ "type": "object" }, "AssistantGroundingRankerMediaGroundingProviderFeatures": { - "description": "Features to be passed from Media GP to HGR. Next ID: 16", + "description": "Features to be passed from Media GP to HGR. Next ID: 17", "id": "AssistantGroundingRankerMediaGroundingProviderFeatures", "properties": { "albumReleaseType": { @@ -19668,6 +19675,10 @@ ], "type": "string" }, + "entityMid": { + "description": "Mid of the media item. This is currently only used in manual rules.", + "type": "string" + }, "hasTypeSemanticEdge": { "description": "True if the argument's type was explicitly mentioned in the query.", "type": "boolean" @@ -21925,7 +21936,7 @@ "type": "object" }, "AssistantPrefulfillmentRankerPrefulfillmentSignals": { - "description": "Signals to be used by the Prefulfillment Ranker. Derived from the ParsingSignals and GroundingSignals carried by the FunctionCall. LINT.IfChange Next ID: 61", + "description": "Signals to be used by the Prefulfillment Ranker. Derived from the ParsingSignals and GroundingSignals carried by the FunctionCall. LINT.IfChange Next ID: 62", "id": "AssistantPrefulfillmentRankerPrefulfillmentSignals", "properties": { "bindingSetAuis": { @@ -22030,6 +22041,30 @@ "format": "float", "type": "number" }, + "intentType": { + "description": "intent_type differentiates between intents that share the top level intent name. For eg: for TV_FALLBACK_SEARCH_INTENT, the top level intent name must be \"Find_media\" and the media_object argument within it must be of type \"Media_unspecified\".", + "enum": [ + "UNKNOWN_INTENT_TYPE", + "PLAY_MEDIA_MUSIC", + "PLAY_MEDIA_PODCAST", + "FIND_MEDIA_TV_FALLBACK", + "PLAY_MEDIA_VIDEO", + "ALARMS_AND_TIMERS", + "HEALTH_AND_FITNESS", + "PLAY_MEDIA_RADIO" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, "isFeasible": { "description": "Feasibility of fulfilling the binding set. Eg: For PlayMedia, this is equivalent to playability. More details: go/hgr-feasibility-feature.", "type": "boolean" @@ -22265,7 +22300,6 @@ "description": "SmartHome intent metadata used for the SmartHome business-rules twiddler." }, "subIntentType": { - "description": "sub_intent_type differentiates between intents that share the top level intent name. For eg: for TV_FALLBACK_SEARCH_INTENT, the top level intent name must be \"Find_media\" and the media_object argument within it must be of type \"Media_unspecified\".", "enum": [ "SUB_INTENT_TYPE_UNKNOWN", "SUB_INTENT_TYPE_TV_FALLBACK_SEARCH_INTENT", @@ -22815,7 +22849,7 @@ "type": "object" }, "AssistantVerticalsHomeautomationProtoHomeAutomation_MetaData": { - "description": "Next ID: 44", + "description": "Next ID: 45", "id": "AssistantVerticalsHomeautomationProtoHomeAutomation_MetaData", "properties": { "actionProjectConfigs": { @@ -22858,7 +22892,7 @@ "type": "string" }, "gcmExecutionAddress": { - "description": "GCM address for cloud execution across google cloud messaging rather than 3p cloud; for future use.", + "description": "GCM address for cloud execution across google cloud messaging rather than 3p cloud.", "type": "string" }, "groupIds": { @@ -22991,6 +23025,20 @@ "description": "Which of the values was the original, user-provided name -- or our disambiguated, cleaned-up version of it. This is what we use in TTS when we need to identify an object that wasn't just spoken uniquely by the user -- in disambiguation dialogue, or in response to a collective interrogative (e.g. \"what lights are on in the kitchen?\")", "type": "string" }, + "reportStateStatus": { + "description": "Whether device report state is out of sync with Query response.", + "enum": [ + "RSS_UNSPECIFIED", + "RSS_IN_SYNC", + "RSS_OUT_OF_SYNC" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + }, "roleInformation": { "$ref": "AssistantVerticalsHomeautomationProtoRoleInformation", "description": "User's role information for this device. This will be used in Home Automation server to decide if user has authority to fulfill its request." @@ -23892,21 +23940,6 @@ }, "type": "object" }, - "ClassifierPornAggregatedUrlPornScores": { - "description": "Per-URL porn scores for the URLs associated with the corresponding image.", - "id": "ClassifierPornAggregatedUrlPornScores", - "properties": { - "averageUrlPornScore": { - "format": "float", - "type": "number" - }, - "urlCount": { - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, "ClassifierPornClassifierData": { "description": "Next ID: 6", "id": "ClassifierPornClassifierData", @@ -34980,7 +35013,7 @@ "", "", "", - "Note: Next available value is 0x1270F." + "Note: Next available value is 0x1271." ], "type": "string" }, @@ -41221,7 +41254,7 @@ "", "", "", - "Note: Next available value is 0x1270F." + "Note: Next available value is 0x1271." ], "type": "string" } @@ -44154,7 +44187,7 @@ "", "", "", - "Note: Next available value is 0x1270F." + "Note: Next available value is 0x1271." ], "type": "string" }, @@ -47380,7 +47413,7 @@ "", "", "", - "Note: Next available value is 0x1270F." + "Note: Next available value is 0x1271." ], "type": "string" } @@ -59601,7 +59634,7 @@ "type": "object" }, "HtmlrenderWebkitHeadlessProtoStyle": { - "description": "Next id: 54", + "description": "Next id: 54 Font and text decorations:", "id": "HtmlrenderWebkitHeadlessProtoStyle", "properties": { "backgroundAttachment": { @@ -59858,7 +59891,7 @@ "type": "string" }, "fontFamily": { - "description": "Font and text decorations:", + "description": "`font_family` is the `font-family` computed style, not necessarily the actual font. https://developer.mozilla.org/en-US/docs/Web/CSS/font-family. Note that it may contain multiple font families, not just one.", "type": "string" }, "fontSize": { @@ -65641,7 +65674,7 @@ "type": "object" }, "IndexingDocjoinerDataVersion": { - "description": "DataVersion tracks the version of data in CompositeDoc. The notion of \"data\" here is loose and people can define the name of their own. For example, a signal generated by Index Signals or an annotation generated by Goldmine (and other components) can all be considered as data here. Each field in this proto represents the human readable version string and the timestamp of one particular data. We choose to explicitly list out all of the data here for better understanding about which data are tracked. NOTE that human_readable_version is not intended for comparison, use timestamp_micros. In addition, we have an annotation about the field paths of each data. With proto reflection (using google3/net/proto2/util/public/field_path.h), downstream systems can take advantage of this annotation to automatically handle newly introduced data without modifying their code. Please also see the comment of FieldProjector above. There are also some fields in DataInfo that annotate who generates the data, the Index Signals or Goldmine annotator name. Next ID: 538", + "description": "DataVersion tracks the version of data in CompositeDoc. The notion of \"data\" here is loose and people can define the name of their own. For example, a signal generated by Index Signals or an annotation generated by Goldmine (and other components) can all be considered as data here. Each field in this proto represents the human readable version string and the timestamp of one particular data. We choose to explicitly list out all of the data here for better understanding about which data are tracked. NOTE that human_readable_version is not intended for comparison, use timestamp_micros. In addition, we have an annotation about the field paths of each data. With proto reflection (using google3/net/proto2/util/public/field_path.h), downstream systems can take advantage of this annotation to automatically handle newly introduced data without modifying their code. Please also see the comment of FieldProjector above. There are also some fields in DataInfo that annotate who generates the data, the Index Signals or Goldmine annotator name for the fields already onboarded or being onboarded to FDP. Fields without annotation of signal_names or goldmine_annotator_names are not onboarded. Next ID: 538", "id": "IndexingDocjoinerDataVersion", "properties": { "acceleratedShoppingSignal": { @@ -71832,7 +71865,7 @@ "type": "object" }, "KnowledgeAnswersIntentQueryFunctionCallSignals": { - "description": "Next ID: 36", + "description": "Next ID: 37", "id": "KnowledgeAnswersIntentQueryFunctionCallSignals", "properties": { "argumentComposingMid": { @@ -72028,6 +72061,10 @@ "$ref": "KnowledgeAnswersIntentQuerySignalComputationFallbackIntent" }, "type": "array" + }, + "usesPrefulfillmentRanker": { + "description": "Identifies whether this intent intends to be scored and pruned by the prefulfillment ranker after intent-generation.", + "type": "boolean" } }, "type": "object" @@ -72159,7 +72196,8 @@ "BROADCAST", "MESSAGE_CONTENT", "INLINE_INVENTORY", - "MEDIA_PLAYBACK" + "MEDIA_PLAYBACK", + "CONCEPT_ID" ], "enumDescriptions": [ "", @@ -72194,7 +72232,8 @@ "Broadcast feature identifier go/routines-broadcast-device-gp", "Message content identifier for send/reply message go/message-content-grounding", "go/aigp", - "Playback identifier for a media session. go/app-playback-device-gp" + "Playback identifier for a media session. go/app-playback-device-gp", + "Concept ID type. go/concept-mrf-integration" ], "type": "string" } @@ -89106,6 +89145,7 @@ "WAYMO_TRIAGE_TOOLING", "TWENTYPERCENT_JOBPOSTINGS", "ENGAGEMENTS", + "CLOUDCONNECT", "DEPRECATED_QUICKSTART_FLUME", "DUO_CLIENT", "ALBERT", @@ -89754,6 +89794,7 @@ false, false, false, + false, true, false, false, @@ -90402,6 +90443,7 @@ "Waymo Triage Tooling Team contact: heathrow-eng@google.com", "Twentypercent Jobpostings Team contact: 20p-wg@google.com", "Engagements Team contact: engagements-eng@google.com", + "Cloudconnect Team contact: rev-platforms@google.com", "", "Duo Client Team contact: duo-eng@google.com", "Project albert (go/albert-frontend) Team contact: albert-eng@google.com", @@ -94353,11 +94395,6 @@ "url": { "description": "url of the image", "type": "string" - }, - "urlPornScores": { - "$ref": "ClassifierPornAggregatedUrlPornScores", - "deprecated": true, - "description": "Information about the URL porn scores for image URLs associated with this image. IMPORTANT: This signal is not populated from June 2023. Refer to b/209748384 for more information." } }, "type": "object" @@ -98727,7 +98764,7 @@ "type": "object" }, "QualityNsrPQData": { - "description": "Next id: 17", + "description": "Next id: 18", "id": "QualityNsrPQData", "properties": { "chard": { @@ -98757,6 +98794,13 @@ "format": "float", "type": "number" }, + "keto": { + "description": "Keto score.", + "items": { + "$ref": "QualityNsrVersionedFloatSignal" + }, + "type": "array" + }, "linkIncoming": { "format": "float", "type": "number" @@ -100364,7 +100408,8 @@ "OFFLINE_RADISH_LIST", "OFFLINE_RADISH_TABLE", "OFFLINE_LEADING_TEXT", - "PEREGRINE" + "PEREGRINE", + "LLM_EXTRACTIVE" ], "enumDescriptions": [ "For historical reason, this `SNIPPET_TYPE_UNSPECIFIED` type is defined as value 15 instead of 0.", @@ -100383,7 +100428,8 @@ "", "", "", - "Candidates generated by SnippetFlow in SR." + "Candidates generated by SnippetFlow in SR.", + "As of Jul 2023, an experimental candidate that generated by a ML model." ], "type": "string" }, @@ -103578,18 +103624,18 @@ }, "type": "object" }, - "QualityTimebasedDateReliability": { + "QualityTimebasedDateUnreliability": { "description": "Unreliable dates signals per URL. go/unreliable-dates-dd", - "id": "QualityTimebasedDateReliability", + "id": "QualityTimebasedDateUnreliability", "properties": { "petacatScores": { "items": { - "$ref": "QualityTimebasedPetacatDateReliability" + "$ref": "QualityTimebasedPetacatDateUnreliability" }, "type": "array" }, "unreliableDatesScore": { - "description": "max(petacat.unreliable_dates_score)", + "description": "If scores are missing, the date is reliable by default. max(petacat.unreliable_dates_score)", "format": "float", "type": "number" }, @@ -103613,8 +103659,8 @@ "format": "int64", "type": "string" }, - "dateReliabilityInfo": { - "$ref": "QualityTimebasedDateReliability" + "dateUnreliabilityInfo": { + "$ref": "QualityTimebasedDateUnreliability" }, "source": { "description": "The source the signal comes from.", @@ -103825,9 +103871,9 @@ }, "type": "object" }, - "QualityTimebasedPetacatDateReliability": { - "description": "Unreliable dates signals per Domain+Petacat. go/unreliable-dates-dd", - "id": "QualityTimebasedPetacatDateReliability", + "QualityTimebasedPetacatDateUnreliability": { + "description": "Unreliable dates signals per Domain+Petacat. go/unreliable-dates-dd NOTE(tomwesolowski): As of now, we can safely keep up to 8 4-bytes fields in this proto due to Laelaps constraint of max. 50k bytes per single value. We keep all the petacats categories for a domain under the same key. The largest sites (Youtube, Wikipedia, Facebook) have up to 1.5k different petacat verticals. 1500 * 4 * 8 / 1024 bytes = 46.9k bytes", + "id": "QualityTimebasedPetacatDateUnreliability", "properties": { "contentageReliability": { "format": "float", @@ -105177,11 +105223,6 @@ "description": "A debug string for the category.", "type": "string" }, - "listiness": { - "description": "Listiness score of the category.", - "format": "float", - "type": "number" - }, "mid": { "description": "The mid of the entity representing the category.", "format": "uint64", @@ -105272,22 +105313,22 @@ "ANCHOR_NAME_CANDIDATE", "REFERENCE_PAGE_URL", "REFERENCE_PAGE_LINK", - "DEPRECATED_ENTITY_METADATA", "STRONG_IDENTIFIER", "REFERENCE_PAGE_URL_INLINK", "REFERENCE_PAGE_LINK_INLINK", "GEO_LINK", - "PRINCIPAL_NAME", - "NAME_BLACKLIST", - "ENTITY_CONTEXT_TOKENS", - "INJECTED_NAME_CANDIDATE", "VIDEO_TRANSCRIPT", "VIDEO_OCR", "IMAGE_OCR", "LENS", "VIDEO_DESCRIPTION", "ONLY_LOOKUP_METADATA", - "EMBEDDED_CONTENT" + "DEPRECATED_ENTITY_METADATA", + "DEPRECATED_PRINCIPAL_NAME", + "DEPRECATED_NAME_BLACKLIST", + "DEPRECATED_ENTITY_CONTEXT_TOKENS", + "DEPRECATED_INJECTED_NAME_CANDIDATE", + "DEPRECATED_EMBEDDED_CONTENT" ], "enumDeprecated": [ false, @@ -105318,7 +105359,6 @@ false, false, false, - true, false, false, false, @@ -105326,14 +105366,15 @@ false, false, false, - true, - false, - false, - false, false, false, false, - false + true, + true, + true, + true, + true, + true ], "enumDescriptions": [ "To be used to mark an invalid token type. This proto enum does not follow the good practices, which suggest that such a value should be with tag 0: go/protodosdonts#do-include-an-unspecified-value-in-an-enum. Because this is a legacy situation and it is not safe to just change the tags, the enum contains an invalid type at this tag and can be used to specify the default value wherever this is needed.", @@ -105364,22 +105405,22 @@ "Anchor texts to reference pages which are potential names of the entity: Tokenized potential reference page URLs of the entity. Token matching is none because lookups are external annotations only.", "", "URLs that are linked to the reference page of the entity. Token matching is none because lookups are external annotations only.", - "A special position that is used for lookup of entity metadata in name table.", "Tokenized potential strong id of the entity, like phone number, ISBN. Token matching is none because lookups are external annotations only.", "A special position used for lookup of inlinks to reference page urls.", "A special position used for lookup of inlink scores for reference page outlinks.", "", - "A name used in the name matching library for all types of matching. The type NAME_CANDIDATE is used for names that are only used for inexpensive types of matching.", - "Name blacklist for enriched entity.", - "Lyrics for song entities.", - "Injected name candidates are appended using this segment type.", "", "", "", "", "", "Entries which are created in order to instruct the fprint-loader to load metadata for the contained ngrams.", - "The embedded content in the document (e.g., within json scripts)." + "Unused.", + "", + "", + "", + "", + "" ], "type": "string" } @@ -105834,7 +105875,7 @@ "type": "object" }, "RepositoryWebrefConceptNameMetadata": { - "description": "Metadata proto to be stored in concept tables. Note: Name table only stores name_type_mask for better performance. Remember to change NameToConceptEntry if you add a field to this proto.", + "description": "Metadata proto to be stored in concept tables. Note: Name table only stores name_type_mask for better performance. Remember to change NameToConceptEntry if you add a field to this proto. Note: in the annotator output only URL and PHONE_NUMBER are populated.", "id": "RepositoryWebrefConceptNameMetadata", "properties": { "nameTypeMask": { @@ -106952,12 +106993,6 @@ "description": "Keeps a set of scores about an entity. Next available tag: 20.", "id": "RepositoryWebrefEntityScores", "properties": { - "allCapsProb": { - "deprecated": true, - "description": "Probability that any given name of this entity is fully capitalized.", - "format": "float", - "type": "number" - }, "alphaEntityIdf": { "description": "This field is only for debugging and link weight experiments. It stores the entity's idf from the alpha model. Alpha idfs are used for link weight computations and available during model omega building via enricher_current_entity_idf_for_link_direction.", "format": "float", @@ -106975,7 +107010,7 @@ }, "nameCapitalizationProb": { "deprecated": true, - "description": "The following fields are deprecated and should eventually be removed. They use data and rules that have not been refreshed for ~10y and KG has changed a lot in the meantime. ", + "description": "The following field is deprecated and should eventually be removed. It uses data and rules that have not been refreshed for ~10y and KG has changed a lot in the meantime. ", "format": "float", "type": "number" } @@ -107306,22 +107341,22 @@ "ANCHOR_NAME_CANDIDATE", "REFERENCE_PAGE_URL", "REFERENCE_PAGE_LINK", - "DEPRECATED_ENTITY_METADATA", "STRONG_IDENTIFIER", "REFERENCE_PAGE_URL_INLINK", "REFERENCE_PAGE_LINK_INLINK", "GEO_LINK", - "PRINCIPAL_NAME", - "NAME_BLACKLIST", - "ENTITY_CONTEXT_TOKENS", - "INJECTED_NAME_CANDIDATE", "VIDEO_TRANSCRIPT", "VIDEO_OCR", "IMAGE_OCR", "LENS", "VIDEO_DESCRIPTION", "ONLY_LOOKUP_METADATA", - "EMBEDDED_CONTENT" + "DEPRECATED_ENTITY_METADATA", + "DEPRECATED_PRINCIPAL_NAME", + "DEPRECATED_NAME_BLACKLIST", + "DEPRECATED_ENTITY_CONTEXT_TOKENS", + "DEPRECATED_INJECTED_NAME_CANDIDATE", + "DEPRECATED_EMBEDDED_CONTENT" ], "enumDeprecated": [ false, @@ -107352,22 +107387,22 @@ false, false, false, - true, - false, false, false, false, false, false, false, - true, - false, false, false, false, false, - false, - false + true, + true, + true, + true, + true, + true ], "enumDescriptions": [ "To be used to mark an invalid token type. This proto enum does not follow the good practices, which suggest that such a value should be with tag 0: go/protodosdonts#do-include-an-unspecified-value-in-an-enum. Because this is a legacy situation and it is not safe to just change the tags, the enum contains an invalid type at this tag and can be used to specify the default value wherever this is needed.", @@ -107398,22 +107433,22 @@ "Anchor texts to reference pages which are potential names of the entity: Tokenized potential reference page URLs of the entity. Token matching is none because lookups are external annotations only.", "", "URLs that are linked to the reference page of the entity. Token matching is none because lookups are external annotations only.", - "A special position that is used for lookup of entity metadata in name table.", "Tokenized potential strong id of the entity, like phone number, ISBN. Token matching is none because lookups are external annotations only.", "A special position used for lookup of inlinks to reference page urls.", "A special position used for lookup of inlink scores for reference page outlinks.", "", - "A name used in the name matching library for all types of matching. The type NAME_CANDIDATE is used for names that are only used for inexpensive types of matching.", - "Name blacklist for enriched entity.", - "Lyrics for song entities.", - "Injected name candidates are appended using this segment type.", "", "", "", "", "", "Entries which are created in order to instruct the fprint-loader to load metadata for the contained ngrams.", - "The embedded content in the document (e.g., within json scripts)." + "Unused.", + "", + "", + "", + "", + "" ], "type": "string" } @@ -107756,6 +107791,7 @@ "PLURAL", "FEMALE", "ASPECT", + "GEO_CONNECTOR", "TARGET_AUDIENCE", "TARGET_PURPOSE", "SETTING_BY_LOCATION", @@ -107811,6 +107847,7 @@ "A range which is lexically plural.", "A range expressing unequivocally a (semantic) female gender. This could be for expressions that are intrinsically female (\"aunt\") or the female expression of an entity that is lexically gendered (\"chairwoman\" as opposed to \"chairman\" or \"chairperson\").", "The range designates an aspect, that is, a modifier of some other range.", + "A range expressing proximity, location or movement to/from a location.", "Facets.", "", "", @@ -117664,7 +117701,8 @@ "OFFLINE_RADISH_LIST", "OFFLINE_RADISH_TABLE", "OFFLINE_LEADING_TEXT", - "PEREGRINE" + "PEREGRINE", + "LLM_EXTRACTIVE" ], "enumDescriptions": [ "For historical reason, this `SNIPPET_TYPE_UNSPECIFIED` type is defined as value 15 instead of 0.", @@ -117683,7 +117721,8 @@ "", "", "", - "Candidates generated by SnippetFlow in SR." + "Candidates generated by SnippetFlow in SR.", + "As of Jul 2023, an experimental candidate that generated by a ML model." ], "type": "string" } @@ -124570,6 +124609,7 @@ "FOP_ORDERING_RECOMMENDATION_OUTDATED_EVENT_LEVEL", "FOP_ORDERING_RECOMMENDATION_SAME_FOP_EVENT_LEVEL", "FOP_ORDERING_STORED_VALUE_EVENT_LEVEL", + "GEARHEAD_DUPLEX_COMPATIBLE_DIALER_ENABLED", "EVENT_LEVEL_TEST_CODE_LIMIT", "ENTERTAINMENT_CLUSTER_TRIGGERING_AT_SESSION_LEVEL", "BEST_SELLER_CART_TAG_AT_SESSION_LEVEL", @@ -124739,6 +124779,7 @@ "IN_APP_OFFER_BATTLESTAR_APP_MAGIC_RAMPAGE_AT_SESSION_LEVEL", "IN_APP_OFFER_BATTLESTAR_APP_LAST_SURVIVOR_AT_SESSION_LEVEL", "IN_APP_OFFER_BATTLESTAR_APP_SUMMONERS_WAR_AT_SESSION_LEVEL", + "IN_APP_OFFER_BATTLESTAR_APP_TOWER_OF_GOD_AT_SESSION_LEVEL", "IN_APP_OFFER_ELIGIBLE_AT_SESSION_LEVEL", "IN_APP_OFFER_ELIGIBLE_APP_1_AT_SESSION_LEVEL", "IN_APP_OFFER_ELIGIBLE_APP_2_AT_SESSION_LEVEL", @@ -124750,6 +124791,7 @@ "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_MAGIC_RAMPAGE_AT_SESSION_LEVEL", "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_LAST_SURVIVOR_AT_SESSION_LEVEL", "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_SUMMONERS_WAR_AT_SESSION_LEVEL", + "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_TOWER_OF_GOD_AT_SESSION_LEVEL", "IN_APP_OFFER_SAVED_AT_SESSION_LEVEL", "IN_APP_OFFER_SAVED_APP_1_AT_SESSION_LEVEL", "IN_APP_OFFER_SAVED_APP_2_AT_SESSION_LEVEL", @@ -125254,6 +125296,19 @@ "FCC_FIRST_PARTY_CATEGORICAL_SEARCH_OFFERS_SESSION_LEVEL", "MERCH_NOMADS_CN_EXP_CLUSTER_TARGETED_AT_SESSION_LEVEL", "MERCH_NOMADS_CN_PROD_CLUSTER_TARGETED_AT_SESSION_LEVEL", + "MULTI_COLUMN_HP_GH_FIRST_4_ROWS_SESSION_LEVEL", + "MULTI_COLUMN_HP_AH_FIRST_4_ROWS_SESSION_LEVEL", + "PENDING_CARD_CHALLENGE_TYPE_INSTRUMENT_3D_SECURE1_SESSION_LEVEL", + "PENDING_CARD_CHALLENGE_TYPE_INSTRUMENT_3D_SECURE2_SESSION_LEVEL", + "PENDING_CARD_CHALLENGE_TYPE_INSTRUMENT_CVN_SESSION_LEVEL", + "PENDING_CARD_CHALLENGE_TYPE_INSTRUMENT_PIN_SESSION_LEVEL", + "PENDING_CARD_CHALLENGE_TYPE_INSTRUMENT_REDIRECT_SESSION_LEVEL", + "PENDING_CARD_CHALLENGE_TYPE_OTHERS_SESSION_LEVEL", + "PLAY_SEARCH_SPAM_QUERY_LOW_QUALITY_APP_DEMOTION_SESSION_LEVEL", + "PURCHASE_ADD_FOP_OPTIONS_SCREEN_SESSION_LEVEL", + "PLAY_PASS_SUPERHERO_CLUSTER_APP_WITH_VIDEO", + "PLAY_PASS_SUPERHERO_CLUSTER_APP_WITH_PROMOTIONAL_DESCRIPTION", + "CART_ABANDONMENT_ITEM_RECOMMENDATION_SESSION_LEVEL", "SESSION_LEVEL_TEST_CODE_LIMIT", "CART_ABANDONMENT_USER_LEVEL", "IN_APP_PRODUCTS_IN_DETAILS_PAGE_USER_LEVEL", @@ -125322,6 +125377,7 @@ "IN_APP_OFFER_BATTLESTAR_APP_MAGIC_RAMPAGE_AT_USER_LEVEL", "IN_APP_OFFER_BATTLESTAR_APP_LAST_SURVIVOR_AT_USER_LEVEL", "IN_APP_OFFER_BATTLESTAR_APP_SUMMONERS_WAR_AT_USER_LEVEL", + "IN_APP_OFFER_BATTLESTAR_APP_TOWER_OF_GOD_AT_USER_LEVEL", "IN_APP_OFFER_ELIGIBLE_AT_USER_LEVEL", "IN_APP_OFFER_ELIGIBLE_APP_1_AT_USER_LEVEL", "IN_APP_OFFER_ELIGIBLE_APP_2_AT_USER_LEVEL", @@ -125333,6 +125389,7 @@ "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_MAGIC_RAMPAGE_AT_USER_LEVEL", "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_LAST_SURVIVOR_AT_USER_LEVEL", "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_SUMMONERS_WAR_AT_USER_LEVEL", + "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_TOWER_OF_GOD_AT_USER_LEVEL", "IN_APP_OFFER_SAVED_AT_USER_LEVEL", "IN_APP_OFFER_SAVED_APP_1_AT_USER_LEVEL", "IN_APP_OFFER_SAVED_APP_2_AT_USER_LEVEL", @@ -125442,6 +125499,7 @@ "HAS_LAST_28D_CART_ABANDONMENT_USER_LEVEL", "HAS_LAST_7D_CART_ABANDONMENT_USER_LEVEL", "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V2", + "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V3", "POST_SUCCESS_ADD_BACKUP_FLOW_USER_LEVEL", "SKIP_CHECK_MARK_SCREEN_WITH_BACKUP_FLOW_USER_LEVEL", "IS_ELIGIBLE_FOR_ONE_CLICK_BACKUP_FOP_USER_LEVEL", @@ -125548,6 +125606,10 @@ "FEATURED_PRODUCTS_LIVE_OPS_AT_USER_LEVEL", "FIRST_PARTY_OFFERS_REQUEST_TRIGGER_USER_LEVEL", "IS_ELIGIBLE_FOR_APP_TARGETED_REWARD_USER_LEVEL", + "IS_ELIGIBLE_FOR_APP_TARGETED_REWARD_ZYNGA_USER_LEVEL", + "IS_ELIGIBLE_FOR_APP_TARGETED_REWARD_SUPERCELL_USER_LEVEL", + "IS_ELIGIBLE_FOR_APP_TARGETED_REWARD_KING_USER_LEVEL", + "IS_ELIGIBLE_FOR_APP_TARGETED_REWARD_MINICLIP_USER_LEVEL", "GAME_HUB_DEVELOPER_VIDEO_AT_USER_LEVEL", "CART_ABANDONMENT_SUBSCRIPTION_BENEFITS_USER_LEVEL", "GAME_HUB_DEVELOPER_VIDEO_ELIGIBLE_AT_USER_LEVEL", @@ -125556,6 +125618,10 @@ "MERCH_NOMADS_CN_EXP_CLUSTER_TARGETED_AT_USER_LEVEL", "MERCH_NOMADS_CN_PROD_CLUSTER_TARGETED_AT_USER_LEVEL", "NOTIFICATION_GUM_FINE_TUNING_MODEL_USER_LEVEL", + "ELIGIBLE_FOR_COMICS_CLUSTER_AH_USER_LEVEL", + "REDEEM_SAVE_BUYER_SPEND_MODEL_USER_LEVEL", + "PURCHASE_ADD_FOP_OPTIONS_SCREEN_USER_LEVEL", + "CART_ABANDONMENT_ITEM_RECOMMENDATION_USER_LEVEL", "USER_LEVEL_TEST_CODE_LIMIT" ], "enumDeprecated": [ @@ -126062,6 +126128,9 @@ false, false, false, + false, + false, + false, true, false, false, @@ -126684,6 +126753,21 @@ false, false, false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, true, false, false, @@ -126707,6 +126791,7 @@ false, false, false, + false, true, false, false, @@ -126820,6 +126905,14 @@ false, false, false, + false, + false, + false, + false, + false, + false, + false, + false, false ], "enumDescriptions": [ @@ -127098,6 +127191,7 @@ "", "", "", + "Test code for sessions where a phone dialer that doesn't turn screen on during phone calls is enabled.", "", "", "", @@ -127285,6 +127379,8 @@ "", "", "", + "", + "", "see go/reordering-subnav-tabs", "see go/reordering-subnav-tabs", "", @@ -127763,7 +127859,7 @@ "Session level test code for users who chose to set a renewal reminder.", "Session-level test code for user-review highlights summary clicks.", "Session level test code for tagging o2 cards migration. Test code for tagging control arm, 50625421.", - "Test code for tagging treatment arm, 50632794.", + "Test code for tagging treatment arm, 50662743.", "Session-level test code corresponding to the self share bottom sheet appearing for Battlestar games.", "Session-level test code for replacing onboarding simple collection with FCP. This is the second pass at this experiment but the first that will be using testcodes. Experiment doc: http://shortn/_gaPqTWPfuI.", "Session-level test code for Supplemental TG Annotation for wear apps seeking or queries from wear.", @@ -127782,6 +127878,19 @@ "Session-level test code for 1P fcc categorical search offers.", "Session-level test code for Merch Nomads CN Exp Cluster targeting check.", "Session-level test code for Merch Nomads CN Prod Cluster targeting check.", + "Session-level test code for Multi-Column Apps Home experiments.", + "Session-level test code for Multi-Column Apps Home experiments.", + "Session-level test code for card tranction with pending user action.", + "", + "", + "", + "", + "", + "Session-level test code for Play search spam-query low quality app demotion experiments.", + "Session-level test code marking sessions where users see the add new fop option screen during purchase flow. This will be used for ranking of add fop options experiments.", + "Session-level test code for when an app is eligible to have its video and description displayed in the Play Pass superhero cluster.", + "", + "Session-level test code for SKU Recommendation in Cart Abandonment.", "", "Cart abandonment flow for purchase flow.", "User saw/would have seen the in app products section in App", @@ -127868,6 +127977,8 @@ "", "", "", + "", + "", "User saw/would have seen the subscription one time pass offer", "", "", @@ -127970,6 +128081,7 @@ "User level test code for users who have any purchase card abandon behavior in the last 28 day (controlled by LAST_28D_CART_ABANDONMENT_BACKEND), used for AH/GH monetization experiments.", "User level test code for users who have any purchase card abandon behavior in the last 7 day (controlled by LAST_7D_CART_ABANDONMENT_BACKEND), used for AH/GH monetization experiments.", "User level test code for link biometrics with impression cap and foped user setup.", + "User level test code for link biometrics with impression cap and foped user setup.", "User level test code for post success add backup flow.", "User level test code for skipping ckechmark screen with backup flow.", "User level test code for users who are eligible for one-click backup fop.", @@ -128076,6 +128188,10 @@ "User level test code for Featured Products LiveOps.", "User level test code for first party promotional offers.", "User level test code for those users that are eligible for a targerted reward for an app. Test code will be logged in PGS. More info: go/growth-boosters-ptdr", + "", + "", + "", + "", "User-level test code for Game Hub Developer Video cluster.", "User-level for showing subscription benefits in cart abandonment.", "User-level test code for Game Hub Developer Video cluster eligibility.", @@ -128084,6 +128200,10 @@ "User-level test code for Merch Nomads CN Exp Cluster targeting check.", "User-level test code for Merch Nomads CN Prod Cluster targeting check.", "User level test code for GUM fine tuning model study in Notification surface, tracking users who actually get different experience between control and treatment.", + "User-level test code for users eligible for the Comics cluster on AH.", + "User level test code for Redeem Save buyer offer study, tracking users who actually get different experience between control and treatment.", + "User-level test code marking users who have seen the add new fop option screen during purchase flow. This will be used for ranking of add fop options experiments.", + "User level test code for SKU Recommendation in Cart Abandonment.", "" ], "type": "string" diff --git a/contentwarehouse/v1/contentwarehouse-gen.go b/contentwarehouse/v1/contentwarehouse-gen.go index 2a818fbb10e..7119cc42f4d 100644 --- a/contentwarehouse/v1/contentwarehouse-gen.go +++ b/contentwarehouse/v1/contentwarehouse-gen.go @@ -3228,6 +3228,8 @@ type AppsPeopleOzExternalMergedpeopleapiAffinity struct { // "TWENTYPERCENT_JOBPOSTINGS_AFFINITY" // "ENGAGEMENTS_AFFINITY" // "TRUSTED_CONTACTS_FL_AFFINITY" + // "CALENDAR_WEB_TEAM_MEMBERS_AFFINITY" + // "CLOUDCONNECT_AFFINITY" AffinityType string `json:"affinityType,omitempty"` // ContainerId: The ID of the container @@ -23945,7 +23947,7 @@ func (s *AssistantGroundingRankerLaaFeaturesProvider) MarshalJSON() ([]byte, err } // AssistantGroundingRankerMediaGroundingProviderFeatures: Features to -// be passed from Media GP to HGR. Next ID: 16 +// be passed from Media GP to HGR. Next ID: 17 type AssistantGroundingRankerMediaGroundingProviderFeatures struct { // AlbumReleaseType: Release type for an album container. // @@ -23971,6 +23973,10 @@ type AssistantGroundingRankerMediaGroundingProviderFeatures struct { // item. AmbiguityClassifier string `json:"ambiguityClassifier,omitempty"` + // EntityMid: Mid of the media item. This is currently only used in + // manual rules. + EntityMid string `json:"entityMid,omitempty"` + // HasTypeSemanticEdge: True if the argument's type was explicitly // mentioned in the query. HasTypeSemanticEdge bool `json:"hasTypeSemanticEdge,omitempty"` @@ -26650,7 +26656,7 @@ func (s *AssistantPfrSmartHomeIntentMetadata) MarshalJSON() ([]byte, error) { // AssistantPrefulfillmentRankerPrefulfillmentSignals: Signals to be // used by the Prefulfillment Ranker. Derived from the ParsingSignals // and GroundingSignals carried by the FunctionCall. LINT.IfChange Next -// ID: 61 +// ID: 62 type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // BindingSetAuis: Assistant User Interaction Score for binding set. BindingSetAuis float64 `json:"bindingSetAuis,omitempty"` @@ -26748,6 +26754,22 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // IntentNamePauis: Intent level Pauis User Interaction Score. IntentNamePauis float64 `json:"intentNamePauis,omitempty"` + // IntentType: intent_type differentiates between intents that share the + // top level intent name. For eg: for TV_FALLBACK_SEARCH_INTENT, the top + // level intent name must be "Find_media" and the media_object argument + // within it must be of type "Media_unspecified". + // + // Possible values: + // "UNKNOWN_INTENT_TYPE" + // "PLAY_MEDIA_MUSIC" + // "PLAY_MEDIA_PODCAST" + // "FIND_MEDIA_TV_FALLBACK" + // "PLAY_MEDIA_VIDEO" + // "ALARMS_AND_TIMERS" + // "HEALTH_AND_FITNESS" + // "PLAY_MEDIA_RADIO" + IntentType string `json:"intentType,omitempty"` + // IsFeasible: Feasibility of fulfilling the binding set. Eg: For // PlayMedia, this is equivalent to playability. More details: // go/hgr-feasibility-feature. @@ -26960,12 +26982,6 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // SmartHome business-rules twiddler. SmarthomeIntentMetadata *AssistantPfrSmartHomeIntentMetadata `json:"smarthomeIntentMetadata,omitempty"` - // SubIntentType: sub_intent_type differentiates between intents that - // share the top level intent name. For eg: for - // TV_FALLBACK_SEARCH_INTENT, the top level intent name must be - // "Find_media" and the media_object argument within it must be of type - // "Media_unspecified". - // // Possible values: // "SUB_INTENT_TYPE_UNKNOWN" // "SUB_INTENT_TYPE_TV_FALLBACK_SEARCH_INTENT" - Find_media @@ -27925,7 +27941,7 @@ func (s *AssistantVerticalsHomeautomationProtoHomeAutomationDeviceItem) MarshalJ } // AssistantVerticalsHomeautomationProtoHomeAutomationMetaData: Next ID: -// 44 +// 45 type AssistantVerticalsHomeautomationProtoHomeAutomationMetaData struct { // ActionProjectConfigs: Custom actions that this item supports. ActionProjectConfigs []*AssistantVerticalsHomeautomationProtoActionProjectConfig `json:"actionProjectConfigs,omitempty"` @@ -27962,7 +27978,7 @@ type AssistantVerticalsHomeautomationProtoHomeAutomationMetaData struct { DeviceModelId string `json:"deviceModelId,omitempty"` // GcmExecutionAddress: GCM address for cloud execution across google - // cloud messaging rather than 3p cloud; for future use. + // cloud messaging rather than 3p cloud. GcmExecutionAddress string `json:"gcmExecutionAddress,omitempty"` // GroupIds: List of parent group IDs, if the device is added to one or @@ -28090,6 +28106,15 @@ type AssistantVerticalsHomeautomationProtoHomeAutomationMetaData struct { // kitchen?") PrimaryName string `json:"primaryName,omitempty"` + // ReportStateStatus: Whether device report state is out of sync with + // Query response. + // + // Possible values: + // "RSS_UNSPECIFIED" + // "RSS_IN_SYNC" + // "RSS_OUT_OF_SYNC" + ReportStateStatus string `json:"reportStateStatus,omitempty"` + // RoleInformation: User's role information for this device. This will // be used in Home Automation server to decide if user has authority to // fulfill its request. @@ -29479,51 +29504,6 @@ func (s *ChatBotPlatformFireballId) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ClassifierPornAggregatedUrlPornScores: Per-URL porn scores for the -// URLs associated with the corresponding image. -type ClassifierPornAggregatedUrlPornScores struct { - AverageUrlPornScore float64 `json:"averageUrlPornScore,omitempty"` - - UrlCount int64 `json:"urlCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AverageUrlPornScore") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AverageUrlPornScore") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *ClassifierPornAggregatedUrlPornScores) MarshalJSON() ([]byte, error) { - type NoMethod ClassifierPornAggregatedUrlPornScores - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ClassifierPornAggregatedUrlPornScores) UnmarshalJSON(data []byte) error { - type NoMethod ClassifierPornAggregatedUrlPornScores - var s1 struct { - AverageUrlPornScore gensupport.JSONFloat64 `json:"averageUrlPornScore"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.AverageUrlPornScore = float64(s1.AverageUrlPornScore) - return nil -} - // ClassifierPornClassifierData: Next ID: 6 type ClassifierPornClassifierData struct { Classification []*ClassifierPornClassifierDataClassification `json:"classification,omitempty"` @@ -41119,7 +41099,7 @@ type GeostoreDataSourceProto struct { // "PROVIDER_EZVOLT" // "PROVIDER_JOLT" // "PROVIDER_CHARGESMITH" - // "PROVIDER_PLUGO" - Note: Next available value is 0x1270F. + // "PROVIDER_PLUGO" - Note: Next available value is 0x1271. Provider string `json:"provider,omitempty"` // RawMetadata: For every key that is used in raw_data from this source, @@ -45693,7 +45673,7 @@ type GeostoreInternalSourceSummaryProto struct { // "PROVIDER_EZVOLT" // "PROVIDER_JOLT" // "PROVIDER_CHARGESMITH" - // "PROVIDER_PLUGO" - Note: Next available value is 0x1270F. + // "PROVIDER_PLUGO" - Note: Next available value is 0x1271. Provider string `json:"provider,omitempty"` // ForceSendFields is a list of field names (e.g. "Dataset") to @@ -47878,7 +47858,7 @@ type GeostoreOntologyRawGConceptInstanceProto struct { // "PROVIDER_EZVOLT" // "PROVIDER_JOLT" // "PROVIDER_CHARGESMITH" - // "PROVIDER_PLUGO" - Note: Next available value is 0x1270F. + // "PROVIDER_PLUGO" - Note: Next available value is 0x1271. Provider string `json:"provider,omitempty"` SourceDataset string `json:"sourceDataset,omitempty"` @@ -50422,7 +50402,7 @@ type GeostoreProvenanceProto struct { // "PROVIDER_EZVOLT" // "PROVIDER_JOLT" // "PROVIDER_CHARGESMITH" - // "PROVIDER_PLUGO" - Note: Next available value is 0x1270F. + // "PROVIDER_PLUGO" - Note: Next available value is 0x1271. Provider string `json:"provider,omitempty"` // ForceSendFields is a list of field names (e.g. "Dataset") to @@ -68245,7 +68225,8 @@ func (s *HtmlrenderWebkitHeadlessProtoScriptStackFrame) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// HtmlrenderWebkitHeadlessProtoStyle: Next id: 54 +// HtmlrenderWebkitHeadlessProtoStyle: Next id: 54 Font and text +// decorations: type HtmlrenderWebkitHeadlessProtoStyle struct { // Possible values: // "SCROLL" @@ -68376,7 +68357,10 @@ type HtmlrenderWebkitHeadlessProtoStyle struct { // "INLINE_BLOCK" Display string `json:"display,omitempty"` - // FontFamily: Font and text decorations: + // FontFamily: `font_family` is the `font-family` computed style, not + // necessarily the actual font. + // https://developer.mozilla.org/en-US/docs/Web/CSS/font-family. Note + // that it may contain multiple font families, not just one. FontFamily string `json:"fontFamily,omitempty"` FontSize int64 `json:"fontSize,omitempty"` @@ -75498,7 +75482,9 @@ func (s *IndexingDocjoinerCDocBuildInfo) MarshalJSON() ([]byte, error) { // introduced data without modifying their code. Please also see the // comment of FieldProjector above. There are also some fields in // DataInfo that annotate who generates the data, the Index Signals or -// Goldmine annotator name. Next ID: 538 +// Goldmine annotator name for the fields already onboarded or being +// onboarded to FDP. Fields without annotation of signal_names or +// goldmine_annotator_names are not onboarded. Next ID: 538 type IndexingDocjoinerDataVersion struct { AcceleratedShoppingSignal *IndexingDocjoinerDataVersionVersionInfo `json:"acceleratedShoppingSignal,omitempty"` @@ -82347,7 +82333,7 @@ func (s *KnowledgeAnswersIntentQueryFunctionCall) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// KnowledgeAnswersIntentQueryFunctionCallSignals: Next ID: 36 +// KnowledgeAnswersIntentQueryFunctionCallSignals: Next ID: 37 type KnowledgeAnswersIntentQueryFunctionCallSignals struct { // ArgumentComposingMid: The argument mid that was used to compose the // entity for a concept interpretation, along with the @@ -82513,6 +82499,11 @@ type KnowledgeAnswersIntentQueryFunctionCallSignals struct { // and GeoBank if those are the results we show). SignalsFallbackIntents []*KnowledgeAnswersIntentQuerySignalComputationFallbackIntent `json:"signalsFallbackIntents,omitempty"` + // UsesPrefulfillmentRanker: Identifies whether this intent intends to + // be scored and pruned by the prefulfillment ranker after + // intent-generation. + UsesPrefulfillmentRanker bool `json:"usesPrefulfillmentRanker,omitempty"` + // ForceSendFields is a list of field names (e.g. // "ArgumentComposingMid") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -82742,6 +82733,7 @@ type KnowledgeAnswersIntentQueryIdentifier struct { // "INLINE_INVENTORY" - go/aigp // "MEDIA_PLAYBACK" - Playback identifier for a media session. // go/app-playback-device-gp + // "CONCEPT_ID" - Concept ID type. go/concept-mrf-integration IdType string `json:"idType,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to @@ -105074,6 +105066,8 @@ type PeoplestackFlexorgsProtoInternalExternal struct { // contact: 20p-wg@google.com // "ENGAGEMENTS" - Engagements Team contact: // engagements-eng@google.com + // "CLOUDCONNECT" - Cloudconnect Team contact: + // rev-platforms@google.com // "DEPRECATED_QUICKSTART_FLUME" // "DUO_CLIENT" - Duo Client Team contact: duo-eng@google.com // "ALBERT" - Project albert (go/albert-frontend) Team contact: @@ -108900,11 +108894,6 @@ type PornFlagData struct { // Url: url of the image Url string `json:"url,omitempty"` - // UrlPornScores: Information about the URL porn scores for image URLs - // associated with this image. IMPORTANT: This signal is not populated - // from June 2023. Refer to b/209748384 for more information. - UrlPornScores *ClassifierPornAggregatedUrlPornScores `json:"urlPornScores,omitempty"` - // ForceSendFields is a list of field names (e.g. "DebugInfo") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -113553,7 +113542,7 @@ func (s *QualityNsrNsrDataMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// QualityNsrPQData: Next id: 17 +// QualityNsrPQData: Next id: 18 type QualityNsrPQData struct { // Chard: URL-level chard prediction (encoded as an int). Chard int64 `json:"chard,omitempty"` @@ -113572,6 +113561,9 @@ type QualityNsrPQData struct { // based on the page classification). DeltaSubchunkAdjustment float64 `json:"deltaSubchunkAdjustment,omitempty"` + // Keto: Keto score. + Keto []*QualityNsrVersionedFloatSignal `json:"keto,omitempty"` + LinkIncoming float64 `json:"linkIncoming,omitempty"` LinkOutgoing float64 `json:"linkOutgoing,omitempty"` @@ -114441,6 +114433,8 @@ type QualityPreviewChosenSnippetInfo struct { // "OFFLINE_RADISH_TABLE" // "OFFLINE_LEADING_TEXT" // "PEREGRINE" - Candidates generated by SnippetFlow in SR. + // "LLM_EXTRACTIVE" - As of Jul 2023, an experimental candidate that + // generated by a ML model. SnippetType string `json:"snippetType,omitempty"` // Source: Source of the chosen snippet, decided in PORC. String value @@ -118346,12 +118340,13 @@ func (s *QualitySnippetsTruncationSnippetBoldedRangePosition) MarshalJSON() ([]b return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// QualityTimebasedDateReliability: Unreliable dates signals per URL. +// QualityTimebasedDateUnreliability: Unreliable dates signals per URL. // go/unreliable-dates-dd -type QualityTimebasedDateReliability struct { - PetacatScores []*QualityTimebasedPetacatDateReliability `json:"petacatScores,omitempty"` +type QualityTimebasedDateUnreliability struct { + PetacatScores []*QualityTimebasedPetacatDateUnreliability `json:"petacatScores,omitempty"` - // UnreliableDatesScore: max(petacat.unreliable_dates_score) + // UnreliableDatesScore: If scores are missing, the date is reliable by + // default. max(petacat.unreliable_dates_score) UnreliableDatesScore float64 `json:"unreliableDatesScore,omitempty"` // UnreliableDatesScoreExposureAdjusted: @@ -118375,14 +118370,14 @@ type QualityTimebasedDateReliability struct { NullFields []string `json:"-"` } -func (s *QualityTimebasedDateReliability) MarshalJSON() ([]byte, error) { - type NoMethod QualityTimebasedDateReliability +func (s *QualityTimebasedDateUnreliability) MarshalJSON() ([]byte, error) { + type NoMethod QualityTimebasedDateUnreliability raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -func (s *QualityTimebasedDateReliability) UnmarshalJSON(data []byte) error { - type NoMethod QualityTimebasedDateReliability +func (s *QualityTimebasedDateUnreliability) UnmarshalJSON(data []byte) error { + type NoMethod QualityTimebasedDateUnreliability var s1 struct { UnreliableDatesScore gensupport.JSONFloat64 `json:"unreliableDatesScore"` UnreliableDatesScoreExposureAdjusted gensupport.JSONFloat64 `json:"unreliableDatesScoreExposureAdjusted"` @@ -118409,7 +118404,7 @@ type QualityTimebasedLastSignificantUpdate struct { // field to determine where the value comes from. Date int64 `json:"date,omitempty,string"` - DateReliabilityInfo *QualityTimebasedDateReliability `json:"dateReliabilityInfo,omitempty"` + DateUnreliabilityInfo *QualityTimebasedDateUnreliability `json:"dateUnreliabilityInfo,omitempty"` // Source: The source the signal comes from. // @@ -118602,9 +118597,14 @@ func (s *QualityTimebasedPageType) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// QualityTimebasedPetacatDateReliability: Unreliable dates signals per -// Domain+Petacat. go/unreliable-dates-dd -type QualityTimebasedPetacatDateReliability struct { +// QualityTimebasedPetacatDateUnreliability: Unreliable dates signals +// per Domain+Petacat. go/unreliable-dates-dd NOTE(tomwesolowski): As of +// now, we can safely keep up to 8 4-bytes fields in this proto due to +// Laelaps constraint of max. 50k bytes per single value. We keep all +// the petacats categories for a domain under the same key. The largest +// sites (Youtube, Wikipedia, Facebook) have up to 1.5k different +// petacat verticals. 1500 * 4 * 8 / 1024 bytes = 46.9k bytes +type QualityTimebasedPetacatDateUnreliability struct { ContentageReliability float64 `json:"contentageReliability,omitempty"` DateExposure float64 `json:"dateExposure,omitempty"` @@ -118647,14 +118647,14 @@ type QualityTimebasedPetacatDateReliability struct { NullFields []string `json:"-"` } -func (s *QualityTimebasedPetacatDateReliability) MarshalJSON() ([]byte, error) { - type NoMethod QualityTimebasedPetacatDateReliability +func (s *QualityTimebasedPetacatDateUnreliability) MarshalJSON() ([]byte, error) { + type NoMethod QualityTimebasedPetacatDateUnreliability raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -func (s *QualityTimebasedPetacatDateReliability) UnmarshalJSON(data []byte) error { - type NoMethod QualityTimebasedPetacatDateReliability +func (s *QualityTimebasedPetacatDateUnreliability) UnmarshalJSON(data []byte) error { + type NoMethod QualityTimebasedPetacatDateUnreliability var s1 struct { ContentageReliability gensupport.JSONFloat64 `json:"contentageReliability"` DateExposure gensupport.JSONFloat64 `json:"dateExposure"` @@ -120250,9 +120250,6 @@ type RepositoryWebrefAnnotatedCategoryInfo struct { // DebugString: A debug string for the category. DebugString string `json:"debugString,omitempty"` - // Listiness: Listiness score of the category. - Listiness float64 `json:"listiness,omitempty"` - // Mid: The mid of the entity representing the category. Mid uint64 `json:"mid,omitempty,string"` @@ -120279,20 +120276,6 @@ func (s *RepositoryWebrefAnnotatedCategoryInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -func (s *RepositoryWebrefAnnotatedCategoryInfo) UnmarshalJSON(data []byte) error { - type NoMethod RepositoryWebrefAnnotatedCategoryInfo - var s1 struct { - Listiness gensupport.JSONFloat64 `json:"listiness"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Listiness = float64(s1.Listiness) - return nil -} - // RepositoryWebrefAnnotationDebugInfo: Debug info about the concept // annotations. Note that it might not be present in the output. type RepositoryWebrefAnnotationDebugInfo struct { @@ -120432,8 +120415,6 @@ type RepositoryWebrefAnnotationStatsPerType struct { // "REFERENCE_PAGE_LINK" - URLs that are linked to the reference page // of the entity. Token matching is none because lookups are external // annotations only. - // "DEPRECATED_ENTITY_METADATA" - A special position that is used for - // lookup of entity metadata in name table. // "STRONG_IDENTIFIER" - Tokenized potential strong id of the entity, // like phone number, ISBN. Token matching is none because lookups are // external annotations only. @@ -120442,13 +120423,6 @@ type RepositoryWebrefAnnotationStatsPerType struct { // "REFERENCE_PAGE_LINK_INLINK" - A special position used for lookup // of inlink scores for reference page outlinks. // "GEO_LINK" - // "PRINCIPAL_NAME" - A name used in the name matching library for all - // types of matching. The type NAME_CANDIDATE is used for names that are - // only used for inexpensive types of matching. - // "NAME_BLACKLIST" - Name blacklist for enriched entity. - // "ENTITY_CONTEXT_TOKENS" - Lyrics for song entities. - // "INJECTED_NAME_CANDIDATE" - Injected name candidates are appended - // using this segment type. // "VIDEO_TRANSCRIPT" // "VIDEO_OCR" // "IMAGE_OCR" @@ -120456,8 +120430,12 @@ type RepositoryWebrefAnnotationStatsPerType struct { // "VIDEO_DESCRIPTION" // "ONLY_LOOKUP_METADATA" - Entries which are created in order to // instruct the fprint-loader to load metadata for the contained ngrams. - // "EMBEDDED_CONTENT" - The embedded content in the document (e.g., - // within json scripts). + // "DEPRECATED_ENTITY_METADATA" - Unused. + // "DEPRECATED_PRINCIPAL_NAME" + // "DEPRECATED_NAME_BLACKLIST" + // "DEPRECATED_ENTITY_CONTEXT_TOKENS" + // "DEPRECATED_INJECTED_NAME_CANDIDATE" + // "DEPRECATED_EMBEDDED_CONTENT" TokenType string `json:"tokenType,omitempty"` // ForceSendFields is a list of field names (e.g. "AvgOpenWorld") to @@ -121356,7 +121334,8 @@ func (s *RepositoryWebrefComponentReference) MarshalJSON() ([]byte, error) { // RepositoryWebrefConceptNameMetadata: Metadata proto to be stored in // concept tables. Note: Name table only stores name_type_mask for // better performance. Remember to change NameToConceptEntry if you add -// a field to this proto. +// a field to this proto. Note: in the annotator output only URL and +// PHONE_NUMBER are populated. type RepositoryWebrefConceptNameMetadata struct { // NameTypeMask: Bitfield of ConceptNameMetadata::NameType bits. NameTypeMask uint64 `json:"nameTypeMask,omitempty,string"` @@ -122765,10 +122744,6 @@ func (s *RepositoryWebrefEntityNameSource) MarshalJSON() ([]byte, error) { // RepositoryWebrefEntityScores: Keeps a set of scores about an entity. // Next available tag: 20. type RepositoryWebrefEntityScores struct { - // AllCapsProb: Probability that any given name of this entity is fully - // capitalized. - AllCapsProb float64 `json:"allCapsProb,omitempty"` - // AlphaEntityIdf: This field is only for debugging and link weight // experiments. It stores the entity's idf from the alpha model. Alpha // idfs are used for link weight computations and available during model @@ -122785,12 +122760,12 @@ type RepositoryWebrefEntityScores struct { // frequency weighted by P(entity | name)). EntityIdf float64 `json:"entityIdf,omitempty"` - // NameCapitalizationProb: The following fields are deprecated and - // should eventually be removed. They use data and rules that have not - // been refreshed for ~10y and KG has changed a lot in the meantime. + // NameCapitalizationProb: The following field is deprecated and should + // eventually be removed. It uses data and rules that have not been + // refreshed for ~10y and KG has changed a lot in the meantime. NameCapitalizationProb float64 `json:"nameCapitalizationProb,omitempty"` - // ForceSendFields is a list of field names (e.g. "AllCapsProb") to + // ForceSendFields is a list of field names (e.g. "AlphaEntityIdf") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -122798,12 +122773,13 @@ type RepositoryWebrefEntityScores struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AllCapsProb") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AlphaEntityIdf") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -122816,7 +122792,6 @@ func (s *RepositoryWebrefEntityScores) MarshalJSON() ([]byte, error) { func (s *RepositoryWebrefEntityScores) UnmarshalJSON(data []byte) error { type NoMethod RepositoryWebrefEntityScores var s1 struct { - AllCapsProb gensupport.JSONFloat64 `json:"allCapsProb"` AlphaEntityIdf gensupport.JSONFloat64 `json:"alphaEntityIdf"` CommonNgramProb gensupport.JSONFloat64 `json:"commonNgramProb"` EntityIdf gensupport.JSONFloat64 `json:"entityIdf"` @@ -122827,7 +122802,6 @@ func (s *RepositoryWebrefEntityScores) UnmarshalJSON(data []byte) error { if err := json.Unmarshal(data, &s1); err != nil { return err } - s.AllCapsProb = float64(s1.AllCapsProb) s.AlphaEntityIdf = float64(s1.AlphaEntityIdf) s.CommonNgramProb = float64(s1.CommonNgramProb) s.EntityIdf = float64(s1.EntityIdf) @@ -123273,8 +123247,6 @@ type RepositoryWebrefFprintModifierProto struct { // "REFERENCE_PAGE_LINK" - URLs that are linked to the reference page // of the entity. Token matching is none because lookups are external // annotations only. - // "DEPRECATED_ENTITY_METADATA" - A special position that is used for - // lookup of entity metadata in name table. // "STRONG_IDENTIFIER" - Tokenized potential strong id of the entity, // like phone number, ISBN. Token matching is none because lookups are // external annotations only. @@ -123283,13 +123255,6 @@ type RepositoryWebrefFprintModifierProto struct { // "REFERENCE_PAGE_LINK_INLINK" - A special position used for lookup // of inlink scores for reference page outlinks. // "GEO_LINK" - // "PRINCIPAL_NAME" - A name used in the name matching library for all - // types of matching. The type NAME_CANDIDATE is used for names that are - // only used for inexpensive types of matching. - // "NAME_BLACKLIST" - Name blacklist for enriched entity. - // "ENTITY_CONTEXT_TOKENS" - Lyrics for song entities. - // "INJECTED_NAME_CANDIDATE" - Injected name candidates are appended - // using this segment type. // "VIDEO_TRANSCRIPT" // "VIDEO_OCR" // "IMAGE_OCR" @@ -123297,8 +123262,12 @@ type RepositoryWebrefFprintModifierProto struct { // "VIDEO_DESCRIPTION" // "ONLY_LOOKUP_METADATA" - Entries which are created in order to // instruct the fprint-loader to load metadata for the contained ngrams. - // "EMBEDDED_CONTENT" - The embedded content in the document (e.g., - // within json scripts). + // "DEPRECATED_ENTITY_METADATA" - Unused. + // "DEPRECATED_PRINCIPAL_NAME" + // "DEPRECATED_NAME_BLACKLIST" + // "DEPRECATED_ENTITY_CONTEXT_TOKENS" + // "DEPRECATED_INJECTED_NAME_CANDIDATE" + // "DEPRECATED_EMBEDDED_CONTENT" TokenType string `json:"tokenType,omitempty"` // ForceSendFields is a list of field names (e.g. "Capitalization") to @@ -123954,6 +123923,8 @@ type RepositoryWebrefLexicalRange struct { // gendered ("chairwoman" as opposed to "chairman" or "chairperson"). // "ASPECT" - The range designates an aspect, that is, a modifier of // some other range. + // "GEO_CONNECTOR" - A range expressing proximity, location or + // movement to/from a location. // "TARGET_AUDIENCE" - Facets. // "TARGET_PURPOSE" // "SETTING_BY_LOCATION" @@ -136504,6 +136475,8 @@ type SnippetExtraInfoSnippetCandidateInfo struct { // "OFFLINE_RADISH_TABLE" // "OFFLINE_LEADING_TEXT" // "PEREGRINE" - Candidates generated by SnippetFlow in SR. + // "LLM_EXTRACTIVE" - As of Jul 2023, an experimental candidate that + // generated by a ML model. SnippetType string `json:"snippetType,omitempty"` // ForceSendFields is a list of field names (e.g. "BoldedRanges") to @@ -146069,6 +146042,9 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "FOP_ORDERING_RECOMMENDATION_OUTDATED_EVENT_LEVEL" // "FOP_ORDERING_RECOMMENDATION_SAME_FOP_EVENT_LEVEL" // "FOP_ORDERING_STORED_VALUE_EVENT_LEVEL" + // "GEARHEAD_DUPLEX_COMPATIBLE_DIALER_ENABLED" - Test code for + // sessions where a phone dialer that doesn't turn screen on during + // phone calls is enabled. // "EVENT_LEVEL_TEST_CODE_LIMIT" // "ENTERTAINMENT_CLUSTER_TRIGGERING_AT_SESSION_LEVEL" // "BEST_SELLER_CART_TAG_AT_SESSION_LEVEL" @@ -146263,6 +146239,7 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "IN_APP_OFFER_BATTLESTAR_APP_MAGIC_RAMPAGE_AT_SESSION_LEVEL" // "IN_APP_OFFER_BATTLESTAR_APP_LAST_SURVIVOR_AT_SESSION_LEVEL" // "IN_APP_OFFER_BATTLESTAR_APP_SUMMONERS_WAR_AT_SESSION_LEVEL" + // "IN_APP_OFFER_BATTLESTAR_APP_TOWER_OF_GOD_AT_SESSION_LEVEL" // "IN_APP_OFFER_ELIGIBLE_AT_SESSION_LEVEL" // "IN_APP_OFFER_ELIGIBLE_APP_1_AT_SESSION_LEVEL" // "IN_APP_OFFER_ELIGIBLE_APP_2_AT_SESSION_LEVEL" @@ -146277,6 +146254,8 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_LAST_SURVIVOR_AT_SESSION_LEVEL" // // "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_SUMMONERS_WAR_AT_SESSION_LEVEL" + // + // "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_TOWER_OF_GOD_AT_SESSION_LEVEL" // "IN_APP_OFFER_SAVED_AT_SESSION_LEVEL" // "IN_APP_OFFER_SAVED_APP_1_AT_SESSION_LEVEL" // "IN_APP_OFFER_SAVED_APP_2_AT_SESSION_LEVEL" @@ -147121,7 +147100,7 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "O2_MIGRATION_CARDS_CONTROL" - Session level test code for tagging // o2 cards migration. Test code for tagging control arm, 50625421. // "O2_MIGRATION_CARDS_TREATMENT_TRIGGER_LATENCY" - Test code for - // tagging treatment arm, 50632794. + // tagging treatment arm, 50662743. // "BATTLESTAR_SELF_SHARE_SESSION_LEVEL" - Session-level test code // corresponding to the self share bottom sheet appearing for Battlestar // games. @@ -147170,6 +147149,30 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "MERCH_NOMADS_CN_PROD_CLUSTER_TARGETED_AT_SESSION_LEVEL" - // Session-level test code for Merch Nomads CN Prod Cluster targeting // check. + // "MULTI_COLUMN_HP_GH_FIRST_4_ROWS_SESSION_LEVEL" - Session-level + // test code for Multi-Column Apps Home experiments. + // "MULTI_COLUMN_HP_AH_FIRST_4_ROWS_SESSION_LEVEL" - Session-level + // test code for Multi-Column Apps Home experiments. + // "PENDING_CARD_CHALLENGE_TYPE_INSTRUMENT_3D_SECURE1_SESSION_LEVEL" - + // Session-level test code for card tranction with pending user action. + // "PENDING_CARD_CHALLENGE_TYPE_INSTRUMENT_3D_SECURE2_SESSION_LEVEL" + // "PENDING_CARD_CHALLENGE_TYPE_INSTRUMENT_CVN_SESSION_LEVEL" + // "PENDING_CARD_CHALLENGE_TYPE_INSTRUMENT_PIN_SESSION_LEVEL" + // "PENDING_CARD_CHALLENGE_TYPE_INSTRUMENT_REDIRECT_SESSION_LEVEL" + // "PENDING_CARD_CHALLENGE_TYPE_OTHERS_SESSION_LEVEL" + // "PLAY_SEARCH_SPAM_QUERY_LOW_QUALITY_APP_DEMOTION_SESSION_LEVEL" - + // Session-level test code for Play search spam-query low quality app + // demotion experiments. + // "PURCHASE_ADD_FOP_OPTIONS_SCREEN_SESSION_LEVEL" - Session-level + // test code marking sessions where users see the add new fop option + // screen during purchase flow. This will be used for ranking of add fop + // options experiments. + // "PLAY_PASS_SUPERHERO_CLUSTER_APP_WITH_VIDEO" - Session-level test + // code for when an app is eligible to have its video and description + // displayed in the Play Pass superhero cluster. + // "PLAY_PASS_SUPERHERO_CLUSTER_APP_WITH_PROMOTIONAL_DESCRIPTION" + // "CART_ABANDONMENT_ITEM_RECOMMENDATION_SESSION_LEVEL" - + // Session-level test code for SKU Recommendation in Cart Abandonment. // "SESSION_LEVEL_TEST_CODE_LIMIT" // "CART_ABANDONMENT_USER_LEVEL" - Cart abandonment flow for purchase // flow. @@ -147264,6 +147267,7 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "IN_APP_OFFER_BATTLESTAR_APP_MAGIC_RAMPAGE_AT_USER_LEVEL" // "IN_APP_OFFER_BATTLESTAR_APP_LAST_SURVIVOR_AT_USER_LEVEL" // "IN_APP_OFFER_BATTLESTAR_APP_SUMMONERS_WAR_AT_USER_LEVEL" + // "IN_APP_OFFER_BATTLESTAR_APP_TOWER_OF_GOD_AT_USER_LEVEL" // "IN_APP_OFFER_ELIGIBLE_AT_USER_LEVEL" // "IN_APP_OFFER_ELIGIBLE_APP_1_AT_USER_LEVEL" // "IN_APP_OFFER_ELIGIBLE_APP_2_AT_USER_LEVEL" @@ -147275,6 +147279,7 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_MAGIC_RAMPAGE_AT_USER_LEVEL" // "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_LAST_SURVIVOR_AT_USER_LEVEL" // "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_SUMMONERS_WAR_AT_USER_LEVEL" + // "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_TOWER_OF_GOD_AT_USER_LEVEL" // "IN_APP_OFFER_SAVED_AT_USER_LEVEL" // "IN_APP_OFFER_SAVED_APP_1_AT_USER_LEVEL" // "IN_APP_OFFER_SAVED_APP_2_AT_USER_LEVEL" @@ -147497,6 +147502,8 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // monetization experiments. // "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V2" - User level test code // for link biometrics with impression cap and foped user setup. + // "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V3" - User level test code + // for link biometrics with impression cap and foped user setup. // "POST_SUCCESS_ADD_BACKUP_FLOW_USER_LEVEL" - User level test code // for post success add backup flow. // "SKIP_CHECK_MARK_SCREEN_WITH_BACKUP_FLOW_USER_LEVEL" - User level @@ -147709,6 +147716,10 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // code for those users that are eligible for a targerted reward for an // app. Test code will be logged in PGS. More info: // go/growth-boosters-ptdr + // "IS_ELIGIBLE_FOR_APP_TARGETED_REWARD_ZYNGA_USER_LEVEL" + // "IS_ELIGIBLE_FOR_APP_TARGETED_REWARD_SUPERCELL_USER_LEVEL" + // "IS_ELIGIBLE_FOR_APP_TARGETED_REWARD_KING_USER_LEVEL" + // "IS_ELIGIBLE_FOR_APP_TARGETED_REWARD_MINICLIP_USER_LEVEL" // "GAME_HUB_DEVELOPER_VIDEO_AT_USER_LEVEL" - User-level test code for // Game Hub Developer Video cluster. // "CART_ABANDONMENT_SUBSCRIPTION_BENEFITS_USER_LEVEL" - User-level @@ -147727,6 +147738,17 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // code for GUM fine tuning model study in Notification surface, // tracking users who actually get different experience between control // and treatment. + // "ELIGIBLE_FOR_COMICS_CLUSTER_AH_USER_LEVEL" - User-level test code + // for users eligible for the Comics cluster on AH. + // "REDEEM_SAVE_BUYER_SPEND_MODEL_USER_LEVEL" - User level test code + // for Redeem Save buyer offer study, tracking users who actually get + // different experience between control and treatment. + // "PURCHASE_ADD_FOP_OPTIONS_SCREEN_USER_LEVEL" - User-level test code + // marking users who have seen the add new fop option screen during + // purchase flow. This will be used for ranking of add fop options + // experiments. + // "CART_ABANDONMENT_ITEM_RECOMMENDATION_USER_LEVEL" - User level test + // code for SKU Recommendation in Cart Abandonment. // "USER_LEVEL_TEST_CODE_LIMIT" TestCode []string `json:"testCode,omitempty"` diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index 2f214652fdb..b02e037d6c0 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -2097,7 +2097,7 @@ } } }, - "revision": "20230726", + "revision": "20230802", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -4686,7 +4686,7 @@ "description": "Properties of the object. Contains field @type with type URL.", "type": "any" }, - "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", "type": "object" } }, @@ -4788,7 +4788,7 @@ "type": "object" }, "Policy": { - "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", "id": "Policy", "properties": { "auditConfigs": { diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index 101fdc0b538..72bbc1523b3 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -3747,8 +3747,8 @@ type Operation struct { // `operations/{unique_id}`. Name string `json:"name,omitempty"` - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the + // Response: The normal, successful response of the operation. If the + // original method returns no data on success, such as `Delete`, the // response is `google.protobuf.Empty`. If the original method is // standard `Get`/`Create`/`Update`, the response should be the // resource. For other methods, the response should have the type @@ -3937,7 +3937,7 @@ func (s *PerformanceConfig) MarshalJSON() ([]byte, error) { // both. To learn which resources support conditions in their IAM // policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). -// **JSON example:** { "bindings": [ { "role": +// **JSON example:** ``` { "bindings": [ { "role": // "roles/resourcemanager.organizationAdmin", "members": [ // "user:mike@example.com", "group:admins@example.com", // "domain:google.com", @@ -3946,17 +3946,17 @@ func (s *PerformanceConfig) MarshalJSON() ([]byte, error) { // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - +// "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` +// bindings: - members: - user:mike@example.com - +// group:admins@example.com - domain:google.com - // serviceAccount:my-project-id@appspot.gserviceaccount.com role: // roles/resourcemanager.organizationAdmin - members: - // user:eve@example.com role: roles/resourcemanager.organizationViewer // condition: title: expirable access description: Does not grant access // after Sep 2020 expression: request.time < // timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 -// For a description of IAM and its features, see the IAM documentation -// (https://cloud.google.com/iam/docs/). +// ``` For a description of IAM and its features, see the IAM +// documentation (https://cloud.google.com/iam/docs/). type Policy struct { // AuditConfigs: Specifies cloud audit logging configuration for this // policy. diff --git a/discoveryengine/v1alpha/discoveryengine-api.json b/discoveryengine/v1alpha/discoveryengine-api.json index 03e9f0427a2..963869195db 100644 --- a/discoveryengine/v1alpha/discoveryengine-api.json +++ b/discoveryengine/v1alpha/discoveryengine-api.json @@ -1814,7 +1814,7 @@ } } }, - "revision": "20230803", + "revision": "20230811", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2883,11 +2883,35 @@ "description": "Input only. If set to false, a uri_pattern is generated to include all pages whose address contains the provided_uri_pattern. If set to true, an uri_pattern is generated to try to be an exact match of the provided_uri_pattern or just the specific page if the provided_uri_pattern is a specific one. provided_uri_pattern is always normalized to generate the URI pattern to be used by the search engine.", "type": "boolean" }, + "failureReason": { + "$ref": "GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason", + "description": "Output only. Failure reason.", + "readOnly": true + }, "generatedUriPattern": { "description": "Output only. This is system-generated based on the provided_uri_pattern.", "readOnly": true, "type": "string" }, + "indexingStatus": { + "description": "Output only. Indexing status.", + "enum": [ + "INDEXING_STATUS_UNSPECIFIED", + "PENDING", + "FAILED", + "SUCCEEDED", + "DELETING" + ], + "enumDescriptions": [ + "Defaults to SUCCEEDED.", + "The target site is in the update queue and will be picked up by indexing pipeline.", + "The target site fails to be indexed.", + "The target site has been indexed.", + "The previously indexed target site has been marked to be deleted. This is a transitioning state which will resulted in either: 1. target site deleted if unindexing is successful; 2. state reverts to SUCCEEDED if the unindexing fails." + ], + "readOnly": true, + "type": "string" + }, "name": { "description": "Output only. The fully qualified resource name of the target site. `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}` The `target_site_id` is system-generated.", "readOnly": true, @@ -2925,6 +2949,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason": { + "description": "Site search indexing failure reasons.", + "id": "GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason", + "properties": { + "quotaFailure": { + "$ref": "GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure", + "description": "Failed due to insufficient quota." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure": { + "id": "GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure", + "properties": { + "totalRequiredQuota": { + "description": "This number is an estimation on how much total quota this project needs to successfully complete indexing.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaTransactionInfo": { "description": "A transaction represents the entire purchase transaction.", "id": "GoogleCloudDiscoveryengineV1alphaTransactionInfo", diff --git a/discoveryengine/v1alpha/discoveryengine-gen.go b/discoveryengine/v1alpha/discoveryengine-gen.go index e0342f4cb83..cd1902a2aaa 100644 --- a/discoveryengine/v1alpha/discoveryengine-gen.go +++ b/discoveryengine/v1alpha/discoveryengine-gen.go @@ -2601,10 +2601,27 @@ type GoogleCloudDiscoveryengineV1alphaTargetSite struct { // search engine. ExactMatch bool `json:"exactMatch,omitempty"` + // FailureReason: Output only. Failure reason. + FailureReason *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason `json:"failureReason,omitempty"` + // GeneratedUriPattern: Output only. This is system-generated based on // the provided_uri_pattern. GeneratedUriPattern string `json:"generatedUriPattern,omitempty"` + // IndexingStatus: Output only. Indexing status. + // + // Possible values: + // "INDEXING_STATUS_UNSPECIFIED" - Defaults to SUCCEEDED. + // "PENDING" - The target site is in the update queue and will be + // picked up by indexing pipeline. + // "FAILED" - The target site fails to be indexed. + // "SUCCEEDED" - The target site has been indexed. + // "DELETING" - The previously indexed target site has been marked to + // be deleted. This is a transitioning state which will resulted in + // either: 1. target site deleted if unindexing is successful; 2. state + // reverts to SUCCEEDED if the unindexing fails. + IndexingStatus string `json:"indexingStatus,omitempty"` + // Name: Output only. The fully qualified resource name of the target // site. // `projects/{project}/locations/{location}/collections/{collection}/data @@ -2656,6 +2673,64 @@ func (s *GoogleCloudDiscoveryengineV1alphaTargetSite) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason: Site search +// indexing failure reasons. +type GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason struct { + // QuotaFailure: Failed due to insufficient quota. + QuotaFailure *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"` + + // ForceSendFields is a list of field names (e.g. "QuotaFailure") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "QuotaFailure") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure struct { + // TotalRequiredQuota: This number is an estimation on how much total + // quota this project needs to successfully complete indexing. + TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "TotalRequiredQuota") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TotalRequiredQuota") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaTransactionInfo: A transaction // represents the entire purchase transaction. type GoogleCloudDiscoveryengineV1alphaTransactionInfo struct { diff --git a/discoveryengine/v1beta/discoveryengine-api.json b/discoveryengine/v1beta/discoveryengine-api.json index 50d2d8363c0..e423e2b81c1 100644 --- a/discoveryengine/v1beta/discoveryengine-api.json +++ b/discoveryengine/v1beta/discoveryengine-api.json @@ -1758,7 +1758,7 @@ } } }, - "revision": "20230803", + "revision": "20230811", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2356,11 +2356,35 @@ "description": "Input only. If set to false, a uri_pattern is generated to include all pages whose address contains the provided_uri_pattern. If set to true, an uri_pattern is generated to try to be an exact match of the provided_uri_pattern or just the specific page if the provided_uri_pattern is a specific one. provided_uri_pattern is always normalized to generate the URI pattern to be used by the search engine.", "type": "boolean" }, + "failureReason": { + "$ref": "GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason", + "description": "Output only. Failure reason.", + "readOnly": true + }, "generatedUriPattern": { "description": "Output only. This is system-generated based on the provided_uri_pattern.", "readOnly": true, "type": "string" }, + "indexingStatus": { + "description": "Output only. Indexing status.", + "enum": [ + "INDEXING_STATUS_UNSPECIFIED", + "PENDING", + "FAILED", + "SUCCEEDED", + "DELETING" + ], + "enumDescriptions": [ + "Defaults to SUCCEEDED.", + "The target site is in the update queue and will be picked up by indexing pipeline.", + "The target site fails to be indexed.", + "The target site has been indexed.", + "The previously indexed target site has been marked to be deleted. This is a transitioning state which will resulted in either: 1. target site deleted if unindexing is successful; 2. state reverts to SUCCEEDED if the unindexing fails." + ], + "readOnly": true, + "type": "string" + }, "name": { "description": "Output only. The fully qualified resource name of the target site. `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}` The `target_site_id` is system-generated.", "readOnly": true, @@ -2398,6 +2422,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason": { + "description": "Site search indexing failure reasons.", + "id": "GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason", + "properties": { + "quotaFailure": { + "$ref": "GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure", + "description": "Failed due to insufficient quota." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure": { + "id": "GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure", + "properties": { + "totalRequiredQuota": { + "description": "This number is an estimation on how much total quota this project needs to successfully complete indexing.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaBigQuerySource": { "description": "BigQuery source import data from.", "id": "GoogleCloudDiscoveryengineV1betaBigQuerySource", diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index 21c3b93715b..6008ba25344 100644 --- a/discoveryengine/v1beta/discoveryengine-gen.go +++ b/discoveryengine/v1beta/discoveryengine-gen.go @@ -1601,10 +1601,27 @@ type GoogleCloudDiscoveryengineV1alphaTargetSite struct { // search engine. ExactMatch bool `json:"exactMatch,omitempty"` + // FailureReason: Output only. Failure reason. + FailureReason *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason `json:"failureReason,omitempty"` + // GeneratedUriPattern: Output only. This is system-generated based on // the provided_uri_pattern. GeneratedUriPattern string `json:"generatedUriPattern,omitempty"` + // IndexingStatus: Output only. Indexing status. + // + // Possible values: + // "INDEXING_STATUS_UNSPECIFIED" - Defaults to SUCCEEDED. + // "PENDING" - The target site is in the update queue and will be + // picked up by indexing pipeline. + // "FAILED" - The target site fails to be indexed. + // "SUCCEEDED" - The target site has been indexed. + // "DELETING" - The previously indexed target site has been marked to + // be deleted. This is a transitioning state which will resulted in + // either: 1. target site deleted if unindexing is successful; 2. state + // reverts to SUCCEEDED if the unindexing fails. + IndexingStatus string `json:"indexingStatus,omitempty"` + // Name: Output only. The fully qualified resource name of the target // site. // `projects/{project}/locations/{location}/collections/{collection}/data @@ -1656,6 +1673,64 @@ func (s *GoogleCloudDiscoveryengineV1alphaTargetSite) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason: Site search +// indexing failure reasons. +type GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason struct { + // QuotaFailure: Failed due to insufficient quota. + QuotaFailure *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"` + + // ForceSendFields is a list of field names (e.g. "QuotaFailure") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "QuotaFailure") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure struct { + // TotalRequiredQuota: This number is an estimation on how much total + // quota this project needs to successfully complete indexing. + TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "TotalRequiredQuota") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TotalRequiredQuota") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaBigQuerySource: BigQuery source // import data from. type GoogleCloudDiscoveryengineV1betaBigQuerySource struct { diff --git a/metastore/v1/metastore-api.json b/metastore/v1/metastore-api.json index 1af3c0b5fba..6e0b9936bf5 100644 --- a/metastore/v1/metastore-api.json +++ b/metastore/v1/metastore-api.json @@ -1339,7 +1339,7 @@ } } }, - "revision": "20230727", + "revision": "20230807", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -2269,7 +2269,7 @@ "description": "Properties of the object. Contains field @type with type URL.", "type": "any" }, - "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.", + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.", "type": "object" } }, diff --git a/metastore/v1/metastore-gen.go b/metastore/v1/metastore-gen.go index 3980972c402..408271d95ab 100644 --- a/metastore/v1/metastore-gen.go +++ b/metastore/v1/metastore-gen.go @@ -1700,8 +1700,8 @@ type Operation struct { // operations/{unique_id}. Name string `json:"name,omitempty"` - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as Delete, the + // Response: The normal, successful response of the operation. If the + // original method returns no data on success, such as Delete, the // response is google.protobuf.Empty. If the original method is standard // Get/Create/Update, the response should be the resource. For other // methods, the response should have the type XxxResponse, where Xxx is diff --git a/metastore/v1alpha/metastore-api.json b/metastore/v1alpha/metastore-api.json index a726e54baf8..5df86b7eb07 100644 --- a/metastore/v1alpha/metastore-api.json +++ b/metastore/v1alpha/metastore-api.json @@ -1579,7 +1579,7 @@ } } }, - "revision": "20230727", + "revision": "20230807", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -2566,7 +2566,7 @@ "description": "Properties of the object. Contains field @type with type URL.", "type": "any" }, - "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.", + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.", "type": "object" } }, diff --git a/metastore/v1alpha/metastore-gen.go b/metastore/v1alpha/metastore-gen.go index 756ab76c6e2..fb61d7e2d4c 100644 --- a/metastore/v1alpha/metastore-gen.go +++ b/metastore/v1alpha/metastore-gen.go @@ -1854,8 +1854,8 @@ type Operation struct { // operations/{unique_id}. Name string `json:"name,omitempty"` - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as Delete, the + // Response: The normal, successful response of the operation. If the + // original method returns no data on success, such as Delete, the // response is google.protobuf.Empty. If the original method is standard // Get/Create/Update, the response should be the resource. For other // methods, the response should have the type XxxResponse, where Xxx is diff --git a/ml/v1/ml-api.json b/ml/v1/ml-api.json index c8d25d372ee..8c76cd6176c 100644 --- a/ml/v1/ml-api.json +++ b/ml/v1/ml-api.json @@ -1486,7 +1486,7 @@ } } }, - "revision": "20230328", + "revision": "20230812", "rootUrl": "https://ml.googleapis.com/", "schemas": { "GoogleApi__HttpBody": { @@ -3723,7 +3723,7 @@ "type": "object" }, "GoogleIamV1__Policy": { - "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", "id": "GoogleIamV1__Policy", "properties": { "auditConfigs": { @@ -3844,7 +3844,7 @@ "description": "Properties of the object. Contains field @type with type URL.", "type": "any" }, - "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", "type": "object" } }, diff --git a/ml/v1/ml-gen.go b/ml/v1/ml-gen.go index abe304515ee..4517f2137bb 100644 --- a/ml/v1/ml-gen.go +++ b/ml/v1/ml-gen.go @@ -4382,7 +4382,7 @@ func (s *GoogleIamV1__Binding) MarshalJSON() ([]byte, error) { // both. To learn which resources support conditions in their IAM // policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). -// **JSON example:** { "bindings": [ { "role": +// **JSON example:** ``` { "bindings": [ { "role": // "roles/resourcemanager.organizationAdmin", "members": [ // "user:mike@example.com", "group:admins@example.com", // "domain:google.com", @@ -4391,17 +4391,17 @@ func (s *GoogleIamV1__Binding) MarshalJSON() ([]byte, error) { // "user:eve@example.com" ], "condition": { "title": "expirable access", // "description": "Does not grant access after Sep 2020", "expression": // "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], -// "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - -// members: - user:mike@example.com - group:admins@example.com - -// domain:google.com - +// "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` +// bindings: - members: - user:mike@example.com - +// group:admins@example.com - domain:google.com - // serviceAccount:my-project-id@appspot.gserviceaccount.com role: // roles/resourcemanager.organizationAdmin - members: - // user:eve@example.com role: roles/resourcemanager.organizationViewer // condition: title: expirable access description: Does not grant access // after Sep 2020 expression: request.time < // timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 -// For a description of IAM and its features, see the IAM documentation -// (https://cloud.google.com/iam/docs/). +// ``` For a description of IAM and its features, see the IAM +// documentation (https://cloud.google.com/iam/docs/). type GoogleIamV1__Policy struct { // AuditConfigs: Specifies cloud audit logging configuration for this // policy. @@ -4644,8 +4644,8 @@ type GoogleLongrunning__Operation struct { // `operations/{unique_id}`. Name string `json:"name,omitempty"` - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the + // Response: The normal, successful response of the operation. If the + // original method returns no data on success, such as `Delete`, the // response is `google.protobuf.Empty`. If the original method is // standard `Get`/`Create`/`Update`, the response should be the // resource. For other methods, the response should have the type diff --git a/networkmanagement/v1/networkmanagement-api.json b/networkmanagement/v1/networkmanagement-api.json index b830356de85..15bf6941abe 100644 --- a/networkmanagement/v1/networkmanagement-api.json +++ b/networkmanagement/v1/networkmanagement-api.json @@ -591,7 +591,7 @@ } } }, - "revision": "20230802", + "revision": "20230809", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -956,7 +956,8 @@ "CLOUD_SQL_INSTANCE", "PSC_PUBLISHED_SERVICE", "PSC_GOOGLE_API", - "PSC_VPC_SC" + "PSC_VPC_SC", + "SERVERLESS_NEG" ], "enumDescriptions": [ "Target not specified.", @@ -967,7 +968,8 @@ "Target is a Cloud SQL instance.", "Target is a published service that uses [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).", "Target is all Google APIs that use [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis).", - "Target is a VPC-SC that uses [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis)." + "Target is a VPC-SC that uses [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-apis).", + "Target is a serverless network endpoint group." ], "type": "string" } @@ -1166,6 +1168,10 @@ "description": "IP protocol in string format, for example: \"TCP\", \"UDP\", \"ICMP\".", "type": "string" }, + "sourceAgentUri": { + "description": "URI of the source telemetry agent this packet originates from.", + "type": "string" + }, "sourceIp": { "description": "Source IP address.", "type": "string" @@ -1229,7 +1235,8 @@ "VPC_FIREWALL_RULE", "IMPLIED_VPC_FIREWALL_RULE", "SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE", - "NETWORK_FIREWALL_POLICY_RULE" + "NETWORK_FIREWALL_POLICY_RULE", + "NETWORK_REGIONAL_FIREWALL_POLICY_RULE" ], "enumDescriptions": [ "Unspecified type.", @@ -1237,7 +1244,8 @@ "VPC firewall rule. For details, see [VPC firewall rules overview](https://cloud.google.com/vpc/docs/firewalls).", "Implied VPC firewall rule. For details, see [Implied rules](https://cloud.google.com/vpc/docs/firewalls#default_firewall_rules).", "Implicit firewall rules that are managed by serverless VPC access to allow ingress access. They are not visible in the Google Cloud console. For details, see [VPC connector's implicit rules](https://cloud.google.com/functions/docs/networking/connecting-vpc#restrict-access).", - "Global network firewall policy rule. For details, see [Network firewall policies](https://cloud.google.com/vpc/docs/network-firewall-policies)." + "Global network firewall policy rule. For details, see [Network firewall policies](https://cloud.google.com/vpc/docs/network-firewall-policies).", + "Regional network firewall policy rule. For details, see [Regional network firewall policies](https://cloud.google.com/firewall/docs/regional-firewall-policies)." ], "type": "string" }, diff --git a/networkmanagement/v1/networkmanagement-gen.go b/networkmanagement/v1/networkmanagement-gen.go index 080669ee8f7..f7cced71091 100644 --- a/networkmanagement/v1/networkmanagement-gen.go +++ b/networkmanagement/v1/networkmanagement-gen.go @@ -840,6 +840,7 @@ type DeliverInfo struct { // "PSC_VPC_SC" - Target is a VPC-SC that uses [Private Service // Connect](https://cloud.google.com/vpc/docs/configure-private-service-c // onnect-apis). + // "SERVERLESS_NEG" - Target is a serverless network endpoint group. Target string `json:"target,omitempty"` // ForceSendFields is a list of field names (e.g. "ResourceUri") to @@ -1133,6 +1134,10 @@ type EndpointInfo struct { // "ICMP". Protocol string `json:"protocol,omitempty"` + // SourceAgentUri: URI of the source telemetry agent this packet + // originates from. + SourceAgentUri string `json:"sourceAgentUri,omitempty"` + // SourceIp: Source IP address. SourceIp string `json:"sourceIp,omitempty"` @@ -1264,6 +1269,10 @@ type FirewallInfo struct { // rule. For details, see [Network firewall // policies](https://cloud.google.com/vpc/docs/network-firewall-policies) // . + // "NETWORK_REGIONAL_FIREWALL_POLICY_RULE" - Regional network firewall + // policy rule. For details, see [Regional network firewall + // policies](https://cloud.google.com/firewall/docs/regional-firewall-pol + // icies). FirewallRuleType string `json:"firewallRuleType,omitempty"` // NetworkUri: The URI of the VPC network that the firewall rule is diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json index 3f3c2603604..f3a8ecb967f 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json @@ -396,7 +396,7 @@ } } }, - "revision": "20230614", + "revision": "20230813", "rootUrl": "https://paymentsresellersubscription.googleapis.com/", "schemas": { "GoogleCloudPaymentsResellerSubscriptionV1Amount": { @@ -596,6 +596,18 @@ }, "type": "object" }, + "GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails": { + "description": "Details for a subscriptiin line item with finite billing cycles.", + "id": "GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails", + "properties": { + "billingCycleCountLimit": { + "description": "Required. The number of a subscription line item billing cycles after which billing will stop automatically.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload": { "description": "Payload specific to Google One products.", "id": "GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload", @@ -703,6 +715,10 @@ "description": "A Product resource that defines a subscription service that can be resold.", "id": "GoogleCloudPaymentsResellerSubscriptionV1Product", "properties": { + "finiteBillingCycleDetails": { + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails", + "description": "Optional. Details for a subscription line item with finite billing cycles. If unset, the line item will be charged indefinitely." + }, "name": { "description": "Output only. Response only. Resource name of the product. It will have the format of \"partners/{partner_id}/products/{product_id}\"", "readOnly": true, @@ -789,6 +805,10 @@ "format": "google-datetime", "type": "string" }, + "finiteBillingCycleDetails": { + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails", + "description": "Optional. Details for a subscription line item with finite billing cycles. If unset, the line item will be charged indefinitely. Used only with PROMOTION_TYPE_REGULAR_REDUCTION." + }, "freeTrialDuration": { "$ref": "GoogleCloudPaymentsResellerSubscriptionV1Duration", "description": "Optional. Specifies the duration of the free trial of the subscription when promotion_type is PROMOTION_TYPE_FREE_TRIAL" @@ -807,12 +827,14 @@ "enum": [ "PROMOTION_TYPE_UNSPECIFIED", "PROMOTION_TYPE_FREE_TRIAL", - "PROMOTION_TYPE_INTRODUCTORY_PRICING" + "PROMOTION_TYPE_INTRODUCTORY_PRICING", + "PROMOTION_TYPE_REGULAR_REDUCTION" ], "enumDescriptions": [ "The promotion type is unspecified.", "The promotion is a free trial.", - "The promotion is a reduced introductory pricing." + "The promotion is a reduced introductory pricing.", + "The promotion is a reduced price." ], "readOnly": true, "type": "string" @@ -1086,6 +1108,10 @@ "readOnly": true, "type": "string" }, + "finiteBillingCycleDetails": { + "$ref": "GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails", + "description": "Optional. Details for a subscription line item with finite billing cycles. If unset, the line item will be charged indefinitely. Used only with LINE_ITEM_RECURRENCE_TYPE_PERIODIC." + }, "lineItemFreeTrialEndTime": { "description": "Output only. The free trial end time will be populated after the line item is successfully processed. End time of the line item free trial period, in ISO 8061 format. For example, \"2019-08-31T17:28:54.564Z\". It will be set the same as createTime if no free trial promotion is specified.", "format": "google-datetime", @@ -1195,12 +1221,14 @@ "enum": [ "PROMOTION_TYPE_UNSPECIFIED", "PROMOTION_TYPE_FREE_TRIAL", - "PROMOTION_TYPE_INTRODUCTORY_PRICING" + "PROMOTION_TYPE_INTRODUCTORY_PRICING", + "PROMOTION_TYPE_REGULAR_REDUCTION" ], "enumDescriptions": [ "The promotion type is unspecified.", "The promotion is a free trial.", - "The promotion is a reduced introductory pricing." + "The promotion is a reduced introductory pricing.", + "The promotion is a reduced price." ], "readOnly": true, "type": "string" diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go index f7dd35311cf..0235dc6e7d3 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go @@ -573,6 +573,38 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails: +// Details for a subscriptiin line item with finite billing cycles. +type GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails struct { + // BillingCycleCountLimit: Required. The number of a subscription line + // item billing cycles after which billing will stop automatically. + BillingCycleCountLimit int64 `json:"billingCycleCountLimit,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. + // "BillingCycleCountLimit") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BillingCycleCountLimit") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload: Payload // specific to Google One products. type GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload struct { @@ -743,6 +775,11 @@ func (s *GoogleCloudPaymentsResellerSubscriptionV1Location) MarshalJSON() ([]byt // GoogleCloudPaymentsResellerSubscriptionV1Product: A Product resource // that defines a subscription service that can be resold. type GoogleCloudPaymentsResellerSubscriptionV1Product struct { + // FiniteBillingCycleDetails: Optional. Details for a subscription line + // item with finite billing cycles. If unset, the line item will be + // charged indefinitely. + FiniteBillingCycleDetails *GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails `json:"finiteBillingCycleDetails,omitempty"` + // Name: Output only. Response only. Resource name of the product. It // will have the format of "partners/{partner_id}/products/{product_id}" Name string `json:"name,omitempty"` @@ -763,20 +800,22 @@ type GoogleCloudPaymentsResellerSubscriptionV1Product struct { // Titles: Output only. Localized human readable name of the product. Titles []*GoogleTypeLocalizedText `json:"titles,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "FiniteBillingCycleDetails") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. + // "FiniteBillingCycleDetails") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. NullFields []string `json:"-"` } @@ -866,6 +905,12 @@ type GoogleCloudPaymentsResellerSubscriptionV1Promotion struct { // available indefinitely. EndTime string `json:"endTime,omitempty"` + // FiniteBillingCycleDetails: Optional. Details for a subscription line + // item with finite billing cycles. If unset, the line item will be + // charged indefinitely. Used only with + // PROMOTION_TYPE_REGULAR_REDUCTION. + FiniteBillingCycleDetails *GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails `json:"finiteBillingCycleDetails,omitempty"` + // FreeTrialDuration: Optional. Specifies the duration of the free trial // of the subscription when promotion_type is PROMOTION_TYPE_FREE_TRIAL FreeTrialDuration *GoogleCloudPaymentsResellerSubscriptionV1Duration `json:"freeTrialDuration,omitempty"` @@ -888,6 +933,8 @@ type GoogleCloudPaymentsResellerSubscriptionV1Promotion struct { // "PROMOTION_TYPE_FREE_TRIAL" - The promotion is a free trial. // "PROMOTION_TYPE_INTRODUCTORY_PRICING" - The promotion is a reduced // introductory pricing. + // "PROMOTION_TYPE_REGULAR_REDUCTION" - The promotion is a reduced + // price. PromotionType string `json:"promotionType,omitempty"` // RegionCodes: Output only. 2-letter ISO region code where the @@ -1242,6 +1289,12 @@ type GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem struct { // Description: Output only. Description of this line item. Description string `json:"description,omitempty"` + // FiniteBillingCycleDetails: Optional. Details for a subscription line + // item with finite billing cycles. If unset, the line item will be + // charged indefinitely. Used only with + // LINE_ITEM_RECURRENCE_TYPE_PERIODIC. + FiniteBillingCycleDetails *GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails `json:"finiteBillingCycleDetails,omitempty"` + // LineItemFreeTrialEndTime: Output only. The free trial end time will // be populated after the line item is successfully processed. End time // of the line item free trial period, in ISO 8061 format. For example, @@ -1381,6 +1434,8 @@ type GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec struct { // "PROMOTION_TYPE_FREE_TRIAL" - The promotion is a free trial. // "PROMOTION_TYPE_INTRODUCTORY_PRICING" - The promotion is a reduced // introductory pricing. + // "PROMOTION_TYPE_REGULAR_REDUCTION" - The promotion is a reduced + // price. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "FreeTrialDuration") diff --git a/sasportal/v1alpha1/sasportal-api.json b/sasportal/v1alpha1/sasportal-api.json index 9c818194bf8..9149ec5d06a 100644 --- a/sasportal/v1alpha1/sasportal-api.json +++ b/sasportal/v1alpha1/sasportal-api.json @@ -2617,7 +2617,7 @@ } } }, - "revision": "20230708", + "revision": "20230808", "rootUrl": "https://sasportal.googleapis.com/", "schemas": { "SasPortalAssignment": { @@ -3481,7 +3481,7 @@ "description": "Properties of the object. Contains field @type with type URL.", "type": "any" }, - "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", "type": "object" } }, diff --git a/sasportal/v1alpha1/sasportal-gen.go b/sasportal/v1alpha1/sasportal-gen.go index 7945b32169b..f2259a5f558 100644 --- a/sasportal/v1alpha1/sasportal-gen.go +++ b/sasportal/v1alpha1/sasportal-gen.go @@ -1788,8 +1788,8 @@ type SasPortalOperation struct { // `operations/{unique_id}`. Name string `json:"name,omitempty"` - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the + // Response: The normal, successful response of the operation. If the + // original method returns no data on success, such as `Delete`, the // response is `google.protobuf.Empty`. If the original method is // standard `Get`/`Create`/`Update`, the response should be the // resource. For other methods, the response should have the type