From 09097b0db6599abebb724be3ed3dbc9e8a1d175e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 19 Mar 2024 00:22:16 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2480) --- aiplatform/v1/aiplatform-api.json | 565 +++- aiplatform/v1/aiplatform-gen.go | 1928 +++++++++++-- aiplatform/v1beta1/aiplatform-api.json | 641 ++++- aiplatform/v1beta1/aiplatform-gen.go | 2553 ++++++++++++++--- androidpublisher/v3/androidpublisher-api.json | 4 +- androidpublisher/v3/androidpublisher-gen.go | 4 +- api-list.json | 2 +- chat/v1/chat-api.json | 35 +- chat/v1/chat-gen.go | 83 +- cloudbuild/v2/cloudbuild-api.json | 4 +- cloudbuild/v2/cloudbuild-gen.go | 4 +- container/v1beta1/container-api.json | 43 +- container/v1beta1/container-gen.go | 57 + content/v2.1/content-api.json | 6 +- content/v2.1/content-gen.go | 18 +- metastore/v1alpha/metastore-api.json | 36 +- metastore/v1alpha/metastore-gen.go | 167 -- playintegrity/v1/playintegrity-api.json | 4 +- playintegrity/v1/playintegrity-gen.go | 3 +- secretmanager/v1/secretmanager-api.json | 9 +- secretmanager/v1beta1/secretmanager-api.json | 9 +- secretmanager/v1beta2/secretmanager-api.json | 9 +- .../serviceconsumermanagement-api.json | 18 +- .../v1beta1/serviceconsumermanagement-gen.go | 42 +- serviceusage/v1beta1/serviceusage-api.json | 34 +- serviceusage/v1beta1/serviceusage-gen.go | 84 +- 26 files changed, 5352 insertions(+), 1010 deletions(-) diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index f7cfdc0b0db..2e7fea56416 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -19,6 +19,11 @@ "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/vertex-ai/", "endpoints": [ + { + "description": "Locational Endpoint", + "endpointUrl": "https://africa-south1-aiplatform.googleapis.com/", + "location": "africa-south1" + }, { "description": "Locational Endpoint", "endpointUrl": "https://asia-east1-aiplatform.googleapis.com/", @@ -119,6 +124,21 @@ "endpointUrl": "https://europe-west9-aiplatform.googleapis.com/", "location": "europe-west9" }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://europe-west12-aiplatform.googleapis.com/", + "location": "europe-west12" + }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://me-central1-aiplatform.googleapis.com/", + "location": "me-central1" + }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://me-central2-aiplatform.googleapis.com/", + "location": "me-central2" + }, { "description": "Locational Endpoint", "endpointUrl": "https://me-west1-aiplatform.googleapis.com/", @@ -188,6 +208,11 @@ "description": "Locational Endpoint", "endpointUrl": "https://us-west4-aiplatform.googleapis.com/", "location": "us-west4" + }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://us-east5-aiplatform.googleapis.com/", + "location": "us-east5" } ], "fullyEncodeReservedExpansion": true, @@ -11367,7 +11392,7 @@ ], "parameters": { "filter": { - "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` * `notebookRuntimeType=USER_DEFINED`", + "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED, ERROR, INVALID]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` * `notebookRuntimeType=USER_DEFINED`", "location": "query", "type": "string" }, @@ -11618,6 +11643,163 @@ } } }, + "persistentResources": { + "methods": { + "create": { + "description": "Creates a PersistentResource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/persistentResources", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.persistentResources.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the PersistentResource in. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "persistentResourceId": { + "description": "Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name. The maximum length is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/persistentResources", + "request": { + "$ref": "GoogleCloudAiplatformV1PersistentResource" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a PersistentResource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/persistentResources/{persistentResourcesId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.persistentResources.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the PersistentResource to be deleted. Format: `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a PersistentResource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/persistentResources/{persistentResourcesId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.persistentResources.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the PersistentResource resource. Format: `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1PersistentResource" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists PersistentResources in a Location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/persistentResources", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.persistentResources.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The standard list page token. Typically obtained via ListPersistentResourceResponse.next_page_token of the previous PersistentResourceService.ListPersistentResource call.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to list the PersistentResources from. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/persistentResources", + "response": { + "$ref": "GoogleCloudAiplatformV1ListPersistentResourcesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a PersistentResource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/persistentResources/{persistentResourcesId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.persistentResources.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Immutable. Resource name of a PersistentResource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Specify the fields to be overwritten in the PersistentResource by the update method.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1PersistentResource" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "pipelineJobs": { "methods": { "batchCancel": { @@ -15676,7 +15858,7 @@ } } }, - "revision": "20240301", + "revision": "20240313", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -18567,6 +18749,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1CreatePersistentResourceOperationMetadata": { + "description": "Details of operations that perform create PersistentResource.", + "id": "GoogleCloudAiplatformV1CreatePersistentResourceOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1GenericOperationMetadata", + "description": "Operation metadata for PersistentResource." + }, + "progressMessage": { + "description": "Progress Message for Create LRO", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1CreatePipelineJobRequest": { "description": "Request message for PipelineService.CreatePipelineJob.", "id": "GoogleCloudAiplatformV1CreatePipelineJobRequest", @@ -19790,10 +19987,6 @@ "$ref": "GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig", "description": "Configures the request-response logging for online prediction." }, - "privateServiceConnectConfig": { - "$ref": "GoogleCloudAiplatformV1PrivateServiceConnectConfig", - "description": "Optional. Configuration for private service connect. network and private_service_connect_config are mutually exclusive." - }, "trafficSplit": { "additionalProperties": { "format": "int32", @@ -22074,12 +22267,12 @@ "type": "string" }, "name": { - "description": "Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.", + "description": "Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots and dashes, with a maximum length of 64.", "type": "string" }, "parameters": { "$ref": "GoogleCloudAiplatformV1Schema", - "description": "Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1" + "description": "Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1" } }, "type": "object" @@ -22150,6 +22343,13 @@ }, "type": "array" }, + "systemInstructions": { + "description": "Optional. The user provided system instructions for the model.", + "items": { + "$ref": "GoogleCloudAiplatformV1Content" + }, + "type": "array" + }, "tools": { "description": "Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.", "items": { @@ -22321,6 +22521,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1GoogleSearchRetrieval": { + "description": "Tool to retrieve public web data for grounding, powered by Google.", + "id": "GoogleCloudAiplatformV1GoogleSearchRetrieval", + "properties": { + "disableAttribution": { + "description": "Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1GroundingAttribution": { "description": "Grounding attribution.", "id": "GoogleCloudAiplatformV1GroundingAttribution", @@ -23790,6 +24001,23 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1ListPersistentResourcesResponse": { + "description": "Response message for PersistentResourceService.ListPersistentResources", + "id": "GoogleCloudAiplatformV1ListPersistentResourcesResponse", + "properties": { + "nextPageToken": { + "description": "A token to retrieve next page of results. Pass to ListPersistentResourcesRequest.page_token to obtain that page.", + "type": "string" + }, + "persistentResources": { + "items": { + "$ref": "GoogleCloudAiplatformV1PersistentResource" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1ListPipelineJobsResponse": { "description": "Response message for PipelineService.ListPipelineJobs", "id": "GoogleCloudAiplatformV1ListPipelineJobsResponse", @@ -26431,7 +26659,9 @@ "BEING_STARTED", "BEING_STOPPED", "STOPPED", - "BEING_UPGRADED" + "BEING_UPGRADED", + "ERROR", + "INVALID" ], "enumDescriptions": [ "Unspecified runtime state.", @@ -26439,7 +26669,9 @@ "NotebookRuntime is in starting state.", "NotebookRuntime is in stopping state.", "NotebookRuntime is in stopped state.", - "NotebookRuntime is in upgrading state. It is in the middle of upgrading process." + "NotebookRuntime is in upgrading state. It is in the middle of upgrading process.", + "NotebookRuntime was unable to start/stop properly.", + "NotebookRuntime is in invalid state. Cannot be recovered." ], "readOnly": true, "type": "string" @@ -26638,6 +26870,103 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1PersistentResource": { + "description": "Represents long-lasting resources that are dedicated to users to runs custom workloads. A PersistentResource can have multiple node pools and each node pool can have its own machine spec.", + "id": "GoogleCloudAiplatformV1PersistentResource", + "properties": { + "createTime": { + "description": "Output only. Time when the PersistentResource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Optional. The display name of the PersistentResource. The name can be up to 128 characters long and can consist of any UTF-8 characters.", + "type": "string" + }, + "encryptionSpec": { + "$ref": "GoogleCloudAiplatformV1EncryptionSpec", + "description": "Optional. Customer-managed encryption key spec for a PersistentResource. If set, this PersistentResource and all sub-resources of this PersistentResource will be secured by this key." + }, + "error": { + "$ref": "GoogleRpcStatus", + "description": "Output only. Only populated when persistent resource's state is `STOPPING` or `ERROR`.", + "readOnly": true + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels with user-defined metadata to organize PersistentResource. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.", + "type": "object" + }, + "name": { + "description": "Immutable. Resource name of a PersistentResource.", + "type": "string" + }, + "network": { + "description": "Optional. The full name of the Compute Engine [network](/compute/docs/networks-and-firewalls#networks) to peered with Vertex AI to host the persistent resources. For example, `projects/12345/global/networks/myVPC`. [Format](/compute/docs/reference/rest/v1/networks/insert) is of the form `projects/{project}/global/networks/{network}`. Where {project} is a project number, as in `12345`, and {network} is a network name. To specify this field, you must have already [configured VPC Network Peering for Vertex AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). If this field is left unspecified, the resources aren't peered with any network.", + "type": "string" + }, + "reservedIpRanges": { + "description": "Optional. A list of names for the reserved IP ranges under the VPC network that can be used for this persistent resource. If set, we will deploy the persistent resource within the provided IP ranges. Otherwise, the persistent resource is deployed to any IP ranges under the provided VPC network. Example: ['vertex-ai-ip-range'].", + "items": { + "type": "string" + }, + "type": "array" + }, + "resourcePools": { + "description": "Required. The spec of the pools of different resources.", + "items": { + "$ref": "GoogleCloudAiplatformV1ResourcePool" + }, + "type": "array" + }, + "resourceRuntime": { + "$ref": "GoogleCloudAiplatformV1ResourceRuntime", + "description": "Output only. Runtime information of the Persistent Resource.", + "readOnly": true + }, + "resourceRuntimeSpec": { + "$ref": "GoogleCloudAiplatformV1ResourceRuntimeSpec", + "description": "Optional. Persistent Resource runtime spec. For example, used for Ray cluster configuration." + }, + "startTime": { + "description": "Output only. Time when the PersistentResource for the first time entered the `RUNNING` state.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The detailed state of a Study.", + "enum": [ + "STATE_UNSPECIFIED", + "PROVISIONING", + "RUNNING", + "STOPPING", + "ERROR", + "UPDATING" + ], + "enumDescriptions": [ + "Not set.", + "The PROVISIONING state indicates the persistent resources is being created.", + "The RUNNING state indicates the persistent resource is healthy and fully usable.", + "The STOPPING state indicates the persistent resource is being deleted.", + "The ERROR state indicates the persistent resource may be unusable. Details can be found in the `error` field.", + "The UPDATING state indicates the persistent resource is being updated." + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Time when the PersistentResource was most recently updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1PipelineJob": { "description": "An instance of a machine learning PipelineJob.", "id": "GoogleCloudAiplatformV1PipelineJob", @@ -27894,6 +28223,43 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1RayMetricSpec": { + "description": "Configuration for the Ray metrics.", + "id": "GoogleCloudAiplatformV1RayMetricSpec", + "properties": { + "disabled": { + "description": "Optional. Flag to disable the Ray metrics collection.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1RaySpec": { + "description": "Configuration information for the Ray cluster. For experimental launch, Ray cluster creation and Persistent cluster creation are 1:1 mapping: We will provision all the nodes within the Persistent cluster as Ray nodes.", + "id": "GoogleCloudAiplatformV1RaySpec", + "properties": { + "headNodeResourcePoolId": { + "description": "Optional. This will be used to indicate which resource pool will serve as the Ray head node(the first node within that pool). Will use the machine from the first workerpool as the head node by default if this field isn't set.", + "type": "string" + }, + "imageUri": { + "description": "Optional. Default image for user to choose a preferred ML framework (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). Either this or the resource_pool_images is required. Use this field if you need all the resource pools to have the same Ray image. Otherwise, use the {@code resource_pool_images} field.", + "type": "string" + }, + "rayMetricSpec": { + "$ref": "GoogleCloudAiplatformV1RayMetricSpec", + "description": "Optional. Ray metrics configurations." + }, + "resourcePoolImages": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Required if image_uri isn't set. A map of resource_pool_id to prebuild Ray image if user need to use different images for different head/worker pools. This map needs to cover all the resource pool ids. Example: { \"ray_head_node_pool\": \"head image\" \"ray_worker_node_pool1\": \"worker image\" \"ray_worker_node_pool2\": \"another worker image\" }", + "type": "object" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1ReadFeatureValuesRequest": { "description": "Request message for FeaturestoreOnlineServingService.ReadFeatureValues.", "id": "GoogleCloudAiplatformV1ReadFeatureValuesRequest", @@ -28099,6 +28465,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata": { + "description": "Details of operations that perform reboot PersistentResource.", + "id": "GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1GenericOperationMetadata", + "description": "Operation metadata for PersistentResource." + }, + "progressMessage": { + "description": "Progress Message for Reboot LRO", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1RemoveContextChildrenRequest": { "description": "Request message for MetadataService.DeleteContextChildrenRequest.", "id": "GoogleCloudAiplatformV1RemoveContextChildrenRequest", @@ -28139,6 +28520,92 @@ "properties": {}, "type": "object" }, + "GoogleCloudAiplatformV1ResourcePool": { + "description": "Represents the spec of a group of resources of the same type, for example machine type, disk, and accelerators, in a PersistentResource.", + "id": "GoogleCloudAiplatformV1ResourcePool", + "properties": { + "autoscalingSpec": { + "$ref": "GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec", + "description": "Optional. Optional spec to configure GKE autoscaling" + }, + "diskSpec": { + "$ref": "GoogleCloudAiplatformV1DiskSpec", + "description": "Optional. Disk spec for the machine in this node pool." + }, + "id": { + "description": "Immutable. The unique ID in a PersistentResource for referring to this resource pool. User can specify it if necessary. Otherwise, it's generated automatically.", + "type": "string" + }, + "machineSpec": { + "$ref": "GoogleCloudAiplatformV1MachineSpec", + "description": "Required. Immutable. The specification of a single machine." + }, + "replicaCount": { + "description": "Optional. The total number of machines to use for this resource pool.", + "format": "int64", + "type": "string" + }, + "usedReplicaCount": { + "description": "Output only. The number of machines currently in use by training jobs for this resource pool. Will replace idle_replica_count.", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec": { + "description": "The min/max number of replicas allowed if enabling autoscaling", + "id": "GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec", + "properties": { + "maxReplicaCount": { + "description": "Optional. max replicas in the node pool, must be ≥ replica_count and \u003e min_replica_count or will throw error", + "format": "int64", + "type": "string" + }, + "minReplicaCount": { + "description": "Optional. min replicas in the node pool, must be ≤ replica_count and \u003c max_replica_count or will throw error", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1ResourceRuntime": { + "description": "Persistent Cluster runtime information as output", + "id": "GoogleCloudAiplatformV1ResourceRuntime", + "properties": { + "accessUris": { + "additionalProperties": { + "type": "string" + }, + "description": "Output only. URIs for user to connect to the Cluster. Example: { \"RAY_HEAD_NODE_INTERNAL_IP\": \"head-node-IP:10001\" \"RAY_DASHBOARD_URI\": \"ray-dashboard-address:8888\" }", + "readOnly": true, + "type": "object" + }, + "notebookRuntimeTemplate": { + "description": "Output only. The resource name of NotebookRuntimeTemplate for the RoV Persistent Cluster The NotebokRuntimeTemplate is created in the same VPC (if set), and with the same Ray and Python version as the Persistent Cluster. Example: \"projects/1000/locations/us-central1/notebookRuntimeTemplates/abc123\"", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1ResourceRuntimeSpec": { + "description": "Configuration for the runtime on a PersistentResource instance, including but not limited to: * Service accounts used to run the workloads. * Whether to make it a dedicated Ray Cluster.", + "id": "GoogleCloudAiplatformV1ResourceRuntimeSpec", + "properties": { + "raySpec": { + "$ref": "GoogleCloudAiplatformV1RaySpec", + "description": "Optional. Ray cluster configuration. Required when creating a dedicated RayCluster on the PersistentResource." + }, + "serviceAccountSpec": { + "$ref": "GoogleCloudAiplatformV1ServiceAccountSpec", + "description": "Optional. Configure the use of workload identity on the PersistentResource" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1ResourcesConsumed": { "description": "Statistics information about resource consumption.", "id": "GoogleCloudAiplatformV1ResourcesConsumed", @@ -28180,6 +28647,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1Retrieval": { + "description": "Defines a retrieval tool that model can call to access external knowledge.", + "id": "GoogleCloudAiplatformV1Retrieval", + "properties": { + "disableAttribution": { + "description": "Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation.", + "type": "boolean" + }, + "vertexAiSearch": { + "$ref": "GoogleCloudAiplatformV1VertexAISearch", + "description": "Set to use data source powered by Vertex AI Search." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1SafetyRating": { "description": "Safety rating corresponding to the generated content.", "id": "GoogleCloudAiplatformV1SafetyRating", @@ -28283,6 +28765,20 @@ ], "type": "string" }, + "method": { + "description": "Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.", + "enum": [ + "HARM_BLOCK_METHOD_UNSPECIFIED", + "SEVERITY", + "PROBABILITY" + ], + "enumDescriptions": [ + "The harm block method is unspecified.", + "The harm block method uses both probability and severity scores.", + "The harm block method uses the probability score." + ], + "type": "string" + }, "threshold": { "description": "Required. The harm block threshold.", "enum": [ @@ -32556,6 +33052,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1ServiceAccountSpec": { + "description": "Configuration for the use of custom service account to run the workloads.", + "id": "GoogleCloudAiplatformV1ServiceAccountSpec", + "properties": { + "enableCustomServiceAccount": { + "description": "Required. If true, custom user-managed service account is enforced to run any workloads (for example, Vertex Jobs) on the resource. Otherwise, uses the [Vertex AI Custom Code Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).", + "type": "boolean" + }, + "serviceAccount": { + "description": "Optional. Default service account that this PersistentResource's workloads run as. The workloads include: * Any runtime specified via `ResourceRuntimeSpec` on creation time, for example, Ray. * Jobs submitted to PersistentResource, if no other service account specified in the job specs. Only works when custom service account is enabled and users have the `iam.serviceAccounts.actAs` permission on this service account. Required if any containers are specified in `ResourceRuntimeSpec`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1ShieldedVmConfig": { "description": "A set of Shielded Instance options. See [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).", "id": "GoogleCloudAiplatformV1ShieldedVmConfig", @@ -33916,6 +34427,14 @@ "$ref": "GoogleCloudAiplatformV1FunctionDeclaration" }, "type": "array" + }, + "googleSearchRetrieval": { + "$ref": "GoogleCloudAiplatformV1GoogleSearchRetrieval", + "description": "Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search." + }, + "retrieval": { + "$ref": "GoogleCloudAiplatformV1Retrieval", + "description": "Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation." } }, "type": "object" @@ -34376,6 +34895,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1UpdatePersistentResourceOperationMetadata": { + "description": "Details of operations that perform update PersistentResource.", + "id": "GoogleCloudAiplatformV1UpdatePersistentResourceOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1GenericOperationMetadata", + "description": "Operation metadata for PersistentResource." + }, + "progressMessage": { + "description": "Progress Message for Update LRO", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1UpdateSpecialistPoolOperationMetadata": { "description": "Runtime operation metadata for SpecialistPoolService.UpdateSpecialistPool.", "id": "GoogleCloudAiplatformV1UpdateSpecialistPoolOperationMetadata", @@ -34539,6 +35073,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1VertexAISearch": { + "description": "Retrieve from Vertex AI Search datastore for grounding. See https://cloud.google.com/vertex-ai-search-and-conversation", + "id": "GoogleCloudAiplatformV1VertexAISearch", + "properties": { + "datastore": { + "description": "Required. Fully-qualified Vertex AI Search's datastore resource ID. projects/\u003c\u003e/locations/\u003c\u003e/collections/\u003c\u003e/dataStores/\u003c\u003e", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1VideoMetadata": { "description": "Metadata describes the input video content.", "id": "GoogleCloudAiplatformV1VideoMetadata", diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 713df7dd61f..1efa3c235ae 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -202,6 +202,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.NotebookRuntimeTemplates = NewProjectsLocationsNotebookRuntimeTemplatesService(s) rs.NotebookRuntimes = NewProjectsLocationsNotebookRuntimesService(s) rs.Operations = NewProjectsLocationsOperationsService(s) + rs.PersistentResources = NewProjectsLocationsPersistentResourcesService(s) rs.PipelineJobs = NewProjectsLocationsPipelineJobsService(s) rs.Publishers = NewProjectsLocationsPublishersService(s) rs.Schedules = NewProjectsLocationsSchedulesService(s) @@ -256,6 +257,8 @@ type ProjectsLocationsService struct { Operations *ProjectsLocationsOperationsService + PersistentResources *ProjectsLocationsPersistentResourcesService + PipelineJobs *ProjectsLocationsPipelineJobsService Publishers *ProjectsLocationsPublishersService @@ -981,6 +984,15 @@ type ProjectsLocationsOperationsService struct { s *Service } +func NewProjectsLocationsPersistentResourcesService(s *Service) *ProjectsLocationsPersistentResourcesService { + rs := &ProjectsLocationsPersistentResourcesService{s: s} + return rs +} + +type ProjectsLocationsPersistentResourcesService struct { + s *Service +} + func NewProjectsLocationsPipelineJobsService(s *Service) *ProjectsLocationsPipelineJobsService { rs := &ProjectsLocationsPipelineJobsService{s: s} rs.Operations = NewProjectsLocationsPipelineJobsOperationsService(s) @@ -6370,6 +6382,39 @@ func (s *GoogleCloudAiplatformV1CreateNotebookRuntimeTemplateOperationMetadata) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1CreatePersistentResourceOperationMetadata: +// Details of operations that perform create PersistentResource. +type GoogleCloudAiplatformV1CreatePersistentResourceOperationMetadata struct { + // GenericMetadata: Operation metadata for PersistentResource. + GenericMetadata *GoogleCloudAiplatformV1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ProgressMessage: Progress Message for Create LRO + ProgressMessage string `json:"progressMessage,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 *GoogleCloudAiplatformV1CreatePersistentResourceOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1CreatePersistentResourceOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1CreatePipelineJobRequest: Request message for // PipelineService.CreatePipelineJob. type GoogleCloudAiplatformV1CreatePipelineJobRequest struct { @@ -8633,11 +8678,6 @@ type GoogleCloudAiplatformV1Endpoint struct { // logging for online prediction. PredictRequestResponseLoggingConfig *GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig `json:"predictRequestResponseLoggingConfig,omitempty"` - // PrivateServiceConnectConfig: Optional. Configuration for private - // service connect. network and private_service_connect_config are - // mutually exclusive. - PrivateServiceConnectConfig *GoogleCloudAiplatformV1PrivateServiceConnectConfig `json:"privateServiceConnectConfig,omitempty"` - // TrafficSplit: A map from a DeployedModel's ID to the percentage of // this Endpoint's traffic that should be forwarded to that // DeployedModel. If a DeployedModel's ID is not listed in this map, @@ -12991,7 +13031,7 @@ type GoogleCloudAiplatformV1FunctionDeclaration struct { // Name: Required. The name of the function to call. Must start with a // letter or an underscore. Must be a-z, A-Z, 0-9, or contain - // underscores and dashes, with a maximum length of 64. + // underscores, dots and dashes, with a maximum length of 64. Name string `json:"name,omitempty"` // Parameters: Optional. Describes the parameters to this function in @@ -12999,9 +13039,11 @@ type GoogleCloudAiplatformV1FunctionDeclaration struct { // Object. string Key: the name of the parameter. Parameter names are // case sensitive. Schema Value: the Schema defining the type used for // the parameter. For function with no parameters, this can be left - // unset. Example with 1 required and 1 optional parameter: type: OBJECT - // properties: param1: type: STRING param2: type: INTEGER required: - - // param1 + // unset. Parameter names must start with a letter or an underscore and + // must only contain chars a-z, A-Z, 0-9, or underscores with a maximum + // length of 64. Example with 1 required and 1 optional parameter: type: + // OBJECT properties: param1: type: STRING param2: type: INTEGER + // required: - param1 Parameters *GoogleCloudAiplatformV1Schema `json:"parameters,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to @@ -13143,6 +13185,10 @@ type GoogleCloudAiplatformV1GenerateContentRequest struct { // content. Enforced on GenerateContentResponse.candidates. SafetySettings []*GoogleCloudAiplatformV1SafetySetting `json:"safetySettings,omitempty"` + // SystemInstructions: Optional. The user provided system instructions + // for the model. + SystemInstructions []*GoogleCloudAiplatformV1Content `json:"systemInstructions,omitempty"` + // Tools: Optional. A list of `Tools` the model may use to generate the // next response. A `Tool` is a piece of code that enables the system to // interact with external systems to perform an action, or set of @@ -13425,6 +13471,38 @@ func (s *GoogleCloudAiplatformV1GenieSource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1GoogleSearchRetrieval: Tool to retrieve public +// web data for grounding, powered by Google. +type GoogleCloudAiplatformV1GoogleSearchRetrieval struct { + // DisableAttribution: Optional. Disable using the result from this tool + // in detecting grounding attribution. This does not affect how the + // result is given to the model for generation. + DisableAttribution bool `json:"disableAttribution,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisableAttribution") + // 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. "DisableAttribution") 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 *GoogleCloudAiplatformV1GoogleSearchRetrieval) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1GoogleSearchRetrieval + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1GroundingAttribution: Grounding attribution. type GoogleCloudAiplatformV1GroundingAttribution struct { // ConfidenceScore: Optional. Output only. Confidence score of the @@ -16126,6 +16204,42 @@ func (s *GoogleCloudAiplatformV1ListOptimalTrialsResponse) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1ListPersistentResourcesResponse: Response +// message for PersistentResourceService.ListPersistentResources +type GoogleCloudAiplatformV1ListPersistentResourcesResponse struct { + // NextPageToken: A token to retrieve next page of results. Pass to + // ListPersistentResourcesRequest.page_token to obtain that page. + NextPageToken string `json:"nextPageToken,omitempty"` + + PersistentResources []*GoogleCloudAiplatformV1PersistentResource `json:"persistentResources,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "NextPageToken") 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 *GoogleCloudAiplatformV1ListPersistentResourcesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ListPersistentResourcesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1ListPipelineJobsResponse: Response message for // PipelineService.ListPipelineJobs type GoogleCloudAiplatformV1ListPipelineJobsResponse struct { @@ -20801,6 +20915,9 @@ type GoogleCloudAiplatformV1NotebookRuntime struct { // "STOPPED" - NotebookRuntime is in stopped state. // "BEING_UPGRADED" - NotebookRuntime is in upgrading state. It is in // the middle of upgrading process. + // "ERROR" - NotebookRuntime was unable to start/stop properly. + // "INVALID" - NotebookRuntime is in invalid state. Cannot be + // recovered. RuntimeState string `json:"runtimeState,omitempty"` // RuntimeUser: Required. The user email of the NotebookRuntime. @@ -21093,6 +21210,125 @@ func (s *GoogleCloudAiplatformV1PersistentDiskSpec) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1PersistentResource: Represents long-lasting +// resources that are dedicated to users to runs custom workloads. A +// PersistentResource can have multiple node pools and each node pool +// can have its own machine spec. +type GoogleCloudAiplatformV1PersistentResource struct { + // CreateTime: Output only. Time when the PersistentResource was + // created. + CreateTime string `json:"createTime,omitempty"` + + // DisplayName: Optional. The display name of the PersistentResource. + // The name can be up to 128 characters long and can consist of any + // UTF-8 characters. + DisplayName string `json:"displayName,omitempty"` + + // EncryptionSpec: Optional. Customer-managed encryption key spec for a + // PersistentResource. If set, this PersistentResource and all + // sub-resources of this PersistentResource will be secured by this key. + EncryptionSpec *GoogleCloudAiplatformV1EncryptionSpec `json:"encryptionSpec,omitempty"` + + // Error: Output only. Only populated when persistent resource's state + // is `STOPPING` or `ERROR`. + Error *GoogleRpcStatus `json:"error,omitempty"` + + // Labels: Optional. The labels with user-defined metadata to organize + // PersistentResource. Label keys and values can be no longer than 64 + // characters (Unicode codepoints), can only contain lowercase letters, + // numeric characters, underscores and dashes. International characters + // are allowed. See https://goo.gl/xmQnxf for more information and + // examples of labels. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Immutable. Resource name of a PersistentResource. + Name string `json:"name,omitempty"` + + // Network: Optional. The full name of the Compute Engine network + // (/compute/docs/networks-and-firewalls#networks) to peered with Vertex + // AI to host the persistent resources. For example, + // `projects/12345/global/networks/myVPC`. Format + // (/compute/docs/reference/rest/v1/networks/insert) is of the form + // `projects/{project}/global/networks/{network}`. Where {project} is a + // project number, as in `12345`, and {network} is a network name. To + // specify this field, you must have already configured VPC Network + // Peering for Vertex AI + // (https://cloud.google.com/vertex-ai/docs/general/vpc-peering). If + // this field is left unspecified, the resources aren't peered with any + // network. + Network string `json:"network,omitempty"` + + // ReservedIpRanges: Optional. A list of names for the reserved IP + // ranges under the VPC network that can be used for this persistent + // resource. If set, we will deploy the persistent resource within the + // provided IP ranges. Otherwise, the persistent resource is deployed to + // any IP ranges under the provided VPC network. Example: + // ['vertex-ai-ip-range']. + ReservedIpRanges []string `json:"reservedIpRanges,omitempty"` + + // ResourcePools: Required. The spec of the pools of different + // resources. + ResourcePools []*GoogleCloudAiplatformV1ResourcePool `json:"resourcePools,omitempty"` + + // ResourceRuntime: Output only. Runtime information of the Persistent + // Resource. + ResourceRuntime *GoogleCloudAiplatformV1ResourceRuntime `json:"resourceRuntime,omitempty"` + + // ResourceRuntimeSpec: Optional. Persistent Resource runtime spec. For + // example, used for Ray cluster configuration. + ResourceRuntimeSpec *GoogleCloudAiplatformV1ResourceRuntimeSpec `json:"resourceRuntimeSpec,omitempty"` + + // StartTime: Output only. Time when the PersistentResource for the + // first time entered the `RUNNING` state. + StartTime string `json:"startTime,omitempty"` + + // State: Output only. The detailed state of a Study. + // + // Possible values: + // "STATE_UNSPECIFIED" - Not set. + // "PROVISIONING" - The PROVISIONING state indicates the persistent + // resources is being created. + // "RUNNING" - The RUNNING state indicates the persistent resource is + // healthy and fully usable. + // "STOPPING" - The STOPPING state indicates the persistent resource + // is being deleted. + // "ERROR" - The ERROR state indicates the persistent resource may be + // unusable. Details can be found in the `error` field. + // "UPDATING" - The UPDATING state indicates the persistent resource + // is being updated. + State string `json:"state,omitempty"` + + // UpdateTime: Output only. Time when the PersistentResource was most + // recently updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "CreateTime") 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 *GoogleCloudAiplatformV1PersistentResource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1PersistentResource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1PipelineJob: An instance of a machine learning // PipelineJob. type GoogleCloudAiplatformV1PipelineJob struct { @@ -23147,6 +23383,91 @@ func (s *GoogleCloudAiplatformV1RawPredictRequest) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1RayMetricSpec: Configuration for the Ray +// metrics. +type GoogleCloudAiplatformV1RayMetricSpec struct { + // Disabled: Optional. Flag to disable the Ray metrics collection. + Disabled bool `json:"disabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Disabled") 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. "Disabled") 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 *GoogleCloudAiplatformV1RayMetricSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1RayMetricSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1RaySpec: Configuration information for the Ray +// cluster. For experimental launch, Ray cluster creation and Persistent +// cluster creation are 1:1 mapping: We will provision all the nodes +// within the Persistent cluster as Ray nodes. +type GoogleCloudAiplatformV1RaySpec struct { + // HeadNodeResourcePoolId: Optional. This will be used to indicate which + // resource pool will serve as the Ray head node(the first node within + // that pool). Will use the machine from the first workerpool as the + // head node by default if this field isn't set. + HeadNodeResourcePoolId string `json:"headNodeResourcePoolId,omitempty"` + + // ImageUri: Optional. Default image for user to choose a preferred ML + // framework (for example, TensorFlow or Pytorch) by choosing from + // Vertex prebuilt images + // (https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). + // Either this or the resource_pool_images is required. Use this field + // if you need all the resource pools to have the same Ray image. + // Otherwise, use the {@code resource_pool_images} field. + ImageUri string `json:"imageUri,omitempty"` + + // RayMetricSpec: Optional. Ray metrics configurations. + RayMetricSpec *GoogleCloudAiplatformV1RayMetricSpec `json:"rayMetricSpec,omitempty"` + + // ResourcePoolImages: Optional. Required if image_uri isn't set. A map + // of resource_pool_id to prebuild Ray image if user need to use + // different images for different head/worker pools. This map needs to + // cover all the resource pool ids. Example: { "ray_head_node_pool": + // "head image" "ray_worker_node_pool1": "worker image" + // "ray_worker_node_pool2": "another worker image" } + ResourcePoolImages map[string]string `json:"resourcePoolImages,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "HeadNodeResourcePoolId") 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. "HeadNodeResourcePoolId") + // 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 *GoogleCloudAiplatformV1RaySpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1RaySpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1ReadFeatureValuesRequest: Request message for // FeaturestoreOnlineServingService.ReadFeatureValues. type GoogleCloudAiplatformV1ReadFeatureValuesRequest struct { @@ -23625,6 +23946,39 @@ func (s *GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData) Ma return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata: +// Details of operations that perform reboot PersistentResource. +type GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata struct { + // GenericMetadata: Operation metadata for PersistentResource. + GenericMetadata *GoogleCloudAiplatformV1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ProgressMessage: Progress Message for Reboot LRO + ProgressMessage string `json:"progressMessage,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 *GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1RemoveContextChildrenRequest: Request message // for MetadataService.DeleteContextChildrenRequest. type GoogleCloudAiplatformV1RemoveContextChildrenRequest struct { @@ -23699,6 +24053,167 @@ type GoogleCloudAiplatformV1RemoveDatapointsResponse struct { googleapi.ServerResponse `json:"-"` } +// GoogleCloudAiplatformV1ResourcePool: Represents the spec of a group +// of resources of the same type, for example machine type, disk, and +// accelerators, in a PersistentResource. +type GoogleCloudAiplatformV1ResourcePool struct { + // AutoscalingSpec: Optional. Optional spec to configure GKE autoscaling + AutoscalingSpec *GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec `json:"autoscalingSpec,omitempty"` + + // DiskSpec: Optional. Disk spec for the machine in this node pool. + DiskSpec *GoogleCloudAiplatformV1DiskSpec `json:"diskSpec,omitempty"` + + // Id: Immutable. The unique ID in a PersistentResource for referring to + // this resource pool. User can specify it if necessary. Otherwise, it's + // generated automatically. + Id string `json:"id,omitempty"` + + // MachineSpec: Required. Immutable. The specification of a single + // machine. + MachineSpec *GoogleCloudAiplatformV1MachineSpec `json:"machineSpec,omitempty"` + + // ReplicaCount: Optional. The total number of machines to use for this + // resource pool. + ReplicaCount int64 `json:"replicaCount,omitempty,string"` + + // UsedReplicaCount: Output only. The number of machines currently in + // use by training jobs for this resource pool. Will replace + // idle_replica_count. + UsedReplicaCount int64 `json:"usedReplicaCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "AutoscalingSpec") 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. "AutoscalingSpec") 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 *GoogleCloudAiplatformV1ResourcePool) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ResourcePool + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec: The min/max +// number of replicas allowed if enabling autoscaling +type GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec struct { + // MaxReplicaCount: Optional. max replicas in the node pool, must be ≥ + // replica_count and > min_replica_count or will throw error + MaxReplicaCount int64 `json:"maxReplicaCount,omitempty,string"` + + // MinReplicaCount: Optional. min replicas in the node pool, must be ≤ + // replica_count and < max_replica_count or will throw error + MinReplicaCount int64 `json:"minReplicaCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "MaxReplicaCount") 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. "MaxReplicaCount") 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 *GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1ResourceRuntime: Persistent Cluster runtime +// information as output +type GoogleCloudAiplatformV1ResourceRuntime struct { + // AccessUris: Output only. URIs for user to connect to the Cluster. + // Example: { "RAY_HEAD_NODE_INTERNAL_IP": "head-node-IP:10001" + // "RAY_DASHBOARD_URI": "ray-dashboard-address:8888" } + AccessUris map[string]string `json:"accessUris,omitempty"` + + // NotebookRuntimeTemplate: Output only. The resource name of + // NotebookRuntimeTemplate for the RoV Persistent Cluster The + // NotebokRuntimeTemplate is created in the same VPC (if set), and with + // the same Ray and Python version as the Persistent Cluster. Example: + // "projects/1000/locations/us-central1/notebookRuntimeTemplates/abc123" + NotebookRuntimeTemplate string `json:"notebookRuntimeTemplate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AccessUris") 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. "AccessUris") 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 *GoogleCloudAiplatformV1ResourceRuntime) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ResourceRuntime + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1ResourceRuntimeSpec: Configuration for the +// runtime on a PersistentResource instance, including but not limited +// to: * Service accounts used to run the workloads. * Whether to make +// it a dedicated Ray Cluster. +type GoogleCloudAiplatformV1ResourceRuntimeSpec struct { + // RaySpec: Optional. Ray cluster configuration. Required when creating + // a dedicated RayCluster on the PersistentResource. + RaySpec *GoogleCloudAiplatformV1RaySpec `json:"raySpec,omitempty"` + + // ServiceAccountSpec: Optional. Configure the use of workload identity + // on the PersistentResource + ServiceAccountSpec *GoogleCloudAiplatformV1ServiceAccountSpec `json:"serviceAccountSpec,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RaySpec") 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. "RaySpec") 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 *GoogleCloudAiplatformV1ResourceRuntimeSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ResourceRuntimeSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1ResourcesConsumed: Statistics information // about resource consumption. type GoogleCloudAiplatformV1ResourcesConsumed struct { @@ -23813,6 +24328,41 @@ func (s *GoogleCloudAiplatformV1ResumeScheduleRequest) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1Retrieval: Defines a retrieval tool that model +// can call to access external knowledge. +type GoogleCloudAiplatformV1Retrieval struct { + // DisableAttribution: Optional. Disable using the result from this tool + // in detecting grounding attribution. This does not affect how the + // result is given to the model for generation. + DisableAttribution bool `json:"disableAttribution,omitempty"` + + // VertexAiSearch: Set to use data source powered by Vertex AI Search. + VertexAiSearch *GoogleCloudAiplatformV1VertexAISearch `json:"vertexAiSearch,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisableAttribution") + // 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. "DisableAttribution") 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 *GoogleCloudAiplatformV1Retrieval) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1Retrieval + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1SafetyRating: Safety rating corresponding to // the generated content. type GoogleCloudAiplatformV1SafetyRating struct { @@ -23911,6 +24461,18 @@ type GoogleCloudAiplatformV1SafetySetting struct { // explicit content. Category string `json:"category,omitempty"` + // Method: Optional. Specify if the threshold is used for probability or + // severity score. If not specified, the threshold is used for + // probability score. + // + // Possible values: + // "HARM_BLOCK_METHOD_UNSPECIFIED" - The harm block method is + // unspecified. + // "SEVERITY" - The harm block method uses both probability and + // severity scores. + // "PROBABILITY" - The harm block method uses the probability score. + Method string `json:"method,omitempty"` + // Threshold: Required. The harm block threshold. // // Possible values: @@ -32597,6 +33159,51 @@ func (s *GoogleCloudAiplatformV1Segment) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1ServiceAccountSpec: Configuration for the use +// of custom service account to run the workloads. +type GoogleCloudAiplatformV1ServiceAccountSpec struct { + // EnableCustomServiceAccount: Required. If true, custom user-managed + // service account is enforced to run any workloads (for example, Vertex + // Jobs) on the resource. Otherwise, uses the Vertex AI Custom Code + // Service Agent + // (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents). + EnableCustomServiceAccount bool `json:"enableCustomServiceAccount,omitempty"` + + // ServiceAccount: Optional. Default service account that this + // PersistentResource's workloads run as. The workloads include: * Any + // runtime specified via `ResourceRuntimeSpec` on creation time, for + // example, Ray. * Jobs submitted to PersistentResource, if no other + // service account specified in the job specs. Only works when custom + // service account is enabled and users have the + // `iam.serviceAccounts.actAs` permission on this service account. + // Required if any containers are specified in `ResourceRuntimeSpec`. + ServiceAccount string `json:"serviceAccount,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "EnableCustomServiceAccount") 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. + // "EnableCustomServiceAccount") 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 *GoogleCloudAiplatformV1ServiceAccountSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ServiceAccountSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1ShieldedVmConfig: A set of Shielded Instance // options. See Images using supported Shielded VM features // (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). @@ -35014,6 +35621,16 @@ type GoogleCloudAiplatformV1Tool struct { // provided. FunctionDeclarations []*GoogleCloudAiplatformV1FunctionDeclaration `json:"functionDeclarations,omitempty"` + // GoogleSearchRetrieval: Optional. GoogleSearchRetrieval tool type. + // Specialized retrieval tool that is powered by Google search. + GoogleSearchRetrieval *GoogleCloudAiplatformV1GoogleSearchRetrieval `json:"googleSearchRetrieval,omitempty"` + + // Retrieval: Optional. Retrieval tool type. System will always execute + // the provided retrieval tool(s) to get external knowledge to answer + // the prompt. Retrieval results are presented to the model for + // generation. + Retrieval *GoogleCloudAiplatformV1Retrieval `json:"retrieval,omitempty"` + // ForceSendFields is a list of field names (e.g. // "FunctionDeclarations") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -35895,6 +36512,39 @@ func (s *GoogleCloudAiplatformV1UpdateModelDeploymentMonitoringJobOperationMetad return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1UpdatePersistentResourceOperationMetadata: +// Details of operations that perform update PersistentResource. +type GoogleCloudAiplatformV1UpdatePersistentResourceOperationMetadata struct { + // GenericMetadata: Operation metadata for PersistentResource. + GenericMetadata *GoogleCloudAiplatformV1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ProgressMessage: Progress Message for Update LRO + ProgressMessage string `json:"progressMessage,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 *GoogleCloudAiplatformV1UpdatePersistentResourceOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1UpdatePersistentResourceOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1UpdateSpecialistPoolOperationMetadata: Runtime // operation metadata for SpecialistPoolService.UpdateSpecialistPool. type GoogleCloudAiplatformV1UpdateSpecialistPoolOperationMetadata struct { @@ -36249,6 +36899,37 @@ func (s *GoogleCloudAiplatformV1Value) UnmarshalJSON(data []byte) error { return nil } +// GoogleCloudAiplatformV1VertexAISearch: Retrieve from Vertex AI Search +// datastore for grounding. See +// https://cloud.google.com/vertex-ai-search-and-conversation +type GoogleCloudAiplatformV1VertexAISearch struct { + // Datastore: Required. Fully-qualified Vertex AI Search's datastore + // resource ID. projects/<>/locations/<>/collections/<>/dataStores/<> + Datastore string `json:"datastore,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Datastore") 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. "Datastore") 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 *GoogleCloudAiplatformV1VertexAISearch) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1VertexAISearch + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1VideoMetadata: Metadata describes the input // video content. type GoogleCloudAiplatformV1VideoMetadata struct { @@ -98410,14 +99091,14 @@ func (r *ProjectsLocationsNotebookRuntimesService) List(parent string) *Projects // and !=. healthState enum: [HEALTHY, UNHEALTHY, // HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. // runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, -// BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * -// `runtimeUser` supports = and !=. * API version is UI only: `uiState` -// supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, -// UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, -// UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. -// * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: -// [USER_DEFINED, ONE_CLICK]. Some examples: * -// `notebookRuntime="notebookRuntime123" * +// BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED, ERROR, +// INVALID]. * `runtimeUser` supports = and !=. * API version is UI +// only: `uiState` supports = and !=. uiState enum: +// [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, +// UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, +// UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports +// = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some +// examples: * `notebookRuntime="notebookRuntime123" * // `displayName="myDisplayName" and `displayName=~"myDisplayNameRegex" // * `notebookRuntimeTemplate="notebookRuntimeTemplate321" * // `healthState=HEALTHY` * `runtimeState=RUNNING` * @@ -98572,7 +99253,7 @@ func (c *ProjectsLocationsNotebookRuntimesListCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "filter": { - // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` * `notebookRuntimeType=USER_DEFINED`", + // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED, ERROR, INVALID]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` * `notebookRuntimeType=USER_DEFINED`", // "location": "query", // "type": "string" // }, @@ -98898,26 +99579,813 @@ func (c *ProjectsLocationsNotebookRuntimesUpgradeCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Upgrades a NotebookRuntime.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}:upgrade", + // "description": "Upgrades a NotebookRuntime.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}:upgrade", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.notebookRuntimes.upgrade", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the NotebookRuntime resource to be upgrade. Instead of checking whether the name is in valid NotebookRuntime resource name format, directly throw NotFound exception if there is no such NotebookRuntime in spanner.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:upgrade", + // "request": { + // "$ref": "GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.operations.cancel": + +type ProjectsLocationsOperationsCancelCall 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 *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{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 *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { + 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 *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { + 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 *ProjectsLocationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsCancelCall) 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, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.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 *ProjectsLocationsOperationsCancelCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:cancel", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.operations.delete": + +type ProjectsLocationsOperationsDeleteCall 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 *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { + c := &ProjectsLocationsOperationsDeleteCall{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 *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { + 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 *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { + 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 *ProjectsLocationsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsDeleteCall) 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, "v1/{+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.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 *ProjectsLocationsOperationsDeleteCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.operations.get": + +type ProjectsLocationsOperationsGetCall 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 *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{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 *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + 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 *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + 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 *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + 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 *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) 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, "v1/{+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.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 *ProjectsLocationsOperationsGetCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.operations.list": + +type ProjectsLocationsOperationsListCall 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 *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + 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 *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + 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 *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + 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 *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + 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 *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) 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, "v1/{+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.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 *ProjectsLocationsOperationsListCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.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/[^/]+$", + // "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": "v1/{+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 *ProjectsLocationsOperationsListCall) 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.operations.wait": + +type ProjectsLocationsOperationsWaitCall 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 *ProjectsLocationsOperationsService) Wait(name string) *ProjectsLocationsOperationsWaitCall { + c := &ProjectsLocationsOperationsWaitCall{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 *ProjectsLocationsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsOperationsWaitCall { + 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 *ProjectsLocationsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsWaitCall { + 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 *ProjectsLocationsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsOperationsWaitCall { + 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 *ProjectsLocationsOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsWaitCall) 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, "v1/{+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.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 *ProjectsLocationsOperationsWaitCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.notebookRuntimes.upgrade", + // "id": "aiplatform.projects.locations.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the NotebookRuntime resource to be upgrade. Instead of checking whether the name is in valid NotebookRuntime resource name format, directly throw NotFound exception if there is no such NotebookRuntime in spanner.", + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" + // }, + // "timeout": { + // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + // "format": "google-duration", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}:upgrade", - // "request": { - // "$ref": "GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest" - // }, + // "path": "v1/{+name}:wait", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -98928,38 +100396,44 @@ func (c *ProjectsLocationsNotebookRuntimesUpgradeCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.operations.cancel": +// method id "aiplatform.projects.locations.persistentResources.create": -type ProjectsLocationsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPersistentResourcesCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1persistentresource *GoogleCloudAiplatformV1PersistentResource + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. +// Create: Creates a PersistentResource. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall { - c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to create the +// PersistentResource in. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsPersistentResourcesService) Create(parent string, googlecloudaiplatformv1persistentresource *GoogleCloudAiplatformV1PersistentResource) *ProjectsLocationsPersistentResourcesCreateCall { + c := &ProjectsLocationsPersistentResourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1persistentresource = googlecloudaiplatformv1persistentresource + return c +} + +// PersistentResourceId sets the optional parameter +// "persistentResourceId": Required. The ID to use for the +// PersistentResource, which become the final component of the +// PersistentResource's resource name. The maximum length is 63 +// characters, and valid characters are `/^a-z +// ([a-z0-9-]{0,61}[a-z0-9])?$/`. +func (c *ProjectsLocationsPersistentResourcesCreateCall) PersistentResourceId(persistentResourceId string) *ProjectsLocationsPersistentResourcesCreateCall { + c.urlParams_.Set("persistentResourceId", persistentResourceId) 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 *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { +func (c *ProjectsLocationsPersistentResourcesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -98967,21 +100441,21 @@ func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *Pr // 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 *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { +func (c *ProjectsLocationsPersistentResourcesCreateCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesCreateCall { 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 *ProjectsLocationsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsPersistentResourcesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPersistentResourcesCreateCall) 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_ { @@ -98989,9 +100463,14 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1persistentresource) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/persistentResources") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -98999,19 +100478,19 @@ func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Res } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.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 +// Do executes the "aiplatform.projects.locations.persistentResources.create" 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 *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsPersistentResourcesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -99030,7 +100509,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -99042,25 +100521,33 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) } 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": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "description": "Creates a PersistentResource.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/persistentResources", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.operations.cancel", + // "id": "aiplatform.projects.locations.persistentResources.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "parent": { + // "description": "Required. The resource name of the Location to create the PersistentResource in. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "persistentResourceId": { + // "description": "Required. The ID to use for the PersistentResource, which become the final component of the PersistentResource's resource name. The maximum length is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}:cancel", + // "path": "v1/{+parent}/persistentResources", + // "request": { + // "$ref": "GoogleCloudAiplatformV1PersistentResource" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -99069,9 +100556,9 @@ func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.operations.delete": +// method id "aiplatform.projects.locations.persistentResources.delete": -type ProjectsLocationsOperationsDeleteCall struct { +type ProjectsLocationsPersistentResourcesDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -99079,14 +100566,13 @@ type ProjectsLocationsOperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes a PersistentResource. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { - c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the PersistentResource to be deleted. Format: +// `projects/{project}/locations/{location}/persistentResources/{persis +// tent_resource}`. +func (r *ProjectsLocationsPersistentResourcesService) Delete(name string) *ProjectsLocationsPersistentResourcesDeleteCall { + c := &ProjectsLocationsPersistentResourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -99094,7 +100580,7 @@ func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocati // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { +func (c *ProjectsLocationsPersistentResourcesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -99102,21 +100588,21 @@ func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *Pr // 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 *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { +func (c *ProjectsLocationsPersistentResourcesDeleteCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesDeleteCall { 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 *ProjectsLocationsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsPersistentResourcesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPersistentResourcesDeleteCall) 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_ { @@ -99139,14 +100625,14 @@ func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.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 +// Do executes the "aiplatform.projects.locations.persistentResources.delete" 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 *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsPersistentResourcesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -99165,7 +100651,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -99177,25 +100663,25 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) } 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": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "description": "Deletes a PersistentResource.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/persistentResources/{persistentResourcesId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.operations.delete", + // "id": "aiplatform.projects.locations.persistentResources.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "Required. The name of the PersistentResource to be deleted. Format: `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -99204,9 +100690,9 @@ func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.operations.get": +// method id "aiplatform.projects.locations.persistentResources.get": -type ProjectsLocationsOperationsGetCall struct { +type ProjectsLocationsPersistentResourcesGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -99215,13 +100701,13 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets a PersistentResource. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { - c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the PersistentResource resource. Format: +// `projects/{project_id_or_number}/locations/{location_id}/persistentR +// esources/{persistent_resource_id}`. +func (r *ProjectsLocationsPersistentResourcesService) Get(name string) *ProjectsLocationsPersistentResourcesGetCall { + c := &ProjectsLocationsPersistentResourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -99229,7 +100715,7 @@ func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocations // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsPersistentResourcesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -99239,7 +100725,7 @@ func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *Proje // 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 *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsPersistentResourcesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPersistentResourcesGetCall { c.ifNoneMatch_ = entityTag return c } @@ -99247,21 +100733,21 @@ func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *Proj // 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 *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsPersistentResourcesGetCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesGetCall { 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 *ProjectsLocationsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsPersistentResourcesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPersistentResourcesGetCall) 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_ { @@ -99287,14 +100773,16 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.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 *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.persistentResources.get" call. +// Exactly one of *GoogleCloudAiplatformV1PersistentResource or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1PersistentResource.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsPersistentResourcesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1PersistentResource, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -99313,7 +100801,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1PersistentResource{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -99325,25 +100813,25 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* } 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": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "description": "Gets a PersistentResource.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/persistentResources/{persistentResourcesId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.operations.get", + // "id": "aiplatform.projects.locations.persistentResources.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the PersistentResource resource. Format: `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1PersistentResource" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -99352,45 +100840,40 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* } -// method id "aiplatform.projects.locations.operations.list": +// method id "aiplatform.projects.locations.persistentResources.list": -type ProjectsLocationsOperationsListCall struct { +type ProjectsLocationsPersistentResourcesListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists PersistentResources in a Location. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { - c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("filter", filter) +// - parent: The resource name of the Location to list the +// PersistentResources from. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsPersistentResourcesService) List(parent string) *ProjectsLocationsPersistentResourcesListCall { + c := &ProjectsLocationsPersistentResourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsPersistentResourcesListCall) PageSize(pageSize int64) *ProjectsLocationsPersistentResourcesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { +// page token. Typically obtained via +// ListPersistentResourceResponse.next_page_token of the previous +// PersistentResourceService.ListPersistentResource call. +func (c *ProjectsLocationsPersistentResourcesListCall) PageToken(pageToken string) *ProjectsLocationsPersistentResourcesListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -99398,7 +100881,7 @@ func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken 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 *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsPersistentResourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -99408,7 +100891,7 @@ func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *Proj // 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 *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsPersistentResourcesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPersistentResourcesListCall { c.ifNoneMatch_ = entityTag return c } @@ -99416,21 +100899,21 @@ func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *Pro // 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 *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsPersistentResourcesListCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesListCall { 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 *ProjectsLocationsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsPersistentResourcesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPersistentResourcesListCall) 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_ { @@ -99443,7 +100926,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/persistentResources") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -99451,20 +100934,22 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// Do executes the "aiplatform.projects.locations.persistentResources.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1ListPersistentResourcesResponse 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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// *GoogleCloudAiplatformV1ListPersistentResourcesResponse.ServerResponse +// .Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsPersistentResourcesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListPersistentResourcesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -99483,7 +100968,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1ListPersistentResourcesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -99495,41 +100980,36 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } 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": "v1/projects/{projectsId}/locations/{locationsId}/operations", + // "description": "Lists PersistentResources in a Location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/persistentResources", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.operations.list", + // "id": "aiplatform.projects.locations.persistentResources.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "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/[^/]+$", - // "required": true, - // "type": "string" - // }, // "pageSize": { - // "description": "The standard list page size.", + // "description": "Optional. The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token.", + // "description": "Optional. The standard list page token. Typically obtained via ListPersistentResourceResponse.next_page_token of the previous PersistentResourceService.ListPersistentResource call.", // "location": "query", // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list the PersistentResources from. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" // } // }, - // "path": "v1/{+name}/operations", + // "path": "v1/{+parent}/persistentResources", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1ListPersistentResourcesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -99541,7 +101021,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // 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 *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsPersistentResourcesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListPersistentResourcesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -99559,47 +101039,39 @@ func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func( } } -// method id "aiplatform.projects.locations.operations.wait": +// method id "aiplatform.projects.locations.persistentResources.patch": -type ProjectsLocationsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPersistentResourcesPatchCall struct { + s *Service + name string + googlecloudaiplatformv1persistentresource *GoogleCloudAiplatformV1PersistentResource + 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. +// Patch: Updates a PersistentResource. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsOperationsService) Wait(name string) *ProjectsLocationsOperationsWaitCall { - c := &ProjectsLocationsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Immutable. Resource name of a PersistentResource. +func (r *ProjectsLocationsPersistentResourcesService) Patch(name string, googlecloudaiplatformv1persistentresource *GoogleCloudAiplatformV1PersistentResource) *ProjectsLocationsPersistentResourcesPatchCall { + c := &ProjectsLocationsPersistentResourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1persistentresource = googlecloudaiplatformv1persistentresource 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 *ProjectsLocationsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// UpdateMask sets the optional parameter "updateMask": Required. +// Specify the fields to be overwritten in the PersistentResource by the +// update method. +func (c *ProjectsLocationsPersistentResourcesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsPersistentResourcesPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsWaitCall { +func (c *ProjectsLocationsPersistentResourcesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -99607,21 +101079,21 @@ func (c *ProjectsLocationsOperationsWaitCall) Fields(s ...googleapi.Field) *Proj // 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 *ProjectsLocationsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsOperationsWaitCall { +func (c *ProjectsLocationsPersistentResourcesPatchCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesPatchCall { 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 *ProjectsLocationsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsPersistentResourcesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPersistentResourcesPatchCall) 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_ { @@ -99629,11 +101101,16 @@ func (c *ProjectsLocationsOperationsWaitCall) doRequest(alt string) (*http.Respo } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1persistentresource) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -99644,14 +101121,14 @@ func (c *ProjectsLocationsOperationsWaitCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.operations.wait" call. +// Do executes the "aiplatform.projects.locations.persistentResources.patch" 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 *ProjectsLocationsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsPersistentResourcesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -99682,29 +101159,32 @@ func (c *ProjectsLocationsOperationsWaitCall) Do(opts ...googleapi.CallOption) ( } 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": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.operations.wait", + // "description": "Updates a PersistentResource.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/persistentResources/{persistentResourcesId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.persistentResources.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "Immutable. Resource name of a PersistentResource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", // "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", + // "updateMask": { + // "description": "Required. Specify the fields to be overwritten in the PersistentResource by the update method.", + // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+name}:wait", + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1PersistentResource" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 902577da525..59ba30e19b6 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -19,6 +19,11 @@ "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/vertex-ai/", "endpoints": [ + { + "description": "Locational Endpoint", + "endpointUrl": "https://africa-south1-aiplatform.googleapis.com/", + "location": "africa-south1" + }, { "description": "Locational Endpoint", "endpointUrl": "https://asia-east1-aiplatform.googleapis.com/", @@ -119,6 +124,21 @@ "endpointUrl": "https://europe-west9-aiplatform.googleapis.com/", "location": "europe-west9" }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://europe-west12-aiplatform.googleapis.com/", + "location": "europe-west12" + }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://me-central1-aiplatform.googleapis.com/", + "location": "me-central1" + }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://me-central2-aiplatform.googleapis.com/", + "location": "me-central2" + }, { "description": "Locational Endpoint", "endpointUrl": "https://me-west1-aiplatform.googleapis.com/", @@ -188,6 +208,11 @@ "description": "Locational Endpoint", "endpointUrl": "https://us-west4-aiplatform.googleapis.com/", "location": "us-west4" + }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://us-east5-aiplatform.googleapis.com/", + "location": "us-east5" } ], "fullyEncodeReservedExpansion": true, @@ -4297,6 +4322,194 @@ } }, "extensions": { + "methods": { + "delete": { + "description": "Deletes an Extension.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.extensions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Extension resource to be deleted. Format: `projects/{project}/locations/{location}/extensions/{extension}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "execute": { + "description": "Executes the request against a given extension.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}:execute", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.extensions.execute", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name (identifier) of the extension; Format: `projects/{project}/locations/{location}/extensions/{extension}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:execute", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1ExecuteExtensionRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ExecuteExtensionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an Extension.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.extensions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Extension resource. Format: `projects/{project}/locations/{location}/extensions/{extension}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1Extension" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "import": { + "description": "Imports an Extension.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions:import", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.extensions.import", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to import the Extension in. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/extensions:import", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1Extension" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Extensions in a location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.extensions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. The standard list filter. Supported fields: * `display_name` * `create_time` * `update_time` More detail in [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `display_name` * `create_time` * `update_time` Example: `display_name, create_time desc`.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The standard list page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to list the Extensions from. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/extensions", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ListExtensionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an Extension.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.extensions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the Extension.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Mask specifying which fields to update. Supported fields: * `display_name` * `description`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1Extension" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1Extension" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { "deployments": { "resources": { @@ -12741,7 +12954,7 @@ ], "parameters": { "filter": { - "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` * `notebookRuntimeType=USER_DEFINED`", + "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED, ERROR, INVALID]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` * `notebookRuntimeType=USER_DEFINED`", "location": "query", "type": "string" }, @@ -17955,7 +18168,7 @@ } } }, - "revision": "20240301", + "revision": "20240313", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -19424,6 +19637,149 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1AuthConfig": { + "description": "Auth configuration to run the extension.", + "id": "GoogleCloudAiplatformV1beta1AuthConfig", + "properties": { + "apiKeyConfig": { + "$ref": "GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig", + "description": "Config for API key auth." + }, + "authType": { + "description": "Type of auth scheme.", + "enum": [ + "AUTH_TYPE_UNSPECIFIED", + "NO_AUTH", + "API_KEY_AUTH", + "HTTP_BASIC_AUTH", + "GOOGLE_SERVICE_ACCOUNT_AUTH", + "OAUTH", + "OIDC_AUTH" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "googleServiceAccountConfig": { + "$ref": "GoogleCloudAiplatformV1beta1AuthConfigGoogleServiceAccountConfig", + "description": "Config for Google Service Account auth." + }, + "httpBasicAuthConfig": { + "$ref": "GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig", + "description": "Config for HTTP Basic auth." + }, + "noAuth": { + "$ref": "GoogleCloudAiplatformV1beta1AuthConfigNoAuth", + "deprecated": true, + "description": "Config for no auth." + }, + "oauthConfig": { + "$ref": "GoogleCloudAiplatformV1beta1AuthConfigOauthConfig", + "description": "Config for user oauth." + }, + "oidcConfig": { + "$ref": "GoogleCloudAiplatformV1beta1AuthConfigOidcConfig", + "description": "Config for user OIDC auth." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig": { + "description": "Config for authentication with API key.", + "id": "GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig", + "properties": { + "apiKeySecret": { + "description": "Required. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}`", + "type": "string" + }, + "httpElementLocation": { + "description": "Required. The location of the API key.", + "enum": [ + "HTTP_IN_UNSPECIFIED", + "HTTP_IN_QUERY", + "HTTP_IN_HEADER", + "HTTP_IN_PATH", + "HTTP_IN_BODY", + "HTTP_IN_COOKIE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "name": { + "description": "Required. The parameter name of the API key. E.g. If the API request is \"https://example.com/act?api_key=\", \"api_key\" would be the parameter name.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1AuthConfigGoogleServiceAccountConfig": { + "description": "Config for Google Service Account Authentication.", + "id": "GoogleCloudAiplatformV1beta1AuthConfigGoogleServiceAccountConfig", + "properties": { + "serviceAccount": { + "description": "Optional. The service account that the extension execution service runs as. - If it is not specified, the Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used. - If the service account is provided, the service account should grant Vertex AI Extension Service Agent `iam.serviceAccounts.getAccessToken` permission.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig": { + "description": "Config for HTTP Basic Authentication.", + "id": "GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig", + "properties": { + "credentialSecret": { + "description": "Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1AuthConfigNoAuth": { + "description": "Empty message, used to indicate no authentication for an endpoint.", + "id": "GoogleCloudAiplatformV1beta1AuthConfigNoAuth", + "properties": {}, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1AuthConfigOauthConfig": { + "description": "Config for user oauth.", + "id": "GoogleCloudAiplatformV1beta1AuthConfigOauthConfig", + "properties": { + "accessToken": { + "description": "Access token for extension endpoint. Only used to propagate token from ExecuteExtensionRequest.runtime_auth_config at request time.", + "type": "string" + }, + "serviceAccount": { + "description": "The service account that the extension execution service will use to query extension. Used for generating OAuth token on behalf of provided service account. - If the service account is provided, the service account should grant Vertex AI Service Agent `iam.serviceAccounts.getAccessToken` permission.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1AuthConfigOidcConfig": { + "description": "Config for user OIDC auth.", + "id": "GoogleCloudAiplatformV1beta1AuthConfigOidcConfig", + "properties": { + "idToken": { + "description": "OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from ExecuteExtensionRequest.runtime_auth_config at request time.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1AutomaticResources": { "description": "A description of resources that to large degree are decided by Vertex AI, and require only a modest additional configuration. Each Model supporting these resources documents its specific guidelines.", "id": "GoogleCloudAiplatformV1beta1AutomaticResources", @@ -22169,10 +22525,6 @@ "$ref": "GoogleCloudAiplatformV1beta1PredictRequestResponseLoggingConfig", "description": "Configures the request-response logging for online prediction." }, - "privateServiceConnectConfig": { - "$ref": "GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig", - "description": "Optional. Configuration for private service connect. network and private_service_connect_config are mutually exclusive." - }, "trafficSplit": { "additionalProperties": { "format": "int32", @@ -22563,6 +22915,49 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ExecuteExtensionRequest": { + "description": "Request message for ExtensionExecutionService.ExecuteExtension.", + "id": "GoogleCloudAiplatformV1beta1ExecuteExtensionRequest", + "properties": { + "operationId": { + "description": "Required. The operation to be executed in this extension as defined in ExtensionOperation.operation_id.", + "type": "string" + }, + "operationParams": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Request parameters that will be used for executing this operation. The struct should be in a form of map with param name as the key and actual param value as the value. E.g. If this operation requires a param \"name\" to be set to \"abc\". you can set this to something like {\"name\": \"abc\"}.", + "type": "object" + }, + "runtimeAuthConfig": { + "$ref": "GoogleCloudAiplatformV1beta1AuthConfig", + "description": "Optional. Auth config provided at runtime to override the default value in Extension.manifest.auth_config. The AuthConfig.auth_type should match the value in Extension.manifest.auth_config." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1ExecuteExtensionResponse": { + "description": "Response message for ExtensionExecutionService.ExecuteExtension.", + "id": "GoogleCloudAiplatformV1beta1ExecuteExtensionResponse", + "properties": { + "content": { + "description": "Response content from the extension. The content should be conformant to the response.content schema in the extension's manifest/OpenAPI spec.", + "type": "string" + }, + "output": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "deprecated": true, + "description": "Output from the extension. The output should be conformant to the extension's manifest/OpenAPI spec. The output can contain values for keys like \"content\", \"headers\", etc. This field is deprecated, please use content field below for the extension execution result.", + "type": "object" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1Execution": { "description": "Instance of a general execution.", "id": "GoogleCloudAiplatformV1beta1Execution", @@ -23360,6 +23755,114 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1Extension": { + "description": "Extensions are tools for large language models to access external data, run computations, etc.", + "id": "GoogleCloudAiplatformV1beta1Extension", + "properties": { + "createTime": { + "description": "Output only. Timestamp when this Extension was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. The description of the Extension.", + "type": "string" + }, + "displayName": { + "description": "Required. The display name of the Extension. The name can be up to 128 characters long and can consist of any UTF-8 characters.", + "type": "string" + }, + "etag": { + "description": "Optional. Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens.", + "type": "string" + }, + "extensionOperations": { + "description": "Output only. Supported operations.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1ExtensionOperation" + }, + "readOnly": true, + "type": "array" + }, + "manifest": { + "$ref": "GoogleCloudAiplatformV1beta1ExtensionManifest", + "description": "Required. Manifest of the Extension." + }, + "name": { + "description": "Identifier. The resource name of the Extension.", + "type": "string" + }, + "toolUseExamples": { + "description": "Optional. Examples to illustrate the usage of the extension as a tool.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1ToolUseExample" + }, + "type": "array" + }, + "updateTime": { + "description": "Output only. Timestamp when this Extension was most recently updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1ExtensionManifest": { + "description": "Manifest spec of an Extension needed for runtime execution.", + "id": "GoogleCloudAiplatformV1beta1ExtensionManifest", + "properties": { + "apiSpec": { + "$ref": "GoogleCloudAiplatformV1beta1ExtensionManifestApiSpec", + "description": "Required. Immutable. The API specification shown to the LLM." + }, + "authConfig": { + "$ref": "GoogleCloudAiplatformV1beta1AuthConfig", + "description": "Required. Immutable. Type of auth supported by this extension." + }, + "description": { + "description": "Required. The natural language description shown to the LLM. It should describe the usage of the extension, and is essential for the LLM to perform reasoning.", + "type": "string" + }, + "name": { + "description": "Required. Extension name shown to the LLM. The name can be up to 128 characters long.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1ExtensionManifestApiSpec": { + "description": "The API specification shown to the LLM.", + "id": "GoogleCloudAiplatformV1beta1ExtensionManifestApiSpec", + "properties": { + "openApiGcsUri": { + "description": "Cloud Storage URI pointing to the OpenAPI spec.", + "type": "string" + }, + "openApiYaml": { + "description": "The API spec in Open API standard and YAML format.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1ExtensionOperation": { + "description": "Operation of an extension.", + "id": "GoogleCloudAiplatformV1beta1ExtensionOperation", + "properties": { + "functionDeclaration": { + "$ref": "GoogleCloudAiplatformV1beta1FunctionDeclaration", + "description": "Output only. Structured representation of a function declaration as defined by the OpenAPI Spec.", + "readOnly": true + }, + "operationId": { + "description": "Operation ID that uniquely identifies the operations among the extension. See: \"Operation Object\" in https://swagger.io/specification/. This field is parsed from the OpenAPI spec. For HTTP extensions, if it does not exist in the spec, we will generate one from the HTTP method and path.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1Feature": { "description": "Feature Metadata information. For example, color is a feature that describes an apple.", "id": "GoogleCloudAiplatformV1beta1Feature", @@ -24081,7 +24584,7 @@ "description": "Optional. Configuration options for using brute force search, which simply implements the standard linear search in the database for each query. It is primarily meant for benchmarking and to generate the ground truth for approximate search." }, "crowdingColumn": { - "description": "Optional. Column of crowding. This column contains crowding attribute which is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than some value k' of the k neighbors returned have the same value of crowding_attribute.", + "description": "Optional. Column of crowding. This column contains crowding attribute which is a constraint on a neighbor list produced by FeatureOnlineStoreService.SearchNearestEntities to diversify search results. If NearestNeighborQuery.per_crowding_attribute_neighbor_count is set to K in SearchNearestEntitiesRequest, it's guaranteed that no more than K entities of the same crowding attribute are returned in the response.", "type": "string" }, "distanceMeasureType": { @@ -24619,12 +25122,12 @@ "type": "string" }, "name": { - "description": "Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.", + "description": "Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots and dashes, with a maximum length of 64.", "type": "string" }, "parameters": { "$ref": "GoogleCloudAiplatformV1beta1Schema", - "description": "Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1" + "description": "Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1" } }, "type": "object" @@ -24730,6 +25233,13 @@ }, "type": "array" }, + "systemInstructions": { + "description": "Optional. The user provided system instructions for the model.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1Content" + }, + "type": "array" + }, "tools": { "description": "Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.", "items": { @@ -26061,6 +26571,24 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ListExtensionsResponse": { + "description": "Response message for ExtensionRegistryService.ListExtensions", + "id": "GoogleCloudAiplatformV1beta1ListExtensionsResponse", + "properties": { + "extensions": { + "description": "List of Extension in the requested page.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1Extension" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token to retrieve the next page of results. Pass to ListExtensionsRequest.page_token to obtain that page.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse": { "description": "Response message for FeatureRegistryService.ListFeatureGroups.", "id": "GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse", @@ -29114,7 +29642,9 @@ "BEING_STARTED", "BEING_STOPPED", "STOPPED", - "BEING_UPGRADED" + "BEING_UPGRADED", + "ERROR", + "INVALID" ], "enumDescriptions": [ "Unspecified runtime state.", @@ -29122,7 +29652,9 @@ "NotebookRuntime is in starting state.", "NotebookRuntime is in stopping state.", "NotebookRuntime is in stopped state.", - "NotebookRuntime is in upgrading state. It is in the middle of upgrading process." + "NotebookRuntime is in upgrading state. It is in the middle of upgrading process.", + "NotebookRuntime was unable to start/stop properly.", + "NotebookRuntime is in invalid state. Cannot be recovered." ], "readOnly": true, "type": "string" @@ -30939,6 +31471,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata": { + "description": "Details of operations that perform reboot PersistentResource.", + "id": "GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1beta1GenericOperationMetadata", + "description": "Operation metadata for PersistentResource." + }, + "progressMessage": { + "description": "Progress Message for Reboot LRO", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest": { "description": "Request message for MetadataService.DeleteContextChildrenRequest.", "id": "GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest", @@ -31319,6 +31866,20 @@ ], "type": "string" }, + "method": { + "description": "Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score.", + "enum": [ + "HARM_BLOCK_METHOD_UNSPECIFIED", + "SEVERITY", + "PROBABILITY" + ], + "enumDescriptions": [ + "The harm block method is unspecified.", + "The harm block method uses both probability and severity scores.", + "The harm block method uses the probability score." + ], + "type": "string" + }, "threshold": { "description": "Required. The harm block threshold.", "enum": [ @@ -36905,6 +37466,64 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ToolUseExample": { + "description": "A single example of the tool usage.", + "id": "GoogleCloudAiplatformV1beta1ToolUseExample", + "properties": { + "displayName": { + "description": "Required. The display name for example.", + "type": "string" + }, + "extensionOperation": { + "$ref": "GoogleCloudAiplatformV1beta1ToolUseExampleExtensionOperation", + "description": "Extension operation to call." + }, + "functionName": { + "description": "Function name to call.", + "type": "string" + }, + "query": { + "description": "Required. Query that should be routed to this tool.", + "type": "string" + }, + "requestParams": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Request parameters used for executing this tool.", + "type": "object" + }, + "responseParams": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Response parameters generated by this tool.", + "type": "object" + }, + "responseSummary": { + "description": "Summary of the tool response to the user query.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1ToolUseExampleExtensionOperation": { + "description": "Identifies one operation of the extension.", + "id": "GoogleCloudAiplatformV1beta1ToolUseExampleExtensionOperation", + "properties": { + "extension": { + "description": "Resource name of the extension.", + "type": "string" + }, + "operationId": { + "description": "Required. Operation ID of the extension.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1TrainingConfig": { "description": "CMLE training config. For every active learning labeling iteration, system will train a machine learning model on CMLE. The trained model will be used by data sampling algorithm to select DataItems.", "id": "GoogleCloudAiplatformV1beta1TrainingConfig", diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index 1abc8a4bb5a..7239c1316a4 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -3784,6 +3784,251 @@ func (s *GoogleCloudAiplatformV1beta1Attribution) UnmarshalJSON(data []byte) err return nil } +// GoogleCloudAiplatformV1beta1AuthConfig: Auth configuration to run the +// extension. +type GoogleCloudAiplatformV1beta1AuthConfig struct { + // ApiKeyConfig: Config for API key auth. + ApiKeyConfig *GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig `json:"apiKeyConfig,omitempty"` + + // AuthType: Type of auth scheme. + // + // Possible values: + // "AUTH_TYPE_UNSPECIFIED" + // "NO_AUTH" + // "API_KEY_AUTH" + // "HTTP_BASIC_AUTH" + // "GOOGLE_SERVICE_ACCOUNT_AUTH" + // "OAUTH" + // "OIDC_AUTH" + AuthType string `json:"authType,omitempty"` + + // GoogleServiceAccountConfig: Config for Google Service Account auth. + GoogleServiceAccountConfig *GoogleCloudAiplatformV1beta1AuthConfigGoogleServiceAccountConfig `json:"googleServiceAccountConfig,omitempty"` + + // HttpBasicAuthConfig: Config for HTTP Basic auth. + HttpBasicAuthConfig *GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig `json:"httpBasicAuthConfig,omitempty"` + + // NoAuth: Config for no auth. + NoAuth *GoogleCloudAiplatformV1beta1AuthConfigNoAuth `json:"noAuth,omitempty"` + + // OauthConfig: Config for user oauth. + OauthConfig *GoogleCloudAiplatformV1beta1AuthConfigOauthConfig `json:"oauthConfig,omitempty"` + + // OidcConfig: Config for user OIDC auth. + OidcConfig *GoogleCloudAiplatformV1beta1AuthConfigOidcConfig `json:"oidcConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiKeyConfig") 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. "ApiKeyConfig") 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 *GoogleCloudAiplatformV1beta1AuthConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1AuthConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig: Config for +// authentication with API key. +type GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig struct { + // ApiKeySecret: Required. The name of the SecretManager secret version + // resource storing the API key. Format: + // `projects/{project}/secrets/{secrete}/versions/{version}` + ApiKeySecret string `json:"apiKeySecret,omitempty"` + + // HttpElementLocation: Required. The location of the API key. + // + // Possible values: + // "HTTP_IN_UNSPECIFIED" + // "HTTP_IN_QUERY" + // "HTTP_IN_HEADER" + // "HTTP_IN_PATH" + // "HTTP_IN_BODY" + // "HTTP_IN_COOKIE" + HttpElementLocation string `json:"httpElementLocation,omitempty"` + + // Name: Required. The parameter name of the API key. E.g. If the API + // request is "https://example.com/act?api_key=", "api_key" would be the + // parameter name. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiKeySecret") 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. "ApiKeySecret") 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 *GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1AuthConfigGoogleServiceAccountConfig: +// Config for Google Service Account Authentication. +type GoogleCloudAiplatformV1beta1AuthConfigGoogleServiceAccountConfig struct { + // ServiceAccount: Optional. The service account that the extension + // execution service runs as. - If it is not specified, the Vertex AI + // Extension Service Agent + // (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) + // will be used. - If the service account is provided, the service + // account should grant Vertex AI Extension Service Agent + // `iam.serviceAccounts.getAccessToken` permission. + ServiceAccount string `json:"serviceAccount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ServiceAccount") 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. "ServiceAccount") 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 *GoogleCloudAiplatformV1beta1AuthConfigGoogleServiceAccountConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1AuthConfigGoogleServiceAccountConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig: Config for +// HTTP Basic Authentication. +type GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig struct { + // CredentialSecret: Required. The name of the SecretManager secret + // version resource storing the base64 encoded credentials. Format: + // `projects/{project}/secrets/{secrete}/versions/{version}` + CredentialSecret string `json:"credentialSecret,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CredentialSecret") 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. "CredentialSecret") 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 *GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1AuthConfigNoAuth: Empty message, used to +// indicate no authentication for an endpoint. +type GoogleCloudAiplatformV1beta1AuthConfigNoAuth struct { +} + +// GoogleCloudAiplatformV1beta1AuthConfigOauthConfig: Config for user +// oauth. +type GoogleCloudAiplatformV1beta1AuthConfigOauthConfig struct { + // AccessToken: Access token for extension endpoint. Only used to + // propagate token from ExecuteExtensionRequest.runtime_auth_config at + // request time. + AccessToken string `json:"accessToken,omitempty"` + + // ServiceAccount: The service account that the extension execution + // service will use to query extension. Used for generating OAuth token + // on behalf of provided service account. - If the service account is + // provided, the service account should grant Vertex AI Service Agent + // `iam.serviceAccounts.getAccessToken` permission. + ServiceAccount string `json:"serviceAccount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AccessToken") 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. "AccessToken") 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 *GoogleCloudAiplatformV1beta1AuthConfigOauthConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1AuthConfigOauthConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1AuthConfigOidcConfig: Config for user +// OIDC auth. +type GoogleCloudAiplatformV1beta1AuthConfigOidcConfig struct { + // IdToken: OpenID Connect formatted ID token for extension endpoint. + // Only used to propagate token from + // ExecuteExtensionRequest.runtime_auth_config at request time. + IdToken string `json:"idToken,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IdToken") 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. "IdToken") 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 *GoogleCloudAiplatformV1beta1AuthConfigOidcConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1AuthConfigOidcConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1AutomaticResources: A description of // resources that to large degree are decided by Vertex AI, and require // only a modest additional configuration. Each Model supporting these @@ -9127,11 +9372,6 @@ type GoogleCloudAiplatformV1beta1Endpoint struct { // logging for online prediction. PredictRequestResponseLoggingConfig *GoogleCloudAiplatformV1beta1PredictRequestResponseLoggingConfig `json:"predictRequestResponseLoggingConfig,omitempty"` - // PrivateServiceConnectConfig: Optional. Configuration for private - // service connect. network and private_service_connect_config are - // mutually exclusive. - PrivateServiceConnectConfig *GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig `json:"privateServiceConnectConfig,omitempty"` - // TrafficSplit: A map from a DeployedModel's ID to the percentage of // this Endpoint's traffic that should be forwarded to that // DeployedModel. If a DeployedModel's ID is not listed in this map, @@ -9792,6 +10032,90 @@ func (s *GoogleCloudAiplatformV1beta1ExamplesRestrictionsNamespace) MarshalJSON( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ExecuteExtensionRequest: Request message +// for ExtensionExecutionService.ExecuteExtension. +type GoogleCloudAiplatformV1beta1ExecuteExtensionRequest struct { + // OperationId: Required. The operation to be executed in this extension + // as defined in ExtensionOperation.operation_id. + OperationId string `json:"operationId,omitempty"` + + // OperationParams: Optional. Request parameters that will be used for + // executing this operation. The struct should be in a form of map with + // param name as the key and actual param value as the value. E.g. If + // this operation requires a param "name" to be set to "abc". you can + // set this to something like {"name": "abc"}. + OperationParams googleapi.RawMessage `json:"operationParams,omitempty"` + + // RuntimeAuthConfig: Optional. Auth config provided at runtime to + // override the default value in Extension.manifest.auth_config. The + // AuthConfig.auth_type should match the value in + // Extension.manifest.auth_config. + RuntimeAuthConfig *GoogleCloudAiplatformV1beta1AuthConfig `json:"runtimeAuthConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OperationId") 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. "OperationId") 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 *GoogleCloudAiplatformV1beta1ExecuteExtensionRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ExecuteExtensionRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1ExecuteExtensionResponse: Response +// message for ExtensionExecutionService.ExecuteExtension. +type GoogleCloudAiplatformV1beta1ExecuteExtensionResponse struct { + // Content: Response content from the extension. The content should be + // conformant to the response.content schema in the extension's + // manifest/OpenAPI spec. + Content string `json:"content,omitempty"` + + // Output: Output from the extension. The output should be conformant to + // the extension's manifest/OpenAPI spec. The output can contain values + // for keys like "content", "headers", etc. This field is deprecated, + // please use content field below for the extension execution result. + Output googleapi.RawMessage `json:"output,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Content") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "Content") 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 *GoogleCloudAiplatformV1beta1ExecuteExtensionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ExecuteExtensionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1Execution: Instance of a general // execution. type GoogleCloudAiplatformV1beta1Execution struct { @@ -11321,103 +11645,277 @@ func (s *GoogleCloudAiplatformV1beta1ExportTensorboardTimeSeriesDataResponse) Ma return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1Feature: Feature Metadata information. -// For example, color is a feature that describes an apple. -type GoogleCloudAiplatformV1beta1Feature struct { - // CreateTime: Output only. Only applicable for Vertex AI Feature Store - // (Legacy). Timestamp when this EntityType was created. +// GoogleCloudAiplatformV1beta1Extension: Extensions are tools for large +// language models to access external data, run computations, etc. +type GoogleCloudAiplatformV1beta1Extension struct { + // CreateTime: Output only. Timestamp when this Extension was created. CreateTime string `json:"createTime,omitempty"` - // Description: Description of the Feature. + // Description: Optional. The description of the Extension. Description string `json:"description,omitempty"` - // DisableMonitoring: Optional. Only applicable for Vertex AI Feature - // Store (Legacy). If not set, use the monitoring_config defined for the - // EntityType this Feature belongs to. Only Features with type - // (Feature.ValueType) BOOL, STRING, DOUBLE or INT64 can enable - // monitoring. If set to true, all types of data monitoring are disabled - // despite the config on EntityType. - DisableMonitoring bool `json:"disableMonitoring,omitempty"` + // DisplayName: Required. The display name of the Extension. The name + // can be up to 128 characters long and can consist of any UTF-8 + // characters. + DisplayName string `json:"displayName,omitempty"` - // Etag: Used to perform a consistent read-modify-write updates. If not - // set, a blind "overwrite" update happens. + // Etag: Optional. Used to perform consistent read-modify-write updates. + // If not set, a blind "overwrite" update happens. Etag string `json:"etag,omitempty"` - // Labels: Optional. The labels with user-defined metadata to organize - // your Features. Label keys and values can be no longer than 64 - // characters (Unicode codepoints), can only contain lowercase letters, - // numeric characters, underscores and dashes. International characters - // are allowed. See https://goo.gl/xmQnxf for more information on and - // examples of labels. No more than 64 user labels can be associated - // with one Feature (System labels are excluded)." System reserved label - // keys are prefixed with "aiplatform.googleapis.com/" and are - // immutable. - Labels map[string]string `json:"labels,omitempty"` - - // MonitoringConfig: Optional. Only applicable for Vertex AI Feature - // Store (Legacy). Deprecated: The custom monitoring configuration for - // this Feature, if not set, use the monitoring_config defined for the - // EntityType this Feature belongs to. Only Features with type - // (Feature.ValueType) BOOL, STRING, DOUBLE or INT64 can enable - // monitoring. If this is populated with - // FeaturestoreMonitoringConfig.disabled = true, snapshot analysis - // monitoring is disabled; if - // FeaturestoreMonitoringConfig.monitoring_interval specified, snapshot - // analysis monitoring is enabled. Otherwise, snapshot analysis - // monitoring config is same as the EntityType's this Feature belongs - // to. - MonitoringConfig *GoogleCloudAiplatformV1beta1FeaturestoreMonitoringConfig `json:"monitoringConfig,omitempty"` - - // MonitoringStats: Output only. Only applicable for Vertex AI Feature - // Store (Legacy). A list of historical SnapshotAnalysis stats requested - // by user, sorted by FeatureStatsAnomaly.start_time descending. - MonitoringStats []*GoogleCloudAiplatformV1beta1FeatureStatsAnomaly `json:"monitoringStats,omitempty"` + // ExtensionOperations: Output only. Supported operations. + ExtensionOperations []*GoogleCloudAiplatformV1beta1ExtensionOperation `json:"extensionOperations,omitempty"` - // MonitoringStatsAnomalies: Output only. Only applicable for Vertex AI - // Feature Store (Legacy). The list of historical stats and anomalies - // with specified objectives. - MonitoringStatsAnomalies []*GoogleCloudAiplatformV1beta1FeatureMonitoringStatsAnomaly `json:"monitoringStatsAnomalies,omitempty"` + // Manifest: Required. Manifest of the Extension. + Manifest *GoogleCloudAiplatformV1beta1ExtensionManifest `json:"manifest,omitempty"` - // Name: Immutable. Name of the Feature. Format: - // `projects/{project}/locations/{location}/featurestores/{featurestore}/ - // entityTypes/{entity_type}/features/{feature}` - // `projects/{project}/locations/{location}/featureGroups/{feature_group} - // /features/{feature}` The last part feature is assigned by the client. - // The feature can be up to 64 characters long and can consist only of - // ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 - // starting with a letter. The value will be unique given an entity - // type. + // Name: Identifier. The resource name of the Extension. Name string `json:"name,omitempty"` - // PointOfContact: Entity responsible for maintaining this feature. Can - // be comma separated list of email addresses or URIs. - PointOfContact string `json:"pointOfContact,omitempty"` + // ToolUseExamples: Optional. Examples to illustrate the usage of the + // extension as a tool. + ToolUseExamples []*GoogleCloudAiplatformV1beta1ToolUseExample `json:"toolUseExamples,omitempty"` - // UpdateTime: Output only. Only applicable for Vertex AI Feature Store - // (Legacy). Timestamp when this EntityType was most recently updated. + // UpdateTime: Output only. Timestamp when this Extension was most + // recently updated. UpdateTime string `json:"updateTime,omitempty"` - // ValueType: Immutable. Only applicable for Vertex AI Feature Store - // (Legacy). Type of Feature value. - // - // Possible values: - // "VALUE_TYPE_UNSPECIFIED" - The value type is unspecified. - // "BOOL" - Used for Feature that is a boolean. - // "BOOL_ARRAY" - Used for Feature that is a list of boolean. - // "DOUBLE" - Used for Feature that is double. - // "DOUBLE_ARRAY" - Used for Feature that is a list of double. - // "INT64" - Used for Feature that is INT64. - // "INT64_ARRAY" - Used for Feature that is a list of INT64. - // "STRING" - Used for Feature that is string. - // "STRING_ARRAY" - Used for Feature that is a list of String. - // "BYTES" - Used for Feature that is bytes. - ValueType string `json:"valueType,omitempty"` - - // VersionColumnName: Only applicable for Vertex AI Feature Store. The - // name of the BigQuery Table/View column hosting data for this version. - // If no value is provided, will use feature_id. - VersionColumnName string `json:"versionColumnName,omitempty"` - + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. 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. "CreateTime") 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 *GoogleCloudAiplatformV1beta1Extension) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1Extension + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1ExtensionManifest: Manifest spec of an +// Extension needed for runtime execution. +type GoogleCloudAiplatformV1beta1ExtensionManifest struct { + // ApiSpec: Required. Immutable. The API specification shown to the LLM. + ApiSpec *GoogleCloudAiplatformV1beta1ExtensionManifestApiSpec `json:"apiSpec,omitempty"` + + // AuthConfig: Required. Immutable. Type of auth supported by this + // extension. + AuthConfig *GoogleCloudAiplatformV1beta1AuthConfig `json:"authConfig,omitempty"` + + // Description: Required. The natural language description shown to the + // LLM. It should describe the usage of the extension, and is essential + // for the LLM to perform reasoning. + Description string `json:"description,omitempty"` + + // Name: Required. Extension name shown to the LLM. The name can be up + // to 128 characters long. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiSpec") 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. "ApiSpec") 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 *GoogleCloudAiplatformV1beta1ExtensionManifest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ExtensionManifest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1ExtensionManifestApiSpec: The API +// specification shown to the LLM. +type GoogleCloudAiplatformV1beta1ExtensionManifestApiSpec struct { + // OpenApiGcsUri: Cloud Storage URI pointing to the OpenAPI spec. + OpenApiGcsUri string `json:"openApiGcsUri,omitempty"` + + // OpenApiYaml: The API spec in Open API standard and YAML format. + OpenApiYaml string `json:"openApiYaml,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OpenApiGcsUri") 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. "OpenApiGcsUri") 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 *GoogleCloudAiplatformV1beta1ExtensionManifestApiSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ExtensionManifestApiSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1ExtensionOperation: Operation of an +// extension. +type GoogleCloudAiplatformV1beta1ExtensionOperation struct { + // FunctionDeclaration: Output only. Structured representation of a + // function declaration as defined by the OpenAPI Spec. + FunctionDeclaration *GoogleCloudAiplatformV1beta1FunctionDeclaration `json:"functionDeclaration,omitempty"` + + // OperationId: Operation ID that uniquely identifies the operations + // among the extension. See: "Operation Object" in + // https://swagger.io/specification/. This field is parsed from the + // OpenAPI spec. For HTTP extensions, if it does not exist in the spec, + // we will generate one from the HTTP method and path. + OperationId string `json:"operationId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FunctionDeclaration") + // 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. "FunctionDeclaration") 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 *GoogleCloudAiplatformV1beta1ExtensionOperation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ExtensionOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1Feature: Feature Metadata information. +// For example, color is a feature that describes an apple. +type GoogleCloudAiplatformV1beta1Feature struct { + // CreateTime: Output only. Only applicable for Vertex AI Feature Store + // (Legacy). Timestamp when this EntityType was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Description of the Feature. + Description string `json:"description,omitempty"` + + // DisableMonitoring: Optional. Only applicable for Vertex AI Feature + // Store (Legacy). If not set, use the monitoring_config defined for the + // EntityType this Feature belongs to. Only Features with type + // (Feature.ValueType) BOOL, STRING, DOUBLE or INT64 can enable + // monitoring. If set to true, all types of data monitoring are disabled + // despite the config on EntityType. + DisableMonitoring bool `json:"disableMonitoring,omitempty"` + + // Etag: Used to perform a consistent read-modify-write updates. If not + // set, a blind "overwrite" update happens. + Etag string `json:"etag,omitempty"` + + // Labels: Optional. The labels with user-defined metadata to organize + // your Features. Label keys and values can be no longer than 64 + // characters (Unicode codepoints), can only contain lowercase letters, + // numeric characters, underscores and dashes. International characters + // are allowed. See https://goo.gl/xmQnxf for more information on and + // examples of labels. No more than 64 user labels can be associated + // with one Feature (System labels are excluded)." System reserved label + // keys are prefixed with "aiplatform.googleapis.com/" and are + // immutable. + Labels map[string]string `json:"labels,omitempty"` + + // MonitoringConfig: Optional. Only applicable for Vertex AI Feature + // Store (Legacy). Deprecated: The custom monitoring configuration for + // this Feature, if not set, use the monitoring_config defined for the + // EntityType this Feature belongs to. Only Features with type + // (Feature.ValueType) BOOL, STRING, DOUBLE or INT64 can enable + // monitoring. If this is populated with + // FeaturestoreMonitoringConfig.disabled = true, snapshot analysis + // monitoring is disabled; if + // FeaturestoreMonitoringConfig.monitoring_interval specified, snapshot + // analysis monitoring is enabled. Otherwise, snapshot analysis + // monitoring config is same as the EntityType's this Feature belongs + // to. + MonitoringConfig *GoogleCloudAiplatformV1beta1FeaturestoreMonitoringConfig `json:"monitoringConfig,omitempty"` + + // MonitoringStats: Output only. Only applicable for Vertex AI Feature + // Store (Legacy). A list of historical SnapshotAnalysis stats requested + // by user, sorted by FeatureStatsAnomaly.start_time descending. + MonitoringStats []*GoogleCloudAiplatformV1beta1FeatureStatsAnomaly `json:"monitoringStats,omitempty"` + + // MonitoringStatsAnomalies: Output only. Only applicable for Vertex AI + // Feature Store (Legacy). The list of historical stats and anomalies + // with specified objectives. + MonitoringStatsAnomalies []*GoogleCloudAiplatformV1beta1FeatureMonitoringStatsAnomaly `json:"monitoringStatsAnomalies,omitempty"` + + // Name: Immutable. Name of the Feature. Format: + // `projects/{project}/locations/{location}/featurestores/{featurestore}/ + // entityTypes/{entity_type}/features/{feature}` + // `projects/{project}/locations/{location}/featureGroups/{feature_group} + // /features/{feature}` The last part feature is assigned by the client. + // The feature can be up to 64 characters long and can consist only of + // ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 + // starting with a letter. The value will be unique given an entity + // type. + Name string `json:"name,omitempty"` + + // PointOfContact: Entity responsible for maintaining this feature. Can + // be comma separated list of email addresses or URIs. + PointOfContact string `json:"pointOfContact,omitempty"` + + // UpdateTime: Output only. Only applicable for Vertex AI Feature Store + // (Legacy). Timestamp when this EntityType was most recently updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ValueType: Immutable. Only applicable for Vertex AI Feature Store + // (Legacy). Type of Feature value. + // + // Possible values: + // "VALUE_TYPE_UNSPECIFIED" - The value type is unspecified. + // "BOOL" - Used for Feature that is a boolean. + // "BOOL_ARRAY" - Used for Feature that is a list of boolean. + // "DOUBLE" - Used for Feature that is double. + // "DOUBLE_ARRAY" - Used for Feature that is a list of double. + // "INT64" - Used for Feature that is INT64. + // "INT64_ARRAY" - Used for Feature that is a list of INT64. + // "STRING" - Used for Feature that is string. + // "STRING_ARRAY" - Used for Feature that is a list of String. + // "BYTES" - Used for Feature that is bytes. + ValueType string `json:"valueType,omitempty"` + + // VersionColumnName: Only applicable for Vertex AI Feature Store. The + // name of the BigQuery Table/View column hosting data for this version. + // If no value is provided, will use feature_id. + VersionColumnName string `json:"versionColumnName,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -12631,9 +13129,12 @@ type GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfig struct { // CrowdingColumn: Optional. Column of crowding. This column contains // crowding attribute which is a constraint on a neighbor list produced - // by nearest neighbor search requiring that no more than some value k' - // of the k neighbors returned have the same value of - // crowding_attribute. + // by FeatureOnlineStoreService.SearchNearestEntities to diversify + // search results. If + // NearestNeighborQuery.per_crowding_attribute_neighbor_count is set to + // K in SearchNearestEntitiesRequest, it's guaranteed that no more than + // K entities of the same crowding attribute are returned in the + // response. CrowdingColumn string `json:"crowdingColumn,omitempty"` // DistanceMeasureType: Optional. The distance measure used in nearest @@ -13720,7 +14221,7 @@ type GoogleCloudAiplatformV1beta1FunctionDeclaration struct { // Name: Required. The name of the function to call. Must start with a // letter or an underscore. Must be a-z, A-Z, 0-9, or contain - // underscores and dashes, with a maximum length of 64. + // underscores, dots and dashes, with a maximum length of 64. Name string `json:"name,omitempty"` // Parameters: Optional. Describes the parameters to this function in @@ -13728,9 +14229,11 @@ type GoogleCloudAiplatformV1beta1FunctionDeclaration struct { // Object. string Key: the name of the parameter. Parameter names are // case sensitive. Schema Value: the Schema defining the type used for // the parameter. For function with no parameters, this can be left - // unset. Example with 1 required and 1 optional parameter: type: OBJECT - // properties: param1: type: STRING param2: type: INTEGER required: - - // param1 + // unset. Parameter names must start with a letter or an underscore and + // must only contain chars a-z, A-Z, 0-9, or underscores with a maximum + // length of 64. Example with 1 required and 1 optional parameter: type: + // OBJECT properties: param1: type: STRING param2: type: INTEGER + // required: - param1 Parameters *GoogleCloudAiplatformV1beta1Schema `json:"parameters,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to @@ -13951,6 +14454,10 @@ type GoogleCloudAiplatformV1beta1GenerateContentRequest struct { // content. Enforced on GenerateContentResponse.candidates. SafetySettings []*GoogleCloudAiplatformV1beta1SafetySetting `json:"safetySettings,omitempty"` + // SystemInstructions: Optional. The user provided system instructions + // for the model. + SystemInstructions []*GoogleCloudAiplatformV1beta1Content `json:"systemInstructions,omitempty"` + // Tools: Optional. A list of `Tools` the model may use to generate the // next response. A `Tool` is a piece of code that enables the system to // interact with external systems to perform an action, or set of @@ -16243,6 +16750,43 @@ func (s *GoogleCloudAiplatformV1beta1ListExecutionsResponse) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ListExtensionsResponse: Response message +// for ExtensionRegistryService.ListExtensions +type GoogleCloudAiplatformV1beta1ListExtensionsResponse struct { + // Extensions: List of Extension in the requested page. + Extensions []*GoogleCloudAiplatformV1beta1Extension `json:"extensions,omitempty"` + + // NextPageToken: A token to retrieve the next page of results. Pass to + // ListExtensionsRequest.page_token to obtain that page. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Extensions") 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. "Extensions") 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 *GoogleCloudAiplatformV1beta1ListExtensionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ListExtensionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse: Response // message for FeatureRegistryService.ListFeatureGroups. type GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse struct { @@ -21818,6 +22362,9 @@ type GoogleCloudAiplatformV1beta1NotebookRuntime struct { // "STOPPED" - NotebookRuntime is in stopped state. // "BEING_UPGRADED" - NotebookRuntime is in upgrading state. It is in // the middle of upgrading process. + // "ERROR" - NotebookRuntime was unable to start/stop properly. + // "INVALID" - NotebookRuntime is in invalid state. Cannot be + // recovered. RuntimeState string `json:"runtimeState,omitempty"` // RuntimeUser: Required. The user email of the NotebookRuntime. @@ -24893,6 +25440,40 @@ func (s *GoogleCloudAiplatformV1beta1ReadTensorboardUsageResponsePerUserUsageDat return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata: +// +// Details of operations that perform reboot PersistentResource. +type GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata struct { + // GenericMetadata: Operation metadata for PersistentResource. + GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ProgressMessage: Progress Message for Reboot LRO + ProgressMessage string `json:"progressMessage,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 *GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest: Request // message for MetadataService.DeleteContextChildrenRequest. type GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest struct { @@ -25515,6 +26096,18 @@ type GoogleCloudAiplatformV1beta1SafetySetting struct { // explicit content. Category string `json:"category,omitempty"` + // Method: Optional. Specify if the threshold is used for probability or + // severity score. If not specified, the threshold is used for + // probability score. + // + // Possible values: + // "HARM_BLOCK_METHOD_UNSPECIFIED" - The harm block method is + // unspecified. + // "SEVERITY" - The harm block method uses both probability and + // severity scores. + // "PROBABILITY" - The harm block method uses the probability score. + Method string `json:"method,omitempty"` + // Threshold: Required. The harm block threshold. // // Possible values: @@ -36624,6 +37217,85 @@ func (s *GoogleCloudAiplatformV1beta1Tool) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ToolUseExample: A single example of the +// tool usage. +type GoogleCloudAiplatformV1beta1ToolUseExample struct { + // DisplayName: Required. The display name for example. + DisplayName string `json:"displayName,omitempty"` + + // ExtensionOperation: Extension operation to call. + ExtensionOperation *GoogleCloudAiplatformV1beta1ToolUseExampleExtensionOperation `json:"extensionOperation,omitempty"` + + // FunctionName: Function name to call. + FunctionName string `json:"functionName,omitempty"` + + // Query: Required. Query that should be routed to this tool. + Query string `json:"query,omitempty"` + + // RequestParams: Request parameters used for executing this tool. + RequestParams googleapi.RawMessage `json:"requestParams,omitempty"` + + // ResponseParams: Response parameters generated by this tool. + ResponseParams googleapi.RawMessage `json:"responseParams,omitempty"` + + // ResponseSummary: Summary of the tool response to the user query. + ResponseSummary string `json:"responseSummary,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") 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. "DisplayName") 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 *GoogleCloudAiplatformV1beta1ToolUseExample) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ToolUseExample + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1ToolUseExampleExtensionOperation: +// Identifies one operation of the extension. +type GoogleCloudAiplatformV1beta1ToolUseExampleExtensionOperation struct { + // Extension: Resource name of the extension. + Extension string `json:"extension,omitempty"` + + // OperationId: Required. Operation ID of the extension. + OperationId string `json:"operationId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Extension") 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. "Extension") 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 *GoogleCloudAiplatformV1beta1ToolUseExampleExtensionOperation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ToolUseExampleExtensionOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1TrainingConfig: CMLE training config. For // every active learning labeling iteration, system will train a machine // learning model on CMLE. The trained model will be used by data @@ -61825,9 +62497,655 @@ 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}/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.evaluationTasks.operations.delete": + +type ProjectsLocationsEvaluationTasksOperationsDeleteCall 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 *ProjectsLocationsEvaluationTasksOperationsService) Delete(name string) *ProjectsLocationsEvaluationTasksOperationsDeleteCall { + c := &ProjectsLocationsEvaluationTasksOperationsDeleteCall{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 *ProjectsLocationsEvaluationTasksOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationTasksOperationsDeleteCall { + 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 *ProjectsLocationsEvaluationTasksOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEvaluationTasksOperationsDeleteCall { + 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 *ProjectsLocationsEvaluationTasksOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluationTasksOperationsDeleteCall) 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.evaluationTasks.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 *ProjectsLocationsEvaluationTasksOperationsDeleteCall) 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}/evaluationTasks/{evaluationTasksId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.evaluationTasks.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/evaluationTasks/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.evaluationTasks.operations.get": + +type ProjectsLocationsEvaluationTasksOperationsGetCall 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 *ProjectsLocationsEvaluationTasksOperationsService) Get(name string) *ProjectsLocationsEvaluationTasksOperationsGetCall { + c := &ProjectsLocationsEvaluationTasksOperationsGetCall{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 *ProjectsLocationsEvaluationTasksOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationTasksOperationsGetCall { + 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 *ProjectsLocationsEvaluationTasksOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationTasksOperationsGetCall { + 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 *ProjectsLocationsEvaluationTasksOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationTasksOperationsGetCall { + 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 *ProjectsLocationsEvaluationTasksOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluationTasksOperationsGetCall) 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.evaluationTasks.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 *ProjectsLocationsEvaluationTasksOperationsGetCall) 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}/evaluationTasks/{evaluationTasksId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.evaluationTasks.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/evaluationTasks/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.evaluationTasks.operations.list": + +type ProjectsLocationsEvaluationTasksOperationsListCall 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 *ProjectsLocationsEvaluationTasksOperationsService) List(name string) *ProjectsLocationsEvaluationTasksOperationsListCall { + c := &ProjectsLocationsEvaluationTasksOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsEvaluationTasksOperationsListCall) Filter(filter string) *ProjectsLocationsEvaluationTasksOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsEvaluationTasksOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationTasksOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsEvaluationTasksOperationsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationTasksOperationsListCall { + 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 *ProjectsLocationsEvaluationTasksOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationTasksOperationsListCall { + 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 *ProjectsLocationsEvaluationTasksOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationTasksOperationsListCall { + 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 *ProjectsLocationsEvaluationTasksOperationsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationTasksOperationsListCall { + 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 *ProjectsLocationsEvaluationTasksOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluationTasksOperationsListCall) 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.evaluationTasks.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 *ProjectsLocationsEvaluationTasksOperationsListCall) 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}/evaluationTasks/{evaluationTasksId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.evaluationTasks.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/[^/]+/evaluationTasks/[^/]+$", + // "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 *ProjectsLocationsEvaluationTasksOperationsListCall) 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.evaluationTasks.operations.wait": + +type ProjectsLocationsEvaluationTasksOperationsWaitCall 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 *ProjectsLocationsEvaluationTasksOperationsService) Wait(name string) *ProjectsLocationsEvaluationTasksOperationsWaitCall { + c := &ProjectsLocationsEvaluationTasksOperationsWaitCall{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 *ProjectsLocationsEvaluationTasksOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsEvaluationTasksOperationsWaitCall { + 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 *ProjectsLocationsEvaluationTasksOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationTasksOperationsWaitCall { + 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 *ProjectsLocationsEvaluationTasksOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsEvaluationTasksOperationsWaitCall { + 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 *ProjectsLocationsEvaluationTasksOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluationTasksOperationsWaitCall) 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.evaluationTasks.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 *ProjectsLocationsEvaluationTasksOperationsWaitCall) 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}/evaluationTasks/{evaluationTasksId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.operations.wait", + // "id": "aiplatform.projects.locations.evaluationTasks.operations.wait", // "parameterOrder": [ // "name" // ], @@ -61835,7 +63153,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/[^/]+/evaluationTasks/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -61857,9 +63175,150 @@ func (c *ProjectsLocationsEndpointsOperationsWaitCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.evaluationTasks.operations.delete": +// method id "aiplatform.projects.locations.exampleStores.operations.cancel": -type ProjectsLocationsEvaluationTasksOperationsDeleteCall struct { +type ProjectsLocationsExampleStoresOperationsCancelCall 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 *ProjectsLocationsExampleStoresOperationsService) Cancel(name string) *ProjectsLocationsExampleStoresOperationsCancelCall { + c := &ProjectsLocationsExampleStoresOperationsCancelCall{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 *ProjectsLocationsExampleStoresOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsCancelCall { + 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 *ProjectsLocationsExampleStoresOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsCancelCall { + 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 *ProjectsLocationsExampleStoresOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsExampleStoresOperationsCancelCall) 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.exampleStores.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 *ProjectsLocationsExampleStoresOperationsCancelCall) 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}/exampleStores/{exampleStoresId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.exampleStores.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/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.exampleStores.operations.delete": + +type ProjectsLocationsExampleStoresOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -61873,8 +63332,8 @@ type ProjectsLocationsEvaluationTasksOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsEvaluationTasksOperationsService) Delete(name string) *ProjectsLocationsEvaluationTasksOperationsDeleteCall { - c := &ProjectsLocationsEvaluationTasksOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExampleStoresOperationsService) Delete(name string) *ProjectsLocationsExampleStoresOperationsDeleteCall { + c := &ProjectsLocationsExampleStoresOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -61882,7 +63341,7 @@ func (r *ProjectsLocationsEvaluationTasksOperationsService) Delete(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 *ProjectsLocationsEvaluationTasksOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationTasksOperationsDeleteCall { +func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61890,21 +63349,21 @@ func (c *ProjectsLocationsEvaluationTasksOperationsDeleteCall) Fields(s ...googl // 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 *ProjectsLocationsEvaluationTasksOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEvaluationTasksOperationsDeleteCall { +func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsDeleteCall { 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 *ProjectsLocationsEvaluationTasksOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationTasksOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) 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_ { @@ -61927,14 +63386,14 @@ func (c *ProjectsLocationsEvaluationTasksOperationsDeleteCall) doRequest(alt str return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.evaluationTasks.operations.delete" call. +// Do executes the "aiplatform.projects.locations.exampleStores.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 *ProjectsLocationsEvaluationTasksOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61966,9 +63425,9 @@ func (c *ProjectsLocationsEvaluationTasksOperationsDeleteCall) Do(opts ...google 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}/evaluationTasks/{evaluationTasksId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/exampleStores/{exampleStoresId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.evaluationTasks.operations.delete", + // "id": "aiplatform.projects.locations.exampleStores.operations.delete", // "parameterOrder": [ // "name" // ], @@ -61976,7 +63435,7 @@ func (c *ProjectsLocationsEvaluationTasksOperationsDeleteCall) Do(opts ...google // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/evaluationTasks/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -61992,9 +63451,9 @@ func (c *ProjectsLocationsEvaluationTasksOperationsDeleteCall) Do(opts ...google } -// method id "aiplatform.projects.locations.evaluationTasks.operations.get": +// method id "aiplatform.projects.locations.exampleStores.operations.get": -type ProjectsLocationsEvaluationTasksOperationsGetCall struct { +type ProjectsLocationsExampleStoresOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -62008,8 +63467,8 @@ type ProjectsLocationsEvaluationTasksOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsEvaluationTasksOperationsService) Get(name string) *ProjectsLocationsEvaluationTasksOperationsGetCall { - c := &ProjectsLocationsEvaluationTasksOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExampleStoresOperationsService) Get(name string) *ProjectsLocationsExampleStoresOperationsGetCall { + c := &ProjectsLocationsExampleStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -62017,7 +63476,7 @@ func (r *ProjectsLocationsEvaluationTasksOperationsService) Get(name string) *Pr // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEvaluationTasksOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationTasksOperationsGetCall { +func (c *ProjectsLocationsExampleStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62027,7 +63486,7 @@ func (c *ProjectsLocationsEvaluationTasksOperationsGetCall) Fields(s ...googleap // 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 *ProjectsLocationsEvaluationTasksOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationTasksOperationsGetCall { +func (c *ProjectsLocationsExampleStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExampleStoresOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -62035,21 +63494,21 @@ func (c *ProjectsLocationsEvaluationTasksOperationsGetCall) IfNoneMatch(entityTa // 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 *ProjectsLocationsEvaluationTasksOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationTasksOperationsGetCall { +func (c *ProjectsLocationsExampleStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsGetCall { 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 *ProjectsLocationsEvaluationTasksOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsExampleStoresOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationTasksOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExampleStoresOperationsGetCall) 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_ { @@ -62075,14 +63534,14 @@ func (c *ProjectsLocationsEvaluationTasksOperationsGetCall) doRequest(alt string return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.evaluationTasks.operations.get" call. +// Do executes the "aiplatform.projects.locations.exampleStores.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 *ProjectsLocationsEvaluationTasksOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExampleStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62114,9 +63573,9 @@ func (c *ProjectsLocationsEvaluationTasksOperationsGetCall) Do(opts ...googleapi 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}/evaluationTasks/{evaluationTasksId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/exampleStores/{exampleStoresId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.evaluationTasks.operations.get", + // "id": "aiplatform.projects.locations.exampleStores.operations.get", // "parameterOrder": [ // "name" // ], @@ -62124,7 +63583,7 @@ func (c *ProjectsLocationsEvaluationTasksOperationsGetCall) Do(opts ...googleapi // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/evaluationTasks/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -62140,9 +63599,9 @@ func (c *ProjectsLocationsEvaluationTasksOperationsGetCall) Do(opts ...googleapi } -// method id "aiplatform.projects.locations.evaluationTasks.operations.list": +// method id "aiplatform.projects.locations.exampleStores.operations.list": -type ProjectsLocationsEvaluationTasksOperationsListCall struct { +type ProjectsLocationsExampleStoresOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -62156,29 +63615,29 @@ type ProjectsLocationsEvaluationTasksOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsEvaluationTasksOperationsService) List(name string) *ProjectsLocationsEvaluationTasksOperationsListCall { - c := &ProjectsLocationsEvaluationTasksOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExampleStoresOperationsService) List(name string) *ProjectsLocationsExampleStoresOperationsListCall { + c := &ProjectsLocationsExampleStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsEvaluationTasksOperationsListCall) Filter(filter string) *ProjectsLocationsEvaluationTasksOperationsListCall { +func (c *ProjectsLocationsExampleStoresOperationsListCall) Filter(filter string) *ProjectsLocationsExampleStoresOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsEvaluationTasksOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationTasksOperationsListCall { +func (c *ProjectsLocationsExampleStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExampleStoresOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsEvaluationTasksOperationsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationTasksOperationsListCall { +func (c *ProjectsLocationsExampleStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExampleStoresOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -62186,7 +63645,7 @@ func (c *ProjectsLocationsEvaluationTasksOperationsListCall) PageToken(pageToken // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEvaluationTasksOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationTasksOperationsListCall { +func (c *ProjectsLocationsExampleStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62196,7 +63655,7 @@ func (c *ProjectsLocationsEvaluationTasksOperationsListCall) Fields(s ...googlea // 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 *ProjectsLocationsEvaluationTasksOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationTasksOperationsListCall { +func (c *ProjectsLocationsExampleStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExampleStoresOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -62204,21 +63663,21 @@ func (c *ProjectsLocationsEvaluationTasksOperationsListCall) IfNoneMatch(entityT // 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 *ProjectsLocationsEvaluationTasksOperationsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationTasksOperationsListCall { +func (c *ProjectsLocationsExampleStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsListCall { 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 *ProjectsLocationsEvaluationTasksOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsExampleStoresOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationTasksOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExampleStoresOperationsListCall) 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_ { @@ -62244,7 +63703,7 @@ func (c *ProjectsLocationsEvaluationTasksOperationsListCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.evaluationTasks.operations.list" call. +// Do executes the "aiplatform.projects.locations.exampleStores.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 @@ -62252,7 +63711,7 @@ func (c *ProjectsLocationsEvaluationTasksOperationsListCall) doRequest(alt strin // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsEvaluationTasksOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsExampleStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62284,9 +63743,9 @@ func (c *ProjectsLocationsEvaluationTasksOperationsListCall) Do(opts ...googleap 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}/evaluationTasks/{evaluationTasksId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/exampleStores/{exampleStoresId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.evaluationTasks.operations.list", + // "id": "aiplatform.projects.locations.exampleStores.operations.list", // "parameterOrder": [ // "name" // ], @@ -62299,7 +63758,7 @@ func (c *ProjectsLocationsEvaluationTasksOperationsListCall) Do(opts ...googleap // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/evaluationTasks/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$", // "required": true, // "type": "string" // }, @@ -62329,7 +63788,7 @@ func (c *ProjectsLocationsEvaluationTasksOperationsListCall) Do(opts ...googleap // 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 *ProjectsLocationsEvaluationTasksOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsExampleStoresOperationsListCall) 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 { @@ -62347,9 +63806,9 @@ func (c *ProjectsLocationsEvaluationTasksOperationsListCall) Pages(ctx context.C } } -// method id "aiplatform.projects.locations.evaluationTasks.operations.wait": +// method id "aiplatform.projects.locations.exampleStores.operations.wait": -type ProjectsLocationsEvaluationTasksOperationsWaitCall struct { +type ProjectsLocationsExampleStoresOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -62369,8 +63828,8 @@ type ProjectsLocationsEvaluationTasksOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsEvaluationTasksOperationsService) Wait(name string) *ProjectsLocationsEvaluationTasksOperationsWaitCall { - c := &ProjectsLocationsEvaluationTasksOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExampleStoresOperationsService) Wait(name string) *ProjectsLocationsExampleStoresOperationsWaitCall { + c := &ProjectsLocationsExampleStoresOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -62379,7 +63838,7 @@ func (r *ProjectsLocationsEvaluationTasksOperationsService) Wait(name string) *P // 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 *ProjectsLocationsEvaluationTasksOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsEvaluationTasksOperationsWaitCall { +func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExampleStoresOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -62387,7 +63846,7 @@ func (c *ProjectsLocationsEvaluationTasksOperationsWaitCall) Timeout(timeout str // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEvaluationTasksOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationTasksOperationsWaitCall { +func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62395,21 +63854,21 @@ func (c *ProjectsLocationsEvaluationTasksOperationsWaitCall) Fields(s ...googlea // 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 *ProjectsLocationsEvaluationTasksOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsEvaluationTasksOperationsWaitCall { +func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsWaitCall { 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 *ProjectsLocationsEvaluationTasksOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationTasksOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExampleStoresOperationsWaitCall) 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_ { @@ -62432,14 +63891,14 @@ func (c *ProjectsLocationsEvaluationTasksOperationsWaitCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.evaluationTasks.operations.wait" call. +// Do executes the "aiplatform.projects.locations.exampleStores.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 *ProjectsLocationsEvaluationTasksOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62471,9 +63930,9 @@ func (c *ProjectsLocationsEvaluationTasksOperationsWaitCall) Do(opts ...googleap 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}/evaluationTasks/{evaluationTasksId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/exampleStores/{exampleStoresId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.evaluationTasks.operations.wait", + // "id": "aiplatform.projects.locations.exampleStores.operations.wait", // "parameterOrder": [ // "name" // ], @@ -62481,7 +63940,7 @@ func (c *ProjectsLocationsEvaluationTasksOperationsWaitCall) Do(opts ...googleap // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/evaluationTasks/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -62503,9 +63962,9 @@ func (c *ProjectsLocationsEvaluationTasksOperationsWaitCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.exampleStores.operations.cancel": +// method id "aiplatform.projects.locations.extensionControllers.operations.cancel": -type ProjectsLocationsExampleStoresOperationsCancelCall struct { +type ProjectsLocationsExtensionControllersOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -62525,8 +63984,8 @@ type ProjectsLocationsExampleStoresOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsExampleStoresOperationsService) Cancel(name string) *ProjectsLocationsExampleStoresOperationsCancelCall { - c := &ProjectsLocationsExampleStoresOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionControllersOperationsService) Cancel(name string) *ProjectsLocationsExtensionControllersOperationsCancelCall { + c := &ProjectsLocationsExtensionControllersOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -62534,7 +63993,7 @@ func (r *ProjectsLocationsExampleStoresOperationsService) Cancel(name string) *P // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExampleStoresOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsCancelCall { +func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62542,21 +64001,21 @@ func (c *ProjectsLocationsExampleStoresOperationsCancelCall) Fields(s ...googlea // 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 *ProjectsLocationsExampleStoresOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsCancelCall { +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 *ProjectsLocationsExampleStoresOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExampleStoresOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +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_ { @@ -62579,14 +64038,14 @@ func (c *ProjectsLocationsExampleStoresOperationsCancelCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.exampleStores.operations.cancel" call. +// 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 *ProjectsLocationsExampleStoresOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +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 { @@ -62618,9 +64077,9 @@ func (c *ProjectsLocationsExampleStoresOperationsCancelCall) Do(opts ...googleap 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}/exampleStores/{exampleStoresId}/operations/{operationsId}:cancel", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.exampleStores.operations.cancel", + // "id": "aiplatform.projects.locations.extensionControllers.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -62628,7 +64087,7 @@ func (c *ProjectsLocationsExampleStoresOperationsCancelCall) Do(opts ...googleap // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -62644,9 +64103,9 @@ func (c *ProjectsLocationsExampleStoresOperationsCancelCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.exampleStores.operations.delete": +// method id "aiplatform.projects.locations.extensionControllers.operations.delete": -type ProjectsLocationsExampleStoresOperationsDeleteCall struct { +type ProjectsLocationsExtensionControllersOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -62660,8 +64119,8 @@ type ProjectsLocationsExampleStoresOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsExampleStoresOperationsService) Delete(name string) *ProjectsLocationsExampleStoresOperationsDeleteCall { - c := &ProjectsLocationsExampleStoresOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionControllersOperationsService) Delete(name string) *ProjectsLocationsExtensionControllersOperationsDeleteCall { + c := &ProjectsLocationsExtensionControllersOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -62669,7 +64128,7 @@ func (r *ProjectsLocationsExampleStoresOperationsService) Delete(name string) *P // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsDeleteCall { +func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62677,21 +64136,21 @@ func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Fields(s ...googlea // 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 *ProjectsLocationsExampleStoresOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsDeleteCall { +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 *ProjectsLocationsExampleStoresOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +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_ { @@ -62714,14 +64173,14 @@ func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.exampleStores.operations.delete" call. +// 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 *ProjectsLocationsExampleStoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +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 { @@ -62753,9 +64212,9 @@ func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Do(opts ...googleap 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}/exampleStores/{exampleStoresId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.exampleStores.operations.delete", + // "id": "aiplatform.projects.locations.extensionControllers.operations.delete", // "parameterOrder": [ // "name" // ], @@ -62763,7 +64222,7 @@ func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Do(opts ...googleap // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -62779,9 +64238,9 @@ func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.exampleStores.operations.get": +// method id "aiplatform.projects.locations.extensionControllers.operations.get": -type ProjectsLocationsExampleStoresOperationsGetCall struct { +type ProjectsLocationsExtensionControllersOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -62795,8 +64254,8 @@ type ProjectsLocationsExampleStoresOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsExampleStoresOperationsService) Get(name string) *ProjectsLocationsExampleStoresOperationsGetCall { - c := &ProjectsLocationsExampleStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionControllersOperationsService) Get(name string) *ProjectsLocationsExtensionControllersOperationsGetCall { + c := &ProjectsLocationsExtensionControllersOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -62804,7 +64263,7 @@ func (r *ProjectsLocationsExampleStoresOperationsService) Get(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 *ProjectsLocationsExampleStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsGetCall { +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62814,7 +64273,7 @@ func (c *ProjectsLocationsExampleStoresOperationsGetCall) Fields(s ...googleapi. // 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 *ProjectsLocationsExampleStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExampleStoresOperationsGetCall { +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionControllersOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -62822,21 +64281,21 @@ func (c *ProjectsLocationsExampleStoresOperationsGetCall) IfNoneMatch(entityTag // 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 *ProjectsLocationsExampleStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsGetCall { +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 *ProjectsLocationsExampleStoresOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExampleStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) { +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_ { @@ -62862,14 +64321,14 @@ func (c *ProjectsLocationsExampleStoresOperationsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.exampleStores.operations.get" call. +// 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 *ProjectsLocationsExampleStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +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 { @@ -62901,9 +64360,9 @@ func (c *ProjectsLocationsExampleStoresOperationsGetCall) Do(opts ...googleapi.C 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}/exampleStores/{exampleStoresId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.exampleStores.operations.get", + // "id": "aiplatform.projects.locations.extensionControllers.operations.get", // "parameterOrder": [ // "name" // ], @@ -62911,7 +64370,7 @@ func (c *ProjectsLocationsExampleStoresOperationsGetCall) Do(opts ...googleapi.C // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -62927,9 +64386,9 @@ func (c *ProjectsLocationsExampleStoresOperationsGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.exampleStores.operations.list": +// method id "aiplatform.projects.locations.extensionControllers.operations.list": -type ProjectsLocationsExampleStoresOperationsListCall struct { +type ProjectsLocationsExtensionControllersOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -62943,29 +64402,29 @@ type ProjectsLocationsExampleStoresOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsExampleStoresOperationsService) List(name string) *ProjectsLocationsExampleStoresOperationsListCall { - c := &ProjectsLocationsExampleStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +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 *ProjectsLocationsExampleStoresOperationsListCall) Filter(filter string) *ProjectsLocationsExampleStoresOperationsListCall { +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 *ProjectsLocationsExampleStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExampleStoresOperationsListCall { +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 *ProjectsLocationsExampleStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExampleStoresOperationsListCall { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionControllersOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -62973,7 +64432,7 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) PageToken(pageToken s // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExampleStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsListCall { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62983,7 +64442,7 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) Fields(s ...googleapi // 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 *ProjectsLocationsExampleStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExampleStoresOperationsListCall { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionControllersOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -62991,21 +64450,21 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) IfNoneMatch(entityTag // 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 *ProjectsLocationsExampleStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsListCall { +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 *ProjectsLocationsExampleStoresOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExampleStoresOperationsListCall) doRequest(alt string) (*http.Response, error) { +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_ { @@ -63031,7 +64490,7 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.exampleStores.operations.list" call. +// 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 @@ -63039,7 +64498,7 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) 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 *ProjectsLocationsExampleStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +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 { @@ -63071,9 +64530,9 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) Do(opts ...googleapi. 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}/exampleStores/{exampleStoresId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.exampleStores.operations.list", + // "id": "aiplatform.projects.locations.extensionControllers.operations.list", // "parameterOrder": [ // "name" // ], @@ -63086,7 +64545,7 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) Do(opts ...googleapi. // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+$", // "required": true, // "type": "string" // }, @@ -63116,7 +64575,7 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) Do(opts ...googleapi. // 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 *ProjectsLocationsExampleStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +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 { @@ -63134,9 +64593,9 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) Pages(ctx context.Con } } -// method id "aiplatform.projects.locations.exampleStores.operations.wait": +// method id "aiplatform.projects.locations.extensionControllers.operations.wait": -type ProjectsLocationsExampleStoresOperationsWaitCall struct { +type ProjectsLocationsExtensionControllersOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -63156,8 +64615,8 @@ type ProjectsLocationsExampleStoresOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsExampleStoresOperationsService) Wait(name string) *ProjectsLocationsExampleStoresOperationsWaitCall { - c := &ProjectsLocationsExampleStoresOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsExtensionControllersOperationsService) Wait(name string) *ProjectsLocationsExtensionControllersOperationsWaitCall { + c := &ProjectsLocationsExtensionControllersOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -63166,7 +64625,7 @@ func (r *ProjectsLocationsExampleStoresOperationsService) Wait(name string) *Pro // 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 *ProjectsLocationsExampleStoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExampleStoresOperationsWaitCall { +func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionControllersOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -63174,7 +64633,7 @@ func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Timeout(timeout strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsWaitCall { +func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63182,21 +64641,21 @@ func (c *ProjectsLocationsExampleStoresOperationsWaitCall) 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 *ProjectsLocationsExampleStoresOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExampleStoresOperationsWaitCall { +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 *ProjectsLocationsExampleStoresOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExampleStoresOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +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_ { @@ -63219,14 +64678,153 @@ func (c *ProjectsLocationsExampleStoresOperationsWaitCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.exampleStores.operations.wait" call. +// 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 *ProjectsLocationsExampleStoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +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.delete": + +type ProjectsLocationsExtensionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an Extension. +// +// - name: The name of the Extension resource to be deleted. Format: +// `projects/{project}/locations/{location}/extensions/{extension}`. +func (r *ProjectsLocationsExtensionsService) Delete(name string) *ProjectsLocationsExtensionsDeleteCall { + c := &ProjectsLocationsExtensionsDeleteCall{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 *ProjectsLocationsExtensionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeleteCall { + 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 *ProjectsLocationsExtensionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeleteCall { + 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 *ProjectsLocationsExtensionsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsExtensionsDeleteCall) 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.extensions.delete" 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 *ProjectsLocationsExtensionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63257,29 +64855,23 @@ func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Do(opts ...googleapi. } 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}/exampleStores/{exampleStoresId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.exampleStores.operations.wait", + // "description": "Deletes an Extension.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.extensions.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "Required. The name of the Extension resource to be deleted. Format: `projects/{project}/locations/{location}/extensions/{extension}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+$", // "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", + // "path": "v1beta1/{+name}", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -63290,38 +64882,32 @@ func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.extensionControllers.operations.cancel": +// method id "aiplatform.projects.locations.extensions.execute": -type ProjectsLocationsExtensionControllersOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionsExecuteCall struct { + s *Service + nameid string + googlecloudaiplatformv1beta1executeextensionrequest *GoogleCloudAiplatformV1beta1ExecuteExtensionRequest + 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`. +// Execute: Executes the request against a given extension. // -// - 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 +// - name: Name (identifier) of the extension; Format: +// `projects/{project}/locations/{location}/extensions/{extension}`. +func (r *ProjectsLocationsExtensionsService) Execute(nameid string, googlecloudaiplatformv1beta1executeextensionrequest *GoogleCloudAiplatformV1beta1ExecuteExtensionRequest) *ProjectsLocationsExtensionsExecuteCall { + c := &ProjectsLocationsExtensionsExecuteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nameid = nameid + c.googlecloudaiplatformv1beta1executeextensionrequest = googlecloudaiplatformv1beta1executeextensionrequest 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 { +func (c *ProjectsLocationsExtensionsExecuteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsExecuteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63329,21 +64915,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 *ProjectsLocationsExtensionsExecuteCall) Context(ctx context.Context) *ProjectsLocationsExtensionsExecuteCall { 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 *ProjectsLocationsExtensionsExecuteCall) 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 *ProjectsLocationsExtensionsExecuteCall) 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_ { @@ -63351,9 +64937,14 @@ func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) doRequest(al } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1executeextensionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:execute") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -63361,19 +64952,21 @@ func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) doRequest(al } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "name": c.nameid, }) 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) { +// Do executes the "aiplatform.projects.locations.extensions.execute" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ExecuteExtensionResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1ExecuteExtensionResponse.ServerResponse.H +// eader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsExtensionsExecuteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ExecuteExtensionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63392,7 +64985,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1ExecuteExtensionResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -63404,25 +64997,28 @@ 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", + // "description": "Executes the request against a given extension.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}:execute", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensionControllers.operations.cancel", + // "id": "aiplatform.projects.locations.extensions.execute", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "description": "Required. Name (identifier) of the extension; Format: `projects/{project}/locations/{location}/extensions/{extension}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", + // "path": "v1beta1/{+name}:execute", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1ExecuteExtensionRequest" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1ExecuteExtensionResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -63431,24 +65027,23 @@ func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Do(opts ...g } -// method id "aiplatform.projects.locations.extensionControllers.operations.delete": +// method id "aiplatform.projects.locations.extensions.get": -type ProjectsLocationsExtensionControllersOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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`. +// Get: Gets an Extension. // -// - 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)} +// - name: The name of the Extension resource. Format: +// `projects/{project}/locations/{location}/extensions/{extension}`. +func (r *ProjectsLocationsExtensionsService) Get(name string) *ProjectsLocationsExtensionsGetCall { + c := &ProjectsLocationsExtensionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -63456,41 +65051,54 @@ 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 *ProjectsLocationsExtensionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsGetCall { 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 *ProjectsLocationsExtensionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsGetCall { + 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 *ProjectsLocationsExtensionControllersOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsDeleteCall { +func (c *ProjectsLocationsExtensionsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionsGetCall { 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 *ProjectsLocationsExtensionsGetCall) 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 *ProjectsLocationsExtensionsGetCall) 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("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -63501,14 +65109,15 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) doRequest(al 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 +// Do executes the "aiplatform.projects.locations.extensions.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Extension or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1Extension.ServerResponse.Header or (if a +// response was returned 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 *ProjectsLocationsExtensionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Extension, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63527,7 +65136,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1Extension{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -63539,25 +65148,25 @@ 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}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.extensionControllers.operations.delete", + // "description": "Gets an Extension.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.extensions.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "Required. The name of the Extension resource. Format: `projects/{project}/locations/{location}/extensions/{extension}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1Extension" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -63566,97 +65175,89 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Do(opts ...g } -// method id "aiplatform.projects.locations.extensionControllers.operations.get": +// method id "aiplatform.projects.locations.extensions.import": -type ProjectsLocationsExtensionControllersOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionsImportCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1extension *GoogleCloudAiplatformV1beta1Extension + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Import: Imports an Extension. // -// - 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 +// - parent: The resource name of the Location to import the Extension +// in. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsExtensionsService) Import(parent string, googlecloudaiplatformv1beta1extension *GoogleCloudAiplatformV1beta1Extension) *ProjectsLocationsExtensionsImportCall { + c := &ProjectsLocationsExtensionsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1extension = googlecloudaiplatformv1beta1extension 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 { +func (c *ProjectsLocationsExtensionsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsImportCall { 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 { +func (c *ProjectsLocationsExtensionsImportCall) Context(ctx context.Context) *ProjectsLocationsExtensionsImportCall { 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 *ProjectsLocationsExtensionsImportCall) 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 *ProjectsLocationsExtensionsImportCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1extension) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/extensions:import") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) 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.import" 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 *ProjectsLocationsExtensionsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63687,23 +65288,26 @@ 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}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensionControllers.operations.get", + // "description": "Imports an Extension.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions:import", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.extensions.import", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "parent": { + // "description": "Required. The resource name of the Location to import the Extension in. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/extensions:import", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Extension" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -63714,45 +65318,55 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.extensionControllers.operations.list": +// method id "aiplatform.projects.locations.extensions.list": -type ProjectsLocationsExtensionControllersOperationsListCall struct { +type ProjectsLocationsExtensionsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists Extensions in a location. // -// - 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 +// - parent: The resource name of the Location to list the Extensions +// from. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsExtensionsService) List(parent string) *ProjectsLocationsExtensionsListCall { + c := &ProjectsLocationsExtensionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } // Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionControllersOperationsListCall { +// filter. Supported fields: * `display_name` * `create_time` * +// `update_time` More detail in AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsExtensionsListCall) Filter(filter string) *ProjectsLocationsExtensionsListCall { c.urlParams_.Set("filter", filter) return c } +// OrderBy sets the optional parameter "orderBy": A comma-separated list +// of fields to order by, sorted in ascending order. Use "desc" after a +// field name for descending. Supported fields: * `display_name` * +// `create_time` * `update_time` Example: `display_name, create_time +// desc`. +func (c *ProjectsLocationsExtensionsListCall) OrderBy(orderBy string) *ProjectsLocationsExtensionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionControllersOperationsListCall { +func (c *ProjectsLocationsExtensionsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionsListCall { 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 *ProjectsLocationsExtensionsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -63760,7 +65374,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 *ProjectsLocationsExtensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63770,7 +65384,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 *ProjectsLocationsExtensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsListCall { c.ifNoneMatch_ = entityTag return c } @@ -63778,21 +65392,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 *ProjectsLocationsExtensionsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionsListCall { 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 *ProjectsLocationsExtensionsListCall) 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 *ProjectsLocationsExtensionsListCall) 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_ { @@ -63805,7 +65419,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) doRequest(alt 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/extensions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -63813,20 +65427,21 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) doRequest(alt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) 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) { +// Do executes the "aiplatform.projects.locations.extensions.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListExtensionsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListExtensionsResponse.ServerResponse.Hea +// der or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsExtensionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListExtensionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63845,7 +65460,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListExtensionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -63857,41 +65472,46 @@ 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", + // "description": "Lists Extensions in a location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensionControllers.operations.list", + // "id": "aiplatform.projects.locations.extensions.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { // "filter": { - // "description": "The standard list filter.", + // "description": "Optional. The standard list filter. Supported fields: * `display_name` * `create_time` * `update_time` More detail in [AIP-160](https://google.aip.dev/160).", // "location": "query", // "type": "string" // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+$", - // "required": true, + // "orderBy": { + // "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `display_name` * `create_time` * `update_time` Example: `display_name, create_time desc`.", + // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The standard list page size.", + // "description": "Optional. The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token.", + // "description": "Optional. The standard list page token.", // "location": "query", // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list the Extensions from. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" // } // }, - // "path": "v1beta1/{+name}/operations", + // "path": "v1beta1/{+parent}/extensions", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListExtensionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -63903,7 +65523,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 *ProjectsLocationsExtensionsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListExtensionsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -63921,47 +65541,39 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) Pages(ctx cont } } -// method id "aiplatform.projects.locations.extensionControllers.operations.wait": +// method id "aiplatform.projects.locations.extensions.patch": -type ProjectsLocationsExtensionControllersOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1extension *GoogleCloudAiplatformV1beta1Extension + 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. +// Patch: Updates an Extension. // -// - 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)} +// - name: Identifier. The resource name of the Extension. +func (r *ProjectsLocationsExtensionsService) Patch(name string, googlecloudaiplatformv1beta1extension *GoogleCloudAiplatformV1beta1Extension) *ProjectsLocationsExtensionsPatchCall { + c := &ProjectsLocationsExtensionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1extension = googlecloudaiplatformv1beta1extension 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) +// UpdateMask sets the optional parameter "updateMask": Required. Mask +// specifying which fields to update. Supported fields: * `display_name` +// * `description` +func (c *ProjectsLocationsExtensionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsExtensionsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsWaitCall { +func (c *ProjectsLocationsExtensionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63969,21 +65581,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 *ProjectsLocationsExtensionsPatchCall) Context(ctx context.Context) *ProjectsLocationsExtensionsPatchCall { 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 *ProjectsLocationsExtensionsPatchCall) 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 *ProjectsLocationsExtensionsPatchCall) 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_ { @@ -63991,11 +65603,16 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) doRequest(alt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1extension) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -64006,14 +65623,15 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) doRequest(alt 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 +// Do executes the "aiplatform.projects.locations.extensions.patch" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Extension or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1Extension.ServerResponse.Header or (if a +// response was returned 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 *ProjectsLocationsExtensionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Extension, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -64032,7 +65650,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1Extension{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -64044,31 +65662,34 @@ 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", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensionControllers.operations.wait", + // "description": "Updates an Extension.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.extensions.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "Identifier. The resource name of the Extension.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+$", // "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", + // "updateMask": { + // "description": "Required. Mask specifying which fields to update. Supported fields: * `display_name` * `description`", + // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+name}:wait", + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Extension" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1Extension" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -107275,14 +108896,14 @@ func (r *ProjectsLocationsNotebookRuntimesService) List(parent string) *Projects // and !=. healthState enum: [HEALTHY, UNHEALTHY, // HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. // runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, -// BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * -// `runtimeUser` supports = and !=. * API version is UI only: `uiState` -// supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, -// UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, -// UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. -// * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: -// [USER_DEFINED, ONE_CLICK]. Some examples: * -// `notebookRuntime="notebookRuntime123" * +// BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED, ERROR, +// INVALID]. * `runtimeUser` supports = and !=. * API version is UI +// only: `uiState` supports = and !=. uiState enum: +// [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, +// UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, +// UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports +// = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some +// examples: * `notebookRuntime="notebookRuntime123" * // `displayName="myDisplayName" and `displayName=~"myDisplayNameRegex" // * `notebookRuntimeTemplate="notebookRuntimeTemplate321" * // `healthState=HEALTHY` * `runtimeState=RUNNING` * @@ -107438,7 +109059,7 @@ func (c *ProjectsLocationsNotebookRuntimesListCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "filter": { - // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` * `notebookRuntimeType=USER_DEFINED`", + // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED, ERROR, INVALID]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` * `notebookRuntimeType=USER_DEFINED`", // "location": "query", // "type": "string" // }, diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index e07c78b88bc..d1dd62b4aae 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -2085,7 +2085,7 @@ ], "parameters": { "externalTransactionId": { - "description": "Required. The id to use for the external transaction. Must be unique across all other transactions for the app. This value should be 1-63 characters and valid characters are /a-z0-9_-/. Do not use this field to store any Personally Identifiable Information (PII) such as emails. Attempting to store PII in this field may result in requests being blocked.", + "description": "Required. The id to use for the external transaction. Must be unique across all other transactions for the app. This value should be 1-63 characters and valid characters are /a-zA-Z0-9_-/. Do not use this field to store any Personally Identifiable Information (PII) such as emails. Attempting to store PII in this field may result in requests being blocked.", "location": "query", "type": "string" }, @@ -4726,7 +4726,7 @@ } } }, - "revision": "20240306", + "revision": "20240318", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "Abi": { diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index d959b92d040..f2e58ff5bce 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -17174,7 +17174,7 @@ func (r *ExternaltransactionsService) Createexternaltransaction(parent string, e // "externalTransactionId": Required. The id to use for the external // transaction. Must be unique across all other transactions for the // app. This value should be 1-63 characters and valid characters are -// /a-z0-9_-/. Do not use this field to store any Personally +// /a-zA-Z0-9_-/. Do not use this field to store any Personally // Identifiable Information (PII) such as emails. Attempting to store // PII in this field may result in requests being blocked. func (c *ExternaltransactionsCreateexternaltransactionCall) ExternalTransactionId(externalTransactionId string) *ExternaltransactionsCreateexternaltransactionCall { @@ -17282,7 +17282,7 @@ func (c *ExternaltransactionsCreateexternaltransactionCall) Do(opts ...googleapi // ], // "parameters": { // "externalTransactionId": { - // "description": "Required. The id to use for the external transaction. Must be unique across all other transactions for the app. This value should be 1-63 characters and valid characters are /a-z0-9_-/. Do not use this field to store any Personally Identifiable Information (PII) such as emails. Attempting to store PII in this field may result in requests being blocked.", + // "description": "Required. The id to use for the external transaction. Must be unique across all other transactions for the app. This value should be 1-63 characters and valid characters are /a-zA-Z0-9_-/. Do not use this field to store any Personally Identifiable Information (PII) such as emails. Attempting to store PII in this field may result in requests being blocked.", // "location": "query", // "type": "string" // }, diff --git a/api-list.json b/api-list.json index 592d4ec2ea4..4d4c7657eae 100644 --- a/api-list.json +++ b/api-list.json @@ -772,7 +772,7 @@ "name": "batch", "version": "v1", "title": "Batch API", - "description": "An API to manage the running of batch resources on Google Cloud Platform.", + "description": "An API to manage the running of Batch resources on Google Cloud Platform.", "discoveryRestUrl": "https://batch.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index b6692359938..b5c45f30aec 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -990,7 +990,7 @@ } } }, - "revision": "20240310", + "revision": "20240315", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -1559,7 +1559,7 @@ "type": "object" }, "DeprecatedEvent": { - "description": "A Google Chat app interaction event. To learn about interaction events, see [Receive and respond to interactions with your Google Chat app](https://developers.google.com/chat/api/guides/message-formats). To learn about event types and for example event payloads, see [Types of Google Chat app interaction events](https://developers.google.com/chat/api/guides/message-formats/events).", + "description": "A Google Chat app interaction event. To learn about interaction events, see [Receive and respond to interactions with your Google Chat app](https://developers.google.com/workspace/chat/api/guides/message-formats). To learn about event types and for example event payloads, see [Types of Google Chat app interaction events](https://developers.google.com/workspace/chat/events). In addition to receiving events from user interactions, Chat apps can receive events about changes to spaces, such as when a new member is added to a space. To learn about space events, see [Work with events from Google Chat](https://developers.google.com/workspace/chat/events-overview).", "id": "DeprecatedEvent", "properties": { "action": { @@ -1616,7 +1616,7 @@ "type": "string" }, "type": { - "description": "The type of interaction event. For details, see [Types of Google Chat app interaction events](https://developers.google.com/chat/api/guides/message-formats/events).", + "description": "The type of interaction event. For details, see [Types of Google Chat app interaction events](https://developers.google.com/workspace/chat/events).", "enum": [ "UNSPECIFIED", "MESSAGE", @@ -2282,6 +2282,10 @@ "knownIcon": { "description": "Display one of the built-in icons provided by Google Workspace. For example, to display an airplane icon, specify `AIRPLANE`. For a bus, specify `BUS`. For a full list of supported icons, see [built-in icons](https://developers.google.com/chat/format-messages#builtinicons).", "type": "string" + }, + "materialIcon": { + "$ref": "GoogleAppsCardV1MaterialIcon", + "description": "Display one of the [Google Material Icons](https://fonts.google.com/icons). For example, to display a [checkbox icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048), use \"material_icon\": { \"name\": \"check_box\" } Available for Chat apps and in [Developer Preview](https://developers.google.com/workspace/preview) for Google Workspace Add-ons." } }, "type": "object" @@ -2358,6 +2362,31 @@ }, "type": "object" }, + "GoogleAppsCardV1MaterialIcon": { + "description": "A [Google Material Icon](https://fonts.google.com/icons), which includes over 2500+ options. For example, to display a [checkbox icon](https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048) with customized weight and grade, write { \"name\": \"check_box\", \"fill\": true, \"weight\": 300, \"grade\": -25 } Available for Chat apps and in [Developer Preview](https://developers.google.com/workspace/preview) for Google Workspace Add-ons.", + "id": "GoogleAppsCardV1MaterialIcon", + "properties": { + "fill": { + "description": "Whether it renders a filled icon. Default value is false. See Customization in [Google Font Icon](https://fonts.google.com/icons) for details.", + "type": "boolean" + }, + "grade": { + "description": "Weight and grade affect a symbol’s thickness. Adjustments to grade are more granular than adjustments to weight and have a small impact on the size of the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If any other value is specified, a broken image icon is displayed. See Customization in [Google Font Icon](https://fonts.google.com/icons) for details.", + "format": "int32", + "type": "integer" + }, + "name": { + "description": "The icon name defined in the [Google Material Icon Icon](https://fonts.google.com/icons) in snake_case. e.g. \"check_box\". Any invalid names are abandoned and replaced with empty string and results in the icon failing to render.", + "type": "string" + }, + "weight": { + "description": "The stroke weight of the icon. Choose from {100, 200, 300, 400, 500, 600, 700}. If absent, default value is 400. If any other value is specified, a broken image icon is displayed. See Customization in [Google Font Icon](https://fonts.google.com/icons) for details.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleAppsCardV1OnClick": { "description": "Represents how to respond when users click an interactive element on a card, such as a button. [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):", "id": "GoogleAppsCardV1OnClick", diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 29f9942ddec..9d10a64058e 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -1325,10 +1325,14 @@ func (s *DeletionMetadata) MarshalJSON() ([]byte, error) { // DeprecatedEvent: A Google Chat app interaction event. To learn about // interaction events, see Receive and respond to interactions with your // Google Chat app -// (https://developers.google.com/chat/api/guides/message-formats). To -// learn about event types and for example event payloads, see Types of -// Google Chat app interaction events -// (https://developers.google.com/chat/api/guides/message-formats/events). +// (https://developers.google.com/workspace/chat/api/guides/message-formats). +// To learn about event types and for example event payloads, see Types +// of Google Chat app interaction events +// (https://developers.google.com/workspace/chat/events). In addition to +// receiving events from user interactions, Chat apps can receive events +// about changes to spaces, such as when a new member is added to a +// space. To learn about space events, see Work with events from Google +// Chat (https://developers.google.com/workspace/chat/events-overview). type DeprecatedEvent struct { // Action: For `CARD_CLICKED` interaction events, the form action data // associated when a user clicks a card or dialog. To learn more, see @@ -1398,7 +1402,7 @@ type DeprecatedEvent struct { // Type: The type of interaction event. For details, see Types of Google // Chat app interaction events - // (https://developers.google.com/chat/api/guides/message-formats/events). + // (https://developers.google.com/workspace/chat/events). // // Possible values: // "UNSPECIFIED" - Default value for the enum. DO NOT USE. @@ -2646,6 +2650,16 @@ type GoogleAppsCardV1Icon struct { // (https://developers.google.com/chat/format-messages#builtinicons). KnownIcon string `json:"knownIcon,omitempty"` + // MaterialIcon: Display one of the Google Material Icons + // (https://fonts.google.com/icons). For example, to display a checkbox + // icon + // (https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048), + // use "material_icon": { "name": "check_box" } Available for Chat apps + // and in Developer Preview + // (https://developers.google.com/workspace/preview) for Google + // Workspace Add-ons. + MaterialIcon *GoogleAppsCardV1MaterialIcon `json:"materialIcon,omitempty"` + // ForceSendFields is a list of field names (e.g. "AltText") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2811,6 +2825,65 @@ func (s *GoogleAppsCardV1ImageCropStyle) UnmarshalJSON(data []byte) error { return nil } +// GoogleAppsCardV1MaterialIcon: A Google Material Icon +// (https://fonts.google.com/icons), which includes over 2500+ options. +// For example, to display a checkbox icon +// (https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Acheck_box%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048) +// with customized weight and grade, write { "name": "check_box", +// "fill": true, "weight": 300, "grade": -25 } Available for Chat apps +// and in Developer Preview +// (https://developers.google.com/workspace/preview) for Google +// Workspace Add-ons. +type GoogleAppsCardV1MaterialIcon struct { + // Fill: Whether it renders a filled icon. Default value is false. See + // Customization in Google Font Icon (https://fonts.google.com/icons) + // for details. + Fill bool `json:"fill,omitempty"` + + // Grade: Weight and grade affect a symbol’s thickness. Adjustments to + // grade are more granular than adjustments to weight and have a small + // impact on the size of the symbol. Choose from {-25, 0, 200}. If + // absent, default value is 0. If any other value is specified, a broken + // image icon is displayed. See Customization in Google Font Icon + // (https://fonts.google.com/icons) for details. + Grade int64 `json:"grade,omitempty"` + + // Name: The icon name defined in the Google Material Icon Icon + // (https://fonts.google.com/icons) in snake_case. e.g. "check_box". Any + // invalid names are abandoned and replaced with empty string and + // results in the icon failing to render. + Name string `json:"name,omitempty"` + + // Weight: The stroke weight of the icon. Choose from {100, 200, 300, + // 400, 500, 600, 700}. If absent, default value is 400. If any other + // value is specified, a broken image icon is displayed. See + // Customization in Google Font Icon (https://fonts.google.com/icons) + // for details. + Weight int64 `json:"weight,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Fill") 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. "Fill") 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 *GoogleAppsCardV1MaterialIcon) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAppsCardV1MaterialIcon + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAppsCardV1OnClick: Represents how to respond when users click // an interactive element on a card, such as a button. Google Workspace // Add-ons and Chat apps diff --git a/cloudbuild/v2/cloudbuild-api.json b/cloudbuild/v2/cloudbuild-api.json index 137fde979cf..66e42281d33 100644 --- a/cloudbuild/v2/cloudbuild-api.json +++ b/cloudbuild/v2/cloudbuild-api.json @@ -671,7 +671,7 @@ ], "parameters": { "pageSize": { - "description": "Optional. Number of results to return in the list. Default to 100.", + "description": "Optional. Number of results to return in the list. Default to 20.", "format": "int32", "location": "query", "type": "integer" @@ -844,7 +844,7 @@ } } }, - "revision": "20240310", + "revision": "20240314", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/cloudbuild/v2/cloudbuild-gen.go b/cloudbuild/v2/cloudbuild-gen.go index 014003fa856..7270e10b55c 100644 --- a/cloudbuild/v2/cloudbuild-gen.go +++ b/cloudbuild/v2/cloudbuild-gen.go @@ -6506,7 +6506,7 @@ func (r *ProjectsLocationsConnectionsRepositoriesService) FetchGitRefs(repositor } // PageSize sets the optional parameter "pageSize": Number of results to -// return in the list. Default to 100. +// return in the list. Default to 20. func (c *ProjectsLocationsConnectionsRepositoriesFetchGitRefsCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsRepositoriesFetchGitRefsCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -6638,7 +6638,7 @@ func (c *ProjectsLocationsConnectionsRepositoriesFetchGitRefsCall) Do(opts ...go // ], // "parameters": { // "pageSize": { - // "description": "Optional. Number of results to return in the list. Default to 100.", + // "description": "Optional. Number of results to return in the list. Default to 20.", // "format": "int32", // "location": "query", // "type": "integer" diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 98955cf567e..cdacf1e12ac 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2565,7 +2565,7 @@ } } }, - "revision": "20240214", + "revision": "20240304", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3479,6 +3479,10 @@ "$ref": "ResourceUsageExportConfig", "description": "Configuration for exporting resource usages. Resource usage export is disabled when this config unspecified." }, + "secretManagerConfig": { + "$ref": "SecretManagerConfig", + "description": "Secret CSI driver configuration." + }, "securityPostureConfig": { "$ref": "SecurityPostureConfig", "description": "Enable/Disable Security Posture API features for the cluster." @@ -3705,10 +3709,18 @@ "$ref": "DNSConfig", "description": "DNSConfig contains clusterDNS config for this cluster." }, + "desiredEnableCiliumClusterwideNetworkPolicy": { + "description": "Enable/Disable Cilium Clusterwide Network Policy for the cluster.", + "type": "boolean" + }, "desiredEnableFqdnNetworkPolicy": { "description": "Enable/Disable FQDN Network Policy for the cluster.", "type": "boolean" }, + "desiredEnableMultiNetworking": { + "description": "Enable/Disable Multi-Networking for the cluster", + "type": "boolean" + }, "desiredEnablePrivateEndpoint": { "description": "Enable/Disable private endpoint for the cluster's master.", "type": "boolean" @@ -3875,6 +3887,10 @@ "$ref": "ResourceUsageExportConfig", "description": "The desired configuration for exporting resource usage." }, + "desiredSecretManagerConfig": { + "$ref": "SecretManagerConfig", + "description": "Enable/Disable Secret Manager Config." + }, "desiredSecurityPostureConfig": { "$ref": "SecurityPostureConfig", "description": "Enable/Disable Security Posture API features for the cluster." @@ -5333,6 +5349,10 @@ "$ref": "DNSConfig", "description": "DNSConfig contains clusterDNS config for this cluster." }, + "enableCiliumClusterwideNetworkPolicy": { + "description": "Whether CiliumClusterWideNetworkPolicy is enabled on this cluster.", + "type": "boolean" + }, "enableFqdnNetworkPolicy": { "description": "Whether FQDN Network Policy is enabled on this cluster.", "type": "boolean" @@ -5654,6 +5674,10 @@ "$ref": "SandboxConfig", "description": "Sandbox configuration for this node." }, + "secondaryBootDiskUpdateStrategy": { + "$ref": "SecondaryBootDiskUpdateStrategy", + "description": "Secondary boot disk update strategy." + }, "secondaryBootDisks": { "description": "List of secondary boot disks attached to the nodes.", "items": { @@ -6783,6 +6807,23 @@ }, "type": "object" }, + "SecondaryBootDiskUpdateStrategy": { + "description": "SecondaryBootDiskUpdateStrategy is a placeholder which will be extended in the future to define different options for updating secondary boot disks.", + "id": "SecondaryBootDiskUpdateStrategy", + "properties": {}, + "type": "object" + }, + "SecretManagerConfig": { + "description": "SecretManagerConfig is config for secret manager enablement.", + "id": "SecretManagerConfig", + "properties": { + "enabled": { + "description": "Whether the cluster is configured to use secret manager CSI component.", + "type": "boolean" + } + }, + "type": "object" + }, "SecurityBulletinEvent": { "description": "SecurityBulletinEvent is a notification sent to customers when a security bulletin has been posted that they are vulnerable to.", "id": "SecurityBulletinEvent", diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 0c47f1b62eb..c2fa35e09f6 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -1686,6 +1686,9 @@ type Cluster struct { // unspecified. ResourceUsageExportConfig *ResourceUsageExportConfig `json:"resourceUsageExportConfig,omitempty"` + // SecretManagerConfig: Secret CSI driver configuration. + SecretManagerConfig *SecretManagerConfig `json:"secretManagerConfig,omitempty"` + // SecurityPostureConfig: Enable/Disable Security Posture API features // for the cluster. SecurityPostureConfig *SecurityPostureConfig `json:"securityPostureConfig,omitempty"` @@ -1977,10 +1980,18 @@ type ClusterUpdate struct { // cluster. DesiredDnsConfig *DNSConfig `json:"desiredDnsConfig,omitempty"` + // DesiredEnableCiliumClusterwideNetworkPolicy: Enable/Disable Cilium + // Clusterwide Network Policy for the cluster. + DesiredEnableCiliumClusterwideNetworkPolicy bool `json:"desiredEnableCiliumClusterwideNetworkPolicy,omitempty"` + // DesiredEnableFqdnNetworkPolicy: Enable/Disable FQDN Network Policy // for the cluster. DesiredEnableFqdnNetworkPolicy bool `json:"desiredEnableFqdnNetworkPolicy,omitempty"` + // DesiredEnableMultiNetworking: Enable/Disable Multi-Networking for the + // cluster + DesiredEnableMultiNetworking bool `json:"desiredEnableMultiNetworking,omitempty"` + // DesiredEnablePrivateEndpoint: Enable/Disable private endpoint for the // cluster's master. DesiredEnablePrivateEndpoint bool `json:"desiredEnablePrivateEndpoint,omitempty"` @@ -2168,6 +2179,9 @@ type ClusterUpdate struct { // exporting resource usage. DesiredResourceUsageExportConfig *ResourceUsageExportConfig `json:"desiredResourceUsageExportConfig,omitempty"` + // DesiredSecretManagerConfig: Enable/Disable Secret Manager Config. + DesiredSecretManagerConfig *SecretManagerConfig `json:"desiredSecretManagerConfig,omitempty"` + // DesiredSecurityPostureConfig: Enable/Disable Security Posture API // features for the cluster. DesiredSecurityPostureConfig *SecurityPostureConfig `json:"desiredSecurityPostureConfig,omitempty"` @@ -4897,6 +4911,10 @@ type NetworkConfig struct { // DnsConfig: DNSConfig contains clusterDNS config for this cluster. DnsConfig *DNSConfig `json:"dnsConfig,omitempty"` + // EnableCiliumClusterwideNetworkPolicy: Whether + // CiliumClusterWideNetworkPolicy is enabled on this cluster. + EnableCiliumClusterwideNetworkPolicy bool `json:"enableCiliumClusterwideNetworkPolicy,omitempty"` + // EnableFqdnNetworkPolicy: Whether FQDN Network Policy is enabled on // this cluster. EnableFqdnNetworkPolicy bool `json:"enableFqdnNetworkPolicy,omitempty"` @@ -5339,6 +5357,9 @@ type NodeConfig struct { // SandboxConfig: Sandbox configuration for this node. SandboxConfig *SandboxConfig `json:"sandboxConfig,omitempty"` + // SecondaryBootDiskUpdateStrategy: Secondary boot disk update strategy. + SecondaryBootDiskUpdateStrategy *SecondaryBootDiskUpdateStrategy `json:"secondaryBootDiskUpdateStrategy,omitempty"` + // SecondaryBootDisks: List of secondary boot disks attached to the // nodes. SecondaryBootDisks []*SecondaryBootDisk `json:"secondaryBootDisks,omitempty"` @@ -7248,6 +7269,42 @@ func (s *SecondaryBootDisk) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SecondaryBootDiskUpdateStrategy: SecondaryBootDiskUpdateStrategy is a +// placeholder which will be extended in the future to define different +// options for updating secondary boot disks. +type SecondaryBootDiskUpdateStrategy struct { +} + +// SecretManagerConfig: SecretManagerConfig is config for secret manager +// enablement. +type SecretManagerConfig struct { + // Enabled: Whether the cluster is configured to use secret manager CSI + // component. + Enabled bool `json:"enabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // 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. "Enabled") 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 *SecretManagerConfig) MarshalJSON() ([]byte, error) { + type NoMethod SecretManagerConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SecurityBulletinEvent: SecurityBulletinEvent is a notification sent // to customers when a security bulletin has been posted that they are // vulnerable to. diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index f0eded04a19..b418043b9e1 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -6186,7 +6186,7 @@ } } }, - "revision": "20240312", + "revision": "20240317", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -16192,7 +16192,7 @@ }, "topicTrends": { "$ref": "TopicTrends", - "description": "Topic trends fields requested by the merchant in the query. Field values are only set if the merchant queries `TopicTrendsView`. https://support.google.com/merchants/answer/13542370." + "description": "[Topic trends](https://support.google.com/merchants/answer/13542370) fields requested by the merchant in the query. Field values are only set if the merchant queries `TopicTrendsView`." } }, "type": "object" @@ -18068,7 +18068,7 @@ "type": "object" }, "TopicTrends": { - "description": "Topic trends fields requested by the merchant in the query. Field values are only set if the merchant queries `TopicTrendsView`.", + "description": "Topic trends fields requested by the merchant in the query. Field values are only set if the merchant queries `TopicTrendsView`. Forecast data can be queried up to 13 weeks by passing a future date in the `date` field. Historical data is measured daily, and forecasted data is projected weekly. All data points are normalized based on the highest data points returned in the response. If you make separate queries with different date ranges, you might see different values for the same date in each response. The recommended way to get a trend score of a topic is `last7_days_search_interest / last{$day}_days_search_interest - 1`. You can view trends for up to eight topics at a time.", "id": "TopicTrends", "properties": { "customerCountryCode": { diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index eae02dcff25..f7fe3e04973 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -17346,10 +17346,10 @@ type ReportRow struct { // explicitly in the query. Segments *Segments `json:"segments,omitempty"` - // TopicTrends: Topic trends fields requested by the merchant in the - // query. Field values are only set if the merchant queries - // `TopicTrendsView`. - // https://support.google.com/merchants/answer/13542370. + // TopicTrends: Topic trends + // (https://support.google.com/merchants/answer/13542370) fields + // requested by the merchant in the query. Field values are only set if + // the merchant queries `TopicTrendsView`. TopicTrends *TopicTrends `json:"topicTrends,omitempty"` // ForceSendFields is a list of field names (e.g. "BestSellers") to @@ -20427,7 +20427,15 @@ func (s *TimeZone) MarshalJSON() ([]byte, error) { // TopicTrends: Topic trends fields requested by the merchant in the // query. Field values are only set if the merchant queries -// `TopicTrendsView`. +// `TopicTrendsView`. Forecast data can be queried up to 13 weeks by +// passing a future date in the `date` field. Historical data is +// measured daily, and forecasted data is projected weekly. All data +// points are normalized based on the highest data points returned in +// the response. If you make separate queries with different date +// ranges, you might see different values for the same date in each +// response. The recommended way to get a trend score of a topic is +// `last7_days_search_interest / last{$day}_days_search_interest - 1`. +// You can view trends for up to eight topics at a time. type TopicTrends struct { // CustomerCountryCode: Country trends are calculated for. Must be a // two-letter country code (ISO 3166-1-alpha-2 code), for example, diff --git a/metastore/v1alpha/metastore-api.json b/metastore/v1alpha/metastore-api.json index 4d4c82fa83f..5957a8bea55 100644 --- a/metastore/v1alpha/metastore-api.json +++ b/metastore/v1alpha/metastore-api.json @@ -1599,40 +1599,6 @@ ] } } - }, - "migrationExecutions": { - "methods": { - "delete": { - "description": "Deletes a single migration execution.", - "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/migrationExecutions/{migrationExecutionsId}", - "httpMethod": "DELETE", - "id": "metastore.projects.locations.services.migrationExecutions.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The relative resource name of the migrationExecution to delete, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/migrationExecutions/[^/]+$", - "required": true, - "type": "string" - }, - "requestId": { - "description": "Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.", - "location": "query", - "type": "string" - } - }, - "path": "v1alpha/{+name}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } } } } @@ -1641,7 +1607,7 @@ } } }, - "revision": "20240228", + "revision": "20240312", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { diff --git a/metastore/v1alpha/metastore-gen.go b/metastore/v1alpha/metastore-gen.go index 6bbdb4b712d..464fc8cb280 100644 --- a/metastore/v1alpha/metastore-gen.go +++ b/metastore/v1alpha/metastore-gen.go @@ -208,7 +208,6 @@ func NewProjectsLocationsServicesService(s *APIService) *ProjectsLocationsServic rs.Backups = NewProjectsLocationsServicesBackupsService(s) rs.Databases = NewProjectsLocationsServicesDatabasesService(s) rs.MetadataImports = NewProjectsLocationsServicesMetadataImportsService(s) - rs.MigrationExecutions = NewProjectsLocationsServicesMigrationExecutionsService(s) return rs } @@ -220,8 +219,6 @@ type ProjectsLocationsServicesService struct { Databases *ProjectsLocationsServicesDatabasesService MetadataImports *ProjectsLocationsServicesMetadataImportsService - - MigrationExecutions *ProjectsLocationsServicesMigrationExecutionsService } func NewProjectsLocationsServicesBackupsService(s *APIService) *ProjectsLocationsServicesBackupsService { @@ -263,15 +260,6 @@ type ProjectsLocationsServicesMetadataImportsService struct { s *APIService } -func NewProjectsLocationsServicesMigrationExecutionsService(s *APIService) *ProjectsLocationsServicesMigrationExecutionsService { - rs := &ProjectsLocationsServicesMigrationExecutionsService{s: s} - return rs -} - -type ProjectsLocationsServicesMigrationExecutionsService struct { - s *APIService -} - // AlterMetadataResourceLocationRequest: Request message for // DataprocMetastore.AlterMetadataResourceLocation. type AlterMetadataResourceLocationRequest struct { @@ -10592,158 +10580,3 @@ func (c *ProjectsLocationsServicesMetadataImportsPatchCall) Do(opts ...googleapi // } } - -// method id "metastore.projects.locations.services.migrationExecutions.delete": - -type ProjectsLocationsServicesMigrationExecutionsDeleteCall struct { - s *APIService - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a single migration execution. -// -// - name: The relative resource name of the migrationExecution to -// delete, in the following -// form:projects/{project_number}/locations/{location_id}/services/{ser -// vice_id}/migrationExecutions/{migration_execution_id}. -func (r *ProjectsLocationsServicesMigrationExecutionsService) Delete(name string) *ProjectsLocationsServicesMigrationExecutionsDeleteCall { - c := &ProjectsLocationsServicesMigrationExecutionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// RequestId sets the optional parameter "requestId": A request ID. -// Specify a unique request ID to allow the server to ignore the request -// if it has completed. The server will ignore subsequent requests that -// provide a duplicate request ID for at least 60 minutes after the -// first request.For example, if an initial request times out, followed -// by another request with the same request ID, the server ignores the -// second request to prevent the creation of duplicate commitments.The -// request ID must be a valid UUID -// (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) -// A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. -func (c *ProjectsLocationsServicesMigrationExecutionsDeleteCall) RequestId(requestId string) *ProjectsLocationsServicesMigrationExecutionsDeleteCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsServicesMigrationExecutionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesMigrationExecutionsDeleteCall { - 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 *ProjectsLocationsServicesMigrationExecutionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsServicesMigrationExecutionsDeleteCall { - 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 *ProjectsLocationsServicesMigrationExecutionsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsServicesMigrationExecutionsDeleteCall) 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, "v1alpha/{+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 "metastore.projects.locations.services.migrationExecutions.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsServicesMigrationExecutionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Deletes a single migration execution.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/migrationExecutions/{migrationExecutionsId}", - // "httpMethod": "DELETE", - // "id": "metastore.projects.locations.services.migrationExecutions.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The relative resource name of the migrationExecution to delete, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/migrationExecutions/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1alpha/{+name}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} diff --git a/playintegrity/v1/playintegrity-api.json b/playintegrity/v1/playintegrity-api.json index 9ee22c292ae..ef3e37a83b9 100644 --- a/playintegrity/v1/playintegrity-api.json +++ b/playintegrity/v1/playintegrity-api.json @@ -138,7 +138,7 @@ } } }, - "revision": "20240101", + "revision": "20240317", "rootUrl": "https://playintegrity.googleapis.com/", "schemas": { "AccountActivity": { @@ -304,7 +304,7 @@ "type": "object" }, "DeviceIntegrity": { - "description": "Contains the device attestation information.", + "description": "Contains the device attestation information. Next tag: 4", "id": "DeviceIntegrity", "properties": { "deviceRecognitionVerdict": { diff --git a/playintegrity/v1/playintegrity-gen.go b/playintegrity/v1/playintegrity-gen.go index 6e4e8f1d592..446b7251d3e 100644 --- a/playintegrity/v1/playintegrity-gen.go +++ b/playintegrity/v1/playintegrity-gen.go @@ -437,7 +437,8 @@ func (s *DecodeIntegrityTokenResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DeviceIntegrity: Contains the device attestation information. +// DeviceIntegrity: Contains the device attestation information. Next +// tag: 4 type DeviceIntegrity struct { // DeviceRecognitionVerdict: Details about the integrity of the device // the app is running on. diff --git a/secretmanager/v1/secretmanager-api.json b/secretmanager/v1/secretmanager-api.json index ec0cec912f3..6dabef0c908 100644 --- a/secretmanager/v1/secretmanager-api.json +++ b/secretmanager/v1/secretmanager-api.json @@ -15,6 +15,13 @@ "description": "Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security. ", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/secret-manager/", + "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://secretmanager.me-central2.rep.googleapis.com/", + "location": "me-central2" + } + ], "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -1108,7 +1115,7 @@ } } }, - "revision": "20240309", + "revision": "20240314", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { diff --git a/secretmanager/v1beta1/secretmanager-api.json b/secretmanager/v1beta1/secretmanager-api.json index f7e4d6a4fa7..0974b6a998a 100644 --- a/secretmanager/v1beta1/secretmanager-api.json +++ b/secretmanager/v1beta1/secretmanager-api.json @@ -15,6 +15,13 @@ "description": "Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security. ", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/secret-manager/", + "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://secretmanager.me-central2.rep.googleapis.com/", + "location": "me-central2" + } + ], "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -628,7 +635,7 @@ } } }, - "revision": "20240126", + "revision": "20240314", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { diff --git a/secretmanager/v1beta2/secretmanager-api.json b/secretmanager/v1beta2/secretmanager-api.json index 229a2d01546..fbdfd4e1fbb 100644 --- a/secretmanager/v1beta2/secretmanager-api.json +++ b/secretmanager/v1beta2/secretmanager-api.json @@ -15,6 +15,13 @@ "description": "Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security. ", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/secret-manager/", + "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://secretmanager.me-central2.rep.googleapis.com/", + "location": "me-central2" + } + ], "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -1108,7 +1115,7 @@ } } }, - "revision": "20240309", + "revision": "20240314", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json index c3ea5299aaf..cb278ee2eeb 100644 --- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json +++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json @@ -315,12 +315,12 @@ ], "parameters": { "force": { - "description": "Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + "description": "Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "location": "query", "type": "boolean" }, "forceOnly": { - "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "enum": [ "QUOTA_SAFETY_CHECK_UNSPECIFIED", "LIMIT_DECREASE_BELOW_USAGE", @@ -364,12 +364,12 @@ ], "parameters": { "force": { - "description": "Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + "description": "Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "location": "query", "type": "boolean" }, "forceOnly": { - "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "enum": [ "QUOTA_SAFETY_CHECK_UNSPECIFIED", "LIMIT_DECREASE_BELOW_USAGE", @@ -446,12 +446,12 @@ ], "parameters": { "force": { - "description": "Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + "description": "Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "location": "query", "type": "boolean" }, "forceOnly": { - "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "enum": [ "QUOTA_SAFETY_CHECK_UNSPECIFIED", "LIMIT_DECREASE_BELOW_USAGE", @@ -500,7 +500,7 @@ } } }, - "revision": "20240102", + "revision": "20240317", "rootUrl": "https://serviceconsumermanagement.googleapis.com/", "schemas": { "Api": { @@ -2696,11 +2696,11 @@ "id": "V1Beta1ImportProducerOverridesRequest", "properties": { "force": { - "description": "Whether to force the creation of the quota overrides. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + "description": "Whether to force the creation of the quota overrides. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "type": "boolean" }, "forceOnly": { - "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "items": { "enum": [ "QUOTA_SAFETY_CHECK_UNSPECIFIED", diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go index ec9a12ff689..b8606444d45 100644 --- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go +++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go @@ -4244,13 +4244,17 @@ type V1Beta1ImportProducerOverridesRequest struct { // Force: Whether to force the creation of the quota overrides. Setting // the force parameter to 'true' ignores all quota safety checks that // would fail the request. QuotaSafetyCheck lists all such validations. + // If force is set to true, it is recommended to include a case id in + // "X-Goog-Request-Reason" header when sending the request. Force bool `json:"force,omitempty"` // ForceOnly: The list of quota safety checks to ignore before the // override mutation. Unlike 'force' field that ignores all the quota // safety checks, the 'force_only' field ignores only the specified // checks; other checks are still enforced. The 'force' and 'force_only' - // fields cannot both be set. + // fields cannot both be set. If force_only is specified, it is + // recommended to include a case id in "X-Goog-Request-Reason" header + // when sending the request. // // Possible values: // "QUOTA_SAFETY_CHECK_UNSPECIFIED" - Unspecified quota safety check. @@ -5897,7 +5901,9 @@ func (r *ServicesConsumerQuotaMetricsLimitsProducerOverridesService) Create(pare // Force sets the optional parameter "force": Whether to force the // creation of the quota override. Setting the force parameter to 'true' // ignores all quota safety checks that would fail the request. -// QuotaSafetyCheck lists all such validations. +// QuotaSafetyCheck lists all such validations. If force is set to true, +// it is recommended to include a case id in "X-Goog-Request-Reason" +// header when sending the request. func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesCreateCall) Force(force bool) *ServicesConsumerQuotaMetricsLimitsProducerOverridesCreateCall { c.urlParams_.Set("force", fmt.Sprint(force)) return c @@ -5907,7 +5913,9 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesCreateCall) Force(fo // safety checks to ignore before the override mutation. Unlike 'force' // field that ignores all the quota safety checks, the 'force_only' // field ignores only the specified checks; other checks are still -// enforced. The 'force' and 'force_only' fields cannot both be set. +// enforced. The 'force' and 'force_only' fields cannot both be set. If +// force_only is specified, it is recommended to include a case id in +// "X-Goog-Request-Reason" header when sending the request. // // Possible values: // @@ -6026,12 +6034,12 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesCreateCall) Do(opts // ], // "parameters": { // "force": { - // "description": "Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + // "description": "Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "location": "query", // "type": "boolean" // }, // "forceOnly": { - // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "enum": [ // "QUOTA_SAFETY_CHECK_UNSPECIFIED", // "LIMIT_DECREASE_BELOW_USAGE", @@ -6094,7 +6102,9 @@ func (r *ServicesConsumerQuotaMetricsLimitsProducerOverridesService) Delete(name // Force sets the optional parameter "force": Whether to force the // deletion of the quota override. Setting the force parameter to 'true' // ignores all quota safety checks that would fail the request. -// QuotaSafetyCheck lists all such validations. +// QuotaSafetyCheck lists all such validations. If force is set to true, +// it is recommended to include a case id in "X-Goog-Request-Reason" +// header when sending the request. func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesDeleteCall) Force(force bool) *ServicesConsumerQuotaMetricsLimitsProducerOverridesDeleteCall { c.urlParams_.Set("force", fmt.Sprint(force)) return c @@ -6104,7 +6114,9 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesDeleteCall) Force(fo // safety checks to ignore before the override mutation. Unlike 'force' // field that ignores all the quota safety checks, the 'force_only' // field ignores only the specified checks; other checks are still -// enforced. The 'force' and 'force_only' fields cannot both be set. +// enforced. The 'force' and 'force_only' fields cannot both be set. If +// force_only is specified, it is recommended to include a case id in +// "X-Goog-Request-Reason" header when sending the request. // // Possible values: // @@ -6218,12 +6230,12 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesDeleteCall) Do(opts // ], // "parameters": { // "force": { - // "description": "Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + // "description": "Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "location": "query", // "type": "boolean" // }, // "forceOnly": { - // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "enum": [ // "QUOTA_SAFETY_CHECK_UNSPECIFIED", // "LIMIT_DECREASE_BELOW_USAGE", @@ -6482,7 +6494,9 @@ func (r *ServicesConsumerQuotaMetricsLimitsProducerOverridesService) Patch(name // Force sets the optional parameter "force": Whether to force the // update of the quota override. Setting the force parameter to 'true' // ignores all quota safety checks that would fail the request. -// QuotaSafetyCheck lists all such validations. +// QuotaSafetyCheck lists all such validations. If force is set to true, +// it is recommended to include a case id in "X-Goog-Request-Reason" +// header when sending the request. func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesPatchCall) Force(force bool) *ServicesConsumerQuotaMetricsLimitsProducerOverridesPatchCall { c.urlParams_.Set("force", fmt.Sprint(force)) return c @@ -6492,7 +6506,9 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesPatchCall) Force(for // safety checks to ignore before the override mutation. Unlike 'force' // field that ignores all the quota safety checks, the 'force_only' // field ignores only the specified checks; other checks are still -// enforced. The 'force' and 'force_only' fields cannot both be set. +// enforced. The 'force' and 'force_only' fields cannot both be set. If +// force_only is specified, it is recommended to include a case id in +// "X-Goog-Request-Reason" header when sending the request. // // Possible values: // @@ -6618,12 +6634,12 @@ func (c *ServicesConsumerQuotaMetricsLimitsProducerOverridesPatchCall) Do(opts . // ], // "parameters": { // "force": { - // "description": "Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + // "description": "Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "location": "query", // "type": "boolean" // }, // "forceOnly": { - // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "enum": [ // "QUOTA_SAFETY_CHECK_UNSPECIFIED", // "LIMIT_DECREASE_BELOW_USAGE", diff --git a/serviceusage/v1beta1/serviceusage-api.json b/serviceusage/v1beta1/serviceusage-api.json index a5a5b34f416..8df65e627aa 100644 --- a/serviceusage/v1beta1/serviceusage-api.json +++ b/serviceusage/v1beta1/serviceusage-api.json @@ -581,12 +581,12 @@ ], "parameters": { "force": { - "description": "Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + "description": "Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "location": "query", "type": "boolean" }, "forceOnly": { - "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "enum": [ "QUOTA_SAFETY_CHECK_UNSPECIFIED", "LIMIT_DECREASE_BELOW_USAGE", @@ -631,12 +631,12 @@ ], "parameters": { "force": { - "description": "Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + "description": "Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "location": "query", "type": "boolean" }, "forceOnly": { - "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "enum": [ "QUOTA_SAFETY_CHECK_UNSPECIFIED", "LIMIT_DECREASE_BELOW_USAGE", @@ -715,12 +715,12 @@ ], "parameters": { "force": { - "description": "Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + "description": "Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "location": "query", "type": "boolean" }, "forceOnly": { - "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "enum": [ "QUOTA_SAFETY_CHECK_UNSPECIFIED", "LIMIT_DECREASE_BELOW_USAGE", @@ -775,12 +775,12 @@ ], "parameters": { "force": { - "description": "Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + "description": "Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "location": "query", "type": "boolean" }, "forceOnly": { - "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "enum": [ "QUOTA_SAFETY_CHECK_UNSPECIFIED", "LIMIT_DECREASE_BELOW_USAGE", @@ -825,12 +825,12 @@ ], "parameters": { "force": { - "description": "Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + "description": "Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "location": "query", "type": "boolean" }, "forceOnly": { - "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "enum": [ "QUOTA_SAFETY_CHECK_UNSPECIFIED", "LIMIT_DECREASE_BELOW_USAGE", @@ -909,12 +909,12 @@ ], "parameters": { "force": { - "description": "Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + "description": "Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "location": "query", "type": "boolean" }, "forceOnly": { - "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "enum": [ "QUOTA_SAFETY_CHECK_UNSPECIFIED", "LIMIT_DECREASE_BELOW_USAGE", @@ -964,7 +964,7 @@ } } }, - "revision": "20240303", + "revision": "20240317", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AddEnableRulesMetadata": { @@ -2609,11 +2609,11 @@ "id": "ImportAdminOverridesRequest", "properties": { "force": { - "description": "Whether to force the creation of the quota overrides. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + "description": "Whether to force the creation of the quota overrides. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "type": "boolean" }, "forceOnly": { - "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "items": { "enum": [ "QUOTA_SAFETY_CHECK_UNSPECIFIED", @@ -2681,11 +2681,11 @@ "id": "ImportConsumerOverridesRequest", "properties": { "force": { - "description": "Whether to force the creation of the quota overrides. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + "description": "Whether to force the creation of the quota overrides. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "type": "boolean" }, "forceOnly": { - "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", "items": { "enum": [ "QUOTA_SAFETY_CHECK_UNSPECIFIED", diff --git a/serviceusage/v1beta1/serviceusage-gen.go b/serviceusage/v1beta1/serviceusage-gen.go index 9ed65714630..cb9f3aa2074 100644 --- a/serviceusage/v1beta1/serviceusage-gen.go +++ b/serviceusage/v1beta1/serviceusage-gen.go @@ -3059,13 +3059,17 @@ type ImportAdminOverridesRequest struct { // Force: Whether to force the creation of the quota overrides. Setting // the force parameter to 'true' ignores all quota safety checks that // would fail the request. QuotaSafetyCheck lists all such validations. + // If force is set to true, it is recommended to include a case id in + // "X-Goog-Request-Reason" header when sending the request. Force bool `json:"force,omitempty"` // ForceOnly: The list of quota safety checks to ignore before the // override mutation. Unlike 'force' field that ignores all the quota // safety checks, the 'force_only' field ignores only the specified // checks; other checks are still enforced. The 'force' and 'force_only' - // fields cannot both be set. + // fields cannot both be set. If force_only is specified, it is + // recommended to include a case id in "X-Goog-Request-Reason" header + // when sending the request. // // Possible values: // "QUOTA_SAFETY_CHECK_UNSPECIFIED" - Unspecified quota safety check. @@ -3182,13 +3186,17 @@ type ImportConsumerOverridesRequest struct { // Force: Whether to force the creation of the quota overrides. Setting // the force parameter to 'true' ignores all quota safety checks that // would fail the request. QuotaSafetyCheck lists all such validations. + // If force is set to true, it is recommended to include a case id in + // "X-Goog-Request-Reason" header when sending the request. Force bool `json:"force,omitempty"` // ForceOnly: The list of quota safety checks to ignore before the // override mutation. Unlike 'force' field that ignores all the quota // safety checks, the 'force_only' field ignores only the specified // checks; other checks are still enforced. The 'force' and 'force_only' - // fields cannot both be set. + // fields cannot both be set. If force_only is specified, it is + // recommended to include a case id in "X-Goog-Request-Reason" header + // when sending the request. // // Possible values: // "QUOTA_SAFETY_CHECK_UNSPECIFIED" - Unspecified quota safety check. @@ -8152,7 +8160,9 @@ func (r *ServicesConsumerQuotaMetricsLimitsAdminOverridesService) Create(parent // Force sets the optional parameter "force": Whether to force the // creation of the quota override. Setting the force parameter to 'true' // ignores all quota safety checks that would fail the request. -// QuotaSafetyCheck lists all such validations. +// QuotaSafetyCheck lists all such validations. If force is set to true, +// it is recommended to include a case id in "X-Goog-Request-Reason" +// header when sending the request. func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesCreateCall) Force(force bool) *ServicesConsumerQuotaMetricsLimitsAdminOverridesCreateCall { c.urlParams_.Set("force", fmt.Sprint(force)) return c @@ -8162,7 +8172,9 @@ func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesCreateCall) Force(force // safety checks to ignore before the override mutation. Unlike 'force' // field that ignores all the quota safety checks, the 'force_only' // field ignores only the specified checks; other checks are still -// enforced. The 'force' and 'force_only' fields cannot both be set. +// enforced. The 'force' and 'force_only' fields cannot both be set. If +// force_only is specified, it is recommended to include a case id in +// "X-Goog-Request-Reason" header when sending the request. // // Possible values: // @@ -8281,12 +8293,12 @@ func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesCreateCall) Do(opts ... // ], // "parameters": { // "force": { - // "description": "Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + // "description": "Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "location": "query", // "type": "boolean" // }, // "forceOnly": { - // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "enum": [ // "QUOTA_SAFETY_CHECK_UNSPECIFIED", // "LIMIT_DECREASE_BELOW_USAGE", @@ -8350,7 +8362,9 @@ func (r *ServicesConsumerQuotaMetricsLimitsAdminOverridesService) Delete(name st // Force sets the optional parameter "force": Whether to force the // deletion of the quota override. Setting the force parameter to 'true' // ignores all quota safety checks that would fail the request. -// QuotaSafetyCheck lists all such validations. +// QuotaSafetyCheck lists all such validations. If force is set to true, +// it is recommended to include a case id in "X-Goog-Request-Reason" +// header when sending the request. func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesDeleteCall) Force(force bool) *ServicesConsumerQuotaMetricsLimitsAdminOverridesDeleteCall { c.urlParams_.Set("force", fmt.Sprint(force)) return c @@ -8360,7 +8374,9 @@ func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesDeleteCall) Force(force // safety checks to ignore before the override mutation. Unlike 'force' // field that ignores all the quota safety checks, the 'force_only' // field ignores only the specified checks; other checks are still -// enforced. The 'force' and 'force_only' fields cannot both be set. +// enforced. The 'force' and 'force_only' fields cannot both be set. If +// force_only is specified, it is recommended to include a case id in +// "X-Goog-Request-Reason" header when sending the request. // // Possible values: // @@ -8474,12 +8490,12 @@ func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesDeleteCall) Do(opts ... // ], // "parameters": { // "force": { - // "description": "Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + // "description": "Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "location": "query", // "type": "boolean" // }, // "forceOnly": { - // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "enum": [ // "QUOTA_SAFETY_CHECK_UNSPECIFIED", // "LIMIT_DECREASE_BELOW_USAGE", @@ -8739,7 +8755,9 @@ func (r *ServicesConsumerQuotaMetricsLimitsAdminOverridesService) Patch(name str // Force sets the optional parameter "force": Whether to force the // update of the quota override. Setting the force parameter to 'true' // ignores all quota safety checks that would fail the request. -// QuotaSafetyCheck lists all such validations. +// QuotaSafetyCheck lists all such validations. If force is set to true, +// it is recommended to include a case id in "X-Goog-Request-Reason" +// header when sending the request. func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesPatchCall) Force(force bool) *ServicesConsumerQuotaMetricsLimitsAdminOverridesPatchCall { c.urlParams_.Set("force", fmt.Sprint(force)) return c @@ -8749,7 +8767,9 @@ func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesPatchCall) Force(force // safety checks to ignore before the override mutation. Unlike 'force' // field that ignores all the quota safety checks, the 'force_only' // field ignores only the specified checks; other checks are still -// enforced. The 'force' and 'force_only' fields cannot both be set. +// enforced. The 'force' and 'force_only' fields cannot both be set. If +// force_only is specified, it is recommended to include a case id in +// "X-Goog-Request-Reason" header when sending the request. // // Possible values: // @@ -8876,12 +8896,12 @@ func (c *ServicesConsumerQuotaMetricsLimitsAdminOverridesPatchCall) Do(opts ...g // ], // "parameters": { // "force": { - // "description": "Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + // "description": "Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "location": "query", // "type": "boolean" // }, // "forceOnly": { - // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "enum": [ // "QUOTA_SAFETY_CHECK_UNSPECIFIED", // "LIMIT_DECREASE_BELOW_USAGE", @@ -8957,7 +8977,9 @@ func (r *ServicesConsumerQuotaMetricsLimitsConsumerOverridesService) Create(pare // Force sets the optional parameter "force": Whether to force the // creation of the quota override. Setting the force parameter to 'true' // ignores all quota safety checks that would fail the request. -// QuotaSafetyCheck lists all such validations. +// QuotaSafetyCheck lists all such validations. If force is set to true, +// it is recommended to include a case id in "X-Goog-Request-Reason" +// header when sending the request. func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesCreateCall) Force(force bool) *ServicesConsumerQuotaMetricsLimitsConsumerOverridesCreateCall { c.urlParams_.Set("force", fmt.Sprint(force)) return c @@ -8967,7 +8989,9 @@ func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesCreateCall) Force(fo // safety checks to ignore before the override mutation. Unlike 'force' // field that ignores all the quota safety checks, the 'force_only' // field ignores only the specified checks; other checks are still -// enforced. The 'force' and 'force_only' fields cannot both be set. +// enforced. The 'force' and 'force_only' fields cannot both be set. If +// force_only is specified, it is recommended to include a case id in +// "X-Goog-Request-Reason" header when sending the request. // // Possible values: // @@ -9086,12 +9110,12 @@ func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesCreateCall) Do(opts // ], // "parameters": { // "force": { - // "description": "Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + // "description": "Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "location": "query", // "type": "boolean" // }, // "forceOnly": { - // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "enum": [ // "QUOTA_SAFETY_CHECK_UNSPECIFIED", // "LIMIT_DECREASE_BELOW_USAGE", @@ -9155,7 +9179,9 @@ func (r *ServicesConsumerQuotaMetricsLimitsConsumerOverridesService) Delete(name // Force sets the optional parameter "force": Whether to force the // deletion of the quota override. Setting the force parameter to 'true' // ignores all quota safety checks that would fail the request. -// QuotaSafetyCheck lists all such validations. +// QuotaSafetyCheck lists all such validations. If force is set to true, +// it is recommended to include a case id in "X-Goog-Request-Reason" +// header when sending the request. func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesDeleteCall) Force(force bool) *ServicesConsumerQuotaMetricsLimitsConsumerOverridesDeleteCall { c.urlParams_.Set("force", fmt.Sprint(force)) return c @@ -9165,7 +9191,9 @@ func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesDeleteCall) Force(fo // safety checks to ignore before the override mutation. Unlike 'force' // field that ignores all the quota safety checks, the 'force_only' // field ignores only the specified checks; other checks are still -// enforced. The 'force' and 'force_only' fields cannot both be set. +// enforced. The 'force' and 'force_only' fields cannot both be set. If +// force_only is specified, it is recommended to include a case id in +// "X-Goog-Request-Reason" header when sending the request. // // Possible values: // @@ -9279,12 +9307,12 @@ func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesDeleteCall) Do(opts // ], // "parameters": { // "force": { - // "description": "Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + // "description": "Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "location": "query", // "type": "boolean" // }, // "forceOnly": { - // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "enum": [ // "QUOTA_SAFETY_CHECK_UNSPECIFIED", // "LIMIT_DECREASE_BELOW_USAGE", @@ -9544,7 +9572,9 @@ func (r *ServicesConsumerQuotaMetricsLimitsConsumerOverridesService) Patch(name // Force sets the optional parameter "force": Whether to force the // update of the quota override. Setting the force parameter to 'true' // ignores all quota safety checks that would fail the request. -// QuotaSafetyCheck lists all such validations. +// QuotaSafetyCheck lists all such validations. If force is set to true, +// it is recommended to include a case id in "X-Goog-Request-Reason" +// header when sending the request. func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesPatchCall) Force(force bool) *ServicesConsumerQuotaMetricsLimitsConsumerOverridesPatchCall { c.urlParams_.Set("force", fmt.Sprint(force)) return c @@ -9554,7 +9584,9 @@ func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesPatchCall) Force(for // safety checks to ignore before the override mutation. Unlike 'force' // field that ignores all the quota safety checks, the 'force_only' // field ignores only the specified checks; other checks are still -// enforced. The 'force' and 'force_only' fields cannot both be set. +// enforced. The 'force' and 'force_only' fields cannot both be set. If +// force_only is specified, it is recommended to include a case id in +// "X-Goog-Request-Reason" header when sending the request. // // Possible values: // @@ -9681,12 +9713,12 @@ func (c *ServicesConsumerQuotaMetricsLimitsConsumerOverridesPatchCall) Do(opts . // ], // "parameters": { // "force": { - // "description": "Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.", + // "description": "Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "location": "query", // "type": "boolean" // }, // "forceOnly": { - // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.", + // "description": "The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in \"X-Goog-Request-Reason\" header when sending the request.", // "enum": [ // "QUOTA_SAFETY_CHECK_UNSPECIFIED", // "LIMIT_DECREASE_BELOW_USAGE",